annotate_segments {segmenter} | R Documentation

## Annotate segments

### Description

Annotate the `GRanges` objects of the segments using `annotatePeak` (see for details)

### Usage

    annotate_segments(segments, ...)

### Arguments

`segments` | A `GRanges` object. Usually the output of calling `segment` on the the output object of `lean_model`.
`...` | Other arguments passed to `annotatePeak`

### Value

A `GRanges` object which is identical to the input in addition to the annotations as metadata columns.

### Examples

    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)

[Package segmenter version 1.0.0 Index]