readAnnotation {srnadiff} | R Documentation

## Segmentation using an annotation file.

### Description

Segmentation using an annotation file.

### Usage

    readAnnotation(fileName, source = NULL, feature = NULL, name = NULL)

### Arguments

`fileName` | The annotation file name in GFF/GTF format.
`source` | If not NULL, only lines with this source (2nd field) are imported.
`feature` | If not NULL, only lines with this feature (3rd field) are imported.
`name` | If not NULL, use this tag as annotation name.

### Value

A GRanges.

### Examples

    dir        <- system.file("extdata", package="srnadiff", mustWork = TRUE)
    gtfFile    <- file.path(dir, "Homo_sapiens.GRCh38.76.gtf.gz")
    annotation <- readAnnotation(gtfFile, source="miRNA", feature="gene",
                                 name="gene_name")

[Package srnadiff version 1.2.1 Index]