spliced_trans_length | R Documentation |
Computes the spliced length of transcripts by summing the lengths of their constituent exons. This represents the mature RNA length after intron removal.
spliced_trans_length(input)
input |
A data frame containing GENCODE annotations in GTF format, including |
This function processes the input data to:
Filter entries to include only exons.
Group exons by transcript ID.
Sum the widths of all exons per transcript.
The result provides the total length of the mature spliced RNA for each transcript.
A data frame with two columns: transcript_id
and transcript_length
, where the latter is the sum of exon widths for each transcript.
file_v1 <- system.file("extdata", "gencode.v1.example.gtf.gz", package = "GencoDymo2")
gtf_v1 <- load_file(file_v1)
spliced_lengths <- spliced_trans_length(gtf_v1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.