| exportMergeTable {txcutr} | R Documentation |
Export Merge Table for Transcriptome
exportMergeTable(txdb, file, minDistance = 200L)
txdb |
a |
file |
a string or |
minDistance |
the minimum separation to regard overlapping transcripts as unique. |
The txdb argument is invisibly returned.
library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene)
## load annotation
txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene
## restrict to 'chrI' transcripts (makes for briefer example runtime)
seqlevels(txdb) <- c("chrI")
## last 500 nts per tx
txdb_w500 <- truncateTxome(txdb)
## export plain format
outfile <- tempfile("sacCer3.sgdGene.w500", fileext=".tsv")
exportMergeTable(txdb_w500, outfile)
## export compressed format
outfile <- tempfile("sacCer3.sgdGene.w500", fileext=".tsv.gz")
exportMergeTable(txdb_w500, outfile)