Description Usage Arguments Value Examples
Exports a TxDb annotation to a GTF file
1 |
txdb |
transcriptome to be output |
file |
a string or |
source |
a string to go in the |
The txdb
argument is invisibly returned.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene)
## load annotation
txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene
## restrict to 'chrI' transcripts
seqlevels(txdb) <- c("chrI")
## last 500 nts per tx
txdb_w500 <- truncateTxome(txdb)
## export uncompressed
outfile <- tempfile("sacCer3.sgdGene.w500", fileext=".gtf")
exportGTF(txdb_w500, outfile)
## export compressed
outfile <- tempfile("sacCer3.sgdGene.w500", fileext=".gtf.gz")
exportGTF(txdb_w500, outfile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.