writeToGTF: write GRangeslist into GTF file

Description Usage Arguments Value Examples

View source: R/readWrite.R

Description

Write annotation GRangesList into a GTF file

Usage

1
writeToGTF(annotation, file, geneIDs = NULL)

Arguments

annotation

a GRangesList object

file

the output gtf file name

geneIDs

an optional dataframe of geneIDs (column 2) with the corresponding transcriptIDs (column 1)

Value

gtf a GTF dataframe

Examples

1
2
3
4
5
6
outputGtfFile <- tempfile()
gr <- readRDS(system.file("extdata",
    "annotationGranges_txdbGrch38_91_chr9_1_1000000.rds",
    package = "bambu"
))
writeToGTF(gr, outputGtfFile)

bambu documentation built on Nov. 12, 2020, 2:01 a.m.