readFromGTF {bambu} | R Documentation |
Outputs GRangesList object from reading a GTF file
readFromGTF(file, keep.extra.columns = NULL)
file |
a .gtf file |
keep.extra.columns |
a vector with names of columns to keep from the the attributes in the gtf file. For ensembl, this could be keep.extra.columns=c('gene_name','gene_biotype', 'transcript_biotype', 'transcript_name') |
grlist a GRangesList
object, with two columns
specifying prefix for new gene Ids (genePrefix.number), defaults to empty
indicating whether filter to remove read classes which are a subset of known transcripts(), defaults to TRUE
gtf.file <- system.file("extdata", "Homo_sapiens.GRCh38.91_chr9_1_1000000.gtf", package = "bambu" ) readFromGTF(gtf.file)