Assign genomic states to regions (original) (raw)

annotateRegions: Assign genomic states to regions

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/annotateRegions.R

This function takes the regions found in calculatePvalues and assigns them genomic states contructed with makeGenomicState. The main workhorse functions are countOverlaps and findOverlaps.

regions The $regions output from calculatePvalues.
genomicState A GRanges object created with makeGenomicState. It can be either the genomicState$fullGenome orgenomicState$codingGenome component.
annotate If TRUE then the regions are annotated by the genomic state. Otherwise, only the overlaps between the regions and the genomic states are computed.
... Arguments passed to other methods and/or advanced arguments. Advanced arguments: verbose If TRUE basic status updates will be printed along the way. ignore.strand Passed on to findOverlaps-methods and countOverlaps. Default: TRUE. Passed to extendedMapSeqlevels, countOverlaps and findOverlaps-methods.

You might want to specify arguments such as minoverlap to control how the overlaps are determined. See findOverlaps for further details.

A list with elements countTable and annotationList(only if annotate=TRUE).

countTable

This is a data.frame with the number of overlaps from the regions vs the genomic states with one type per column. For example, iffullOrCoding='full' then the columns are exon,intergenic and intron.

annotationList

This is a GRangesList with the genomic states that overlapped with the regions. The names of this GRangesList correspond to the region index inregions.

Andrew Jaffe, Leonardo Collado-Torres

makeGenomicState, calculatePvalues

derfinder documentation built on Dec. 20, 2020, 2 a.m.