ranges2genes: ranges2genes

Description Usage Arguments Value See Also Examples

Description

Assign gene symbol(s) to Genomic Ranges.

Usage

1
ranges2genes(ranges, genes)

Arguments

ranges

The Genomics Ranges object, for example extracted from a RangedSummarizedExperiment object with the rowRanges command.

annot

A Genomics Ranges object providing enough information for finding gene symbols. Typically GENCODE.

Value

A character vector of same length as the GRanges object, indicating one gene symbol or a comma-separated list of gene symbols for each range.

See Also

Other smallCAGEqc annotation functions: hannot, hierarchAnnot, mapStats, plotAnnot, ranges2annot

Examples

1
2
3
4
## Not run: 
rowRanges(l1)$genes  <- ranges2genes(rowRanges(l1), gff)

## End(Not run)

charles-plessy/smallCAGEqc documentation built on May 13, 2019, 3:31 p.m.