Description Usage Arguments Value See Also Examples
The function annotates a target GRangesList or GRanges object as overlapping or not with the elements of a named GRangesList. This is useful to annotate your regions of interest with genomic features with arbitrary categories such as repeat classes or families, or output from genome segmentation alogorithms such as chromHMM.
1 2 3 4 5 6 7 8 9 10 | annotateWithFeatures(target, features, strand.aware = FALSE,
intersect.chr = FALSE)
## S4 method for signature 'GRanges,GRangesList'
annotateWithFeatures(target, features,
strand.aware = FALSE, intersect.chr = FALSE)
## S4 method for signature 'GRangesList,GRangesList'
annotateWithFeatures(target, features,
strand.aware = FALSE, intersect.chr = FALSE)
|
target |
GRanges or GRangesList object storing chromosome locations to be annotated (e.g. chipseq peaks) |
features |
a named GRangesList object containing GRanges objects different set
of features. The function calculates percent overlaps with and without
precendence at the same time. The order of objects in GRangesList
defines their precedence. If a range in |
strand.aware |
if set to TRUE, annotation features and target features will be overlapped based on strand (def:FALSE) |
intersect.chr |
logical value, whether to select only chromosomes that are common to feature and target. FALSE by default |
returns an AnnotationByFeature
object or if target is
a GRangesList, a list of AnnotationByFeature
objects.
see getMembers
,
heatTargetAnnotation
,
plotTargetAnnotation
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.