txdbToGRangesList {txcutr} | R Documentation |
Convert TxDb object to GRangesList
txdbToGRangesList( txdb, geneCols = c("gene_id"), transcriptCols = c("gene_id", "tx_name"), exonCols = c("gene_id", "tx_name", "exon_id", "exon_rank") )
txdb |
a |
geneCols |
names of columns to include in the |
transcriptCols |
names of columns to include in the |
exonCols |
names of columns to include in the |
a GRangesList
object with entries c(genes, transcripts, exons)
library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene) ## load annotation txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene grl <- txdbToGRangesList(txdb) grl