GRanges
object by means of a second GRanges
objectobject
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)
GRanges
.
GRanges
.
object
. Usually the type of the regions
object, e.g. 'Promoter'.
regions
object containing the identifiers,
e.g. entrez gene IDs of the promoters. If not specified, the genomic
locations of object
are labeled as
TRUE
(overlap) or FALSE
(no overlap).
GRanges
object similar to object
containing an
additional metadata column with the overlapping information.
regions
overlap with a genomic
region in object
, the identifier names of the overlapping regions
are seperated by ','.
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
Run the code above in your browser using DataLab