calcFeatureDistRefTSS {GenomicDistributions} | R Documentation

## Calculates the distribution of distances from a query set to closest TSS

### Description

Given a query GRanges object and an assembly string, this function will grab the TSS list for the given reference assembly and then calculate the distance from each query feature to the closest TSS. It is a wrapper of `calcFeatureDist` that uses built-in TSS features for a reference assembly

### Usage

    calcFeatureDistRefTSS(query, refAssembly)

### Arguments

`query` | A GenomicRanges or GenomicRangesList object with query regions
`refAssembly` | A character vector specifying the reference genome assembly (*e.g.* 'hg19'). This will be used to grab chromosome sizes with `getTSSs`.

### Value

A vector of distances for each query region relative to TSSs.

### Examples

    calcFeatureDistRefTSS(vistaEnhancers, "hg19")

[Package GenomicDistributions version 1.2.0 Index]