stat_summary | R Documentation |
Calculates descriptive summary statistics (mean, median, standard deviation, etc.) for the lengths of exons or introns, grouped by classification (e.g., first exon, inner intron).
stat_summary(input, type, verbose = TRUE)
input |
A data frame containing classified exons or introns. For exons, must include |
type |
A character string specifying the element type. Valid options: |
verbose |
A logical indicating whether to print progress messages. Defaults to |
For exons, statistics are grouped by EXON_CLASSIFICATION
. For introns, groups include first_intron
, inner_intron
, and splice site types (e.g., gc_intron
).
A data frame with summary statistics for each element group, including mean, median, standard deviation, standard error, quartiles, and sample size.
file_v1 <- system.file("extdata", "gencode.v1.example.gtf.gz", package = "GencoDymo2")
gtf_v1 <- load_file(file_v1)
# Exon statistics
exon_stats <- stat_summary(gtf_v1, type = "exon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.