annotate_segments {segmenter} | R Documentation |
Annotate the GRanges
objects of the segments using
annotatePeak
(see for details)
annotate_segments(segments, ...)
segments |
A |
... |
Other arguments passed to |
A GRanges
object which is identical to the input in addition
to the annotations as metadata columns.
library(TxDb.Hsapiens.UCSC.hg18.knownGene) txdb <- TxDb.Hsapiens.UCSC.hg18.knownGene segs <- segment(test_obj) segs_annotated <- annotate_segments(segs, TxDb = txdb, verbose = FALSE)