readAnnotation {srnadiff} | R Documentation |
Segmentation using an annotation file.
readAnnotation(fileName, source = NULL, feature = NULL, name = NULL)
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. |
A GRanges.
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")