calcWidth {GenomicDistributions}R Documentation

Calculate the widths of regions

Description

The length of a genomic region (the distance between the start and end) is called the width When given a query set of genomic regions, this function returns the width

Usage

calcWidth(query)

Arguments

query

A GRanges or GRangesList object with query sets

Value

A vector of the widths (end-start coordinates) of GRanges objects.

Examples

TSSdist = calcFeatureDistRefTSS(vistaEnhancers, "hg19")
plotFeatureDist(TSSdist, featureName="TSS")

[Package GenomicDistributions version 1.0.0 Index]