annotateGRanges {BiSeq} | R Documentation |
GRanges
object by means of a second GRanges
objectEach genomic location of object
is checked for overlapping with
genomic ranges of regions
. In case of an overlapping, this
genomic location is marked as TRUE
, or with the identifier of
respective the regions
object (if any).
annotateGRanges(object, regions, name, regionInfo)
object |
A |
regions |
A |
name |
A string specifying the name of the metadata
column with the overlapping information to be added to
|
regionInfo |
OPTIONAL: A string or integer specifying the metadata column
column of |
If multiple ranges of regions
overlap with a genomic
region in object
, the identifier names of the overlapping regions
are seperated by ','.
A GRanges
object similar to object
containing an
additional metadata column with the overlapping information.
Katja Hebestreit
GRanges-class
# load detected DMRs: data(DMRs) # annotate the DMRs with a GRanges object: data(promoters) DMRs.anno <- annotateGRanges(object = DMRs, regions = promoters, name = 'Promoter', regionInfo = 'acc_no') DMRs.anno