calcFeatureDistRefTSS: Calculates the distribution of distances from a query set to...

View source: R/feature-plots.R

calcFeatureDistRefTSSR 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")

databio/GenomicDistributions documentation built on April 30, 2024, 4:34 a.m.