Computes the spliced length of transcripts by summing the lengths of their constituent exons. This represents the mature RNA length after intron removal.
Usage
spliced_trans_length(input)
Value
A data frame with two columns: transcript_id and transcript_length, where the latter is the sum of exon widths for each transcript.
Arguments
input
A data frame containing GENCODE annotations in GTF format, including type, transcript_id, and width columns.
Details
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.