makeTx2geneFromGtf | R Documentation |
Make tx2gene data.frame from a GTF file
makeTx2geneFromGtf(
GTF,
geneAttrNames = c("gene_id", "gene_name", "gene_type"),
txAttrNames = c("transcript_id", "transcript_type"),
geneFeatureType = "gene",
txFeatureType = c("transcript", "mRNA"),
nrows = -1L,
zcat_command = "zcat",
verbose = FALSE,
...
)
GTF |
|
geneAttrNames |
|
txAttrNames |
|
geneFeatureType |
|
txFeatureType |
|
nrows |
|
zcat_command |
|
verbose |
|
... |
additional arguments are ignored. |
Create a transcript-to-gene data.frame from a GTF file, which is required
by a number of transcriptome analysis methods such as those in
the DEXseq package, and the limma package functions such as
diffSplice()
.
This function also only uses data.table::fread()
and does not
import the full GTF file using something like Bioconductor
GenomicFeatures
, simply because the data.table method is markedly
faster when importing only the transcript-to-gene relationship. Also, this
method allows the import of more annotations than are supported by the
typical Bioconductor rtracklayer::import()
for GTF data.
This function is intended to help keep all transcript data consistent by using the same GTF file that is also used by other analysis tools, whether those tools be based in R or more likely, outside R in a terminal environment.
For example, the GTF file could be used:
to run STAR sequence alignment
then Rsubread::featureCounts()
to generate a matrix of read
counts per gene, transcript, or exon; or
to generate a transcript
FASTA sequence file then run a kmer quantitation tool such as
Salmon or Kallisto, then using tximport::tximport()
to import
results into R for downstream processing.
data.frame
with colnames indicated by the values in
geneAttrNames
and txAttrNames
.
Other jam RNA-seq functions:
assignGRLexonNames()
,
closestExonToJunctions()
,
combineGRcoverage()
,
defineDetectedTx()
,
detectedTxInfo()
,
exoncov2polygon()
,
flattenExonsBy()
,
getGRcoverageFromBw()
,
groups2contrasts()
,
internal_junc_score()
,
make_ref2compressed()
,
prepareSashimi()
,
runDiffSplice()
,
sortSamples()
,
spliceGR2junctionDF()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.