Write annotation GRangesList into a GTF file
writeToGTF(annotation, file, geneIDs = NULL)
annotation | a |
---|---|
file | the output gtf file name |
geneIDs | an optional dataframe of geneIDs (column 2) with the corresponding transcriptIDs (column 1) |
gtf a GTF dataframe
outputGtfFile <- tempfile() gr <- readRDS(system.file("extdata", "annotationGranges_txdbGrch38_91_chr9_1_1000000.rds", package = "bambu" )) writeToGTF(gr, outputGtfFile)