optimizedTranscriptLengths | R Documentation |
A speedup wrapper around transcriptLengths
,
default load time of lengths is ~ 15 seconds, if ORFik fst
optimized lengths object has been made, load that file instead:
load time reduced to ~ 0.1 second.
optimizedTranscriptLengths(
txdb,
with.utr5_len = TRUE,
with.utr3_len = TRUE,
create.fst.version = FALSE
)
txdb |
a TxDb file or a path to one of: (.gtf ,.gff, .gff2, .gff2, .db or .sqlite), if it is a GRangesList, it will return it self. |
with.utr5_len |
logical TRUE, include length of 5' UTRs, ignored if .fst exists |
with.utr3_len |
logical TRUE, include length of 3' UTRs, ignored if .fst exists |
create.fst.version |
logical, FALSE. If TRUE, creates a .fst version
of the transcript length table (if it not already exists),
reducing load time from ~ 15 seconds to
~ 0.01 second next time you run filterTranscripts with this txdb object.
The file is stored in the
same folder as the genome this txdb is created from, with the name: |
a data.table of loaded lengths 8 columns, 1 row per transcript isoform.
dt <- optimizedTranscriptLengths(ORFik.template.experiment())
dt
dt[cds_len > 0,] # All mRNA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.