TSENAT (Tsallis Entropy Analysis Toolbox) allows the modelization and quantification of isoform-usage complexity in RNA-seq data using Tsallis entropy, a scale-dependent diversity measure distinct from abundance-focused tools (DESeq2, edgeR) and differential transcript usage packages (DRIMSeq). By tuning the entropy index parameter (q), TSENAT enables to examine transcriptome heterogeneity at different scales: rare variants (low q) or dominant isoforms (high q). This package enables computing Tsallis entropy and Tsallis divergence from transcript-level abundance estimates, comparing measures between groups, and visualizing scale-dependent differences via q-curves.
Common RNA-seq tools focus on either total gene abundance changes or individual transcript usage shifts, yet genes often remodel their isoform landscapes without changing overall expression-a phenomenon missed by these approaches. TSENAT makes possible to quantify this isoform-usage diversty directly via Tsallis entropy, allowing to capture biological signals invisible to abundance- or proportion-based summaries.
In this guide, we demonstrate the complete workflow: preprocessing transcript counts, computing entropy across entropic indices, testing for between-group differences, and visualizing scale-dependent complexity.
Design assumptions: This guide assumes paired or longitudinal designs with >=6-8 samples per group for adequate power to detect entropy shifts while controlling false discovery rate. Smaller sample sizes may be underpowered to detect subtle isoform complexity changes.
The easiest way to install TSENAT is through Bioconda:
conda install -c bioconda r-tsenat
To install the latest development version from GitHub:
remotes::install_github("gallardoalba/TSENAT")
For users who want to see results quickly, here is a minimal workflow:
library(TSENAT)
library(SummarizedExperiment)
# Load example data
data("readcounts", package = "TSENAT")
readcounts <- as.matrix(readcounts)
# Load sample metadata and annotation
metadata_df <- read.table(
system.file("extdata", "metadata.tsv", package = "TSENAT"),
header = TRUE, sep = "\t"
)
gff3_file <- system.file("extdata", "annotation.gff3.gz", package = "TSENAT")
# Create analysis object with transcript counts, annotation, and metadata
config <- TSENAT_config(
sample_col = "sample",
condition_col = "condition",
paired = TRUE,
subject_col = "paired_samples",
control = "normal",
q = seq(0, 2, by = 0.05)
)
## Build TSENATAnalysis object
analysis <- build_analysis(
readcounts = readcounts,
tx2gene = gff3_file,
metadata = metadata_df,
config = config,
tpm = tpm,
effective_length = effective_length)
# Filter low-abundance transcripts
analysis <- filter_analysis(analysis)
# Compute Tsallis entropy using S4 wrapper (using single q value for quick start)
analysis <- calculate_diversity(analysis)
# Plot overall q-curve
p_qcurve <- plot_diversity_spectrum(
analysis,
dev_width = 12,
dev_height = 8)
print(p_qcurve)
The concept of entropy originated in Claude Shannon’s landmark 1948 paper on information theory (Shannon 1948), which established that information content could be quantified mathematically. Shannon entropy became the foundation for understanding complexity across mathematics, physics, and biology—if you draw a transcript from a distribution, how predictable is the outcome?
However, Shannon entropy treats all elements equally, regardless of their frequency: it weights rare and common elements identically. This limitation led mathematicians and physicists to explore generalized entropy families, most notably Rényi’s parametric family and Tsallis entropy. Both introduced tunable parameters that allow sensitivity to shift between rare and abundant elements. Remarkably, despite appearing different mathematically, Tsallis and Rényi entropies can be unified within a coherent framework through generalized logarithmic and exponential functions (Tsallis 2017)—both answer the fundamental question: What organizational scales matter?
More recently, Hill numbers (Chao, Chiu, and Jost 2010) provided a modern ecological framework that reinterprets all generalized entropy measures as “true diversity” of different orders. This formulation clarified a crucial insight: diversity questions have scale-dependent answers. The Hill numbers framework unified richness (q=0), Shannon entropy (q=1), Simpson/Gini (q=2), and higher-order generalizations under a single mathematical umbrella—formalizing the idea that rare species and dominant species reveal different ecological (or in our case, transcriptomic) truths.
Standard RNA-seq analysis measures whether transcript abundance changes between conditions. But a critical complementary question remains underexplored: how does the diversity of isoforms change? A gene may show little change in total abundance while dramatically reshuffling its isoform repertoire—a phenomenon that current methods largely miss.
Entropy quantifies precisely this: the complexity, richness, and balance of isoform heterogeneity. By measuring entropy across different biological scales (using the parameter q discussed below), researchers can detect whether changes are driven by shifts in rare isoforms or reorganization of dominant variants. The beauty of the Tsallis framework is that you obtain a complete picture of isoform heterogeneity by computing across a range of entropic indices—a “q-curve”—revealing which aspects of isoform organization change between conditions.
For a discrete probability vector p=(p₁,…,pₙ) representing isoform proportions within a gene, Tsallis entropy is defined as:
\[S_q(p)=\frac{1-\sum_{i=1}^{n}p_i^q}{q-1}\]
This parametric family unites diverse entropy concepts under a single framework:
From an information theory perspective (Shannon 1948; Furuichi 2006), entropy measures the uncertainty when drawing a single transcript from an isoform distribution. Higher entropy means the draw is less predictable (many similarly abundant isoforms), while lower entropy means one or a few isoforms dominate.
The q parameter acts as a sensitivity dial that controls which aspects of the distribution become visible:
This principle formalizes what cannot be implemented in classical Shannon analysis: the ability “not to set rare and common events on the same footing, as in standard statistics, but to enhance or depress them according to the parameter chosen” (Anastasiadis 2012; Ramírez-Reyes et al. 2016; Alomani and Kayid 2023).
The concept of “true diversity” (Chao, Chiu, and Jost 2010) emphasizes that diversity decomposes into two independent components: species richness (how many distinct isoforms exist) and evenness (how evenly distributed they are across the population). Two genes can have identical Shannon entropy yet differ dramatically in isoform structure: one might be dominated by a single abundant isoform with many rare variants (revealing complexity at low q sensitivity), while another distributes transcripts equally across many isoforms (maintaining heterogeneity across all q values). This distinction is crucial: no single entropic index captures the complete complexity landscape.
The multi-scale nature of Tsallis entropy makes it suited for exploring isoform complexity across diverse biological contexts. Different biological processes prioritize different organizational scales:
Isoform complexity as a biological signal: Isoform switching—reorganization of the isoform landscape without necessarily changing total gene abundance—reflects strategic shifts in protein function driven by splicing regulation. Evidence from single-cell transcriptomics demonstrates that transcript-level complexity varies systematically across cell types and developmental states (Cao et al. 2017), validating that isoform heterogeneity is a genuine biological phenomenon rather than noise. By measuring information content at different entropic indices, researchers can detect patterns invisible to traditional transcript abundance measures alone:
TSENAT enables detection of these changes through entropy-based approaches, which capture whether complexity is increasing (diversity spreading across isoforms) or decreasing (consolidation onto dominant isoforms). The recent emphasis on information-theoretic approaches in computational biology (Chanda et al. 2020; Bajić 2024) reflects broader recognition that complex biological systems encode information across multiple organizational scales.
Traditional RNA-seq analysis focuses on fold-changes and differential abundance. Since isoform reorganization can occur independently of total abundance changes, entropy-based approaches complement classical methods by detecting complexity shifts that transcript-level statistics alone cannot reveal. Standard statistical tests (t-tests, DESeq2, etc.) miss the phenomenon entirely: a gene can show zero fold-change while experiencing dramatic isoform reshuffling. This represents a fundamental analytical gap that entropy-based methods address.
Peer-reviewed literature provides strong empirical support for entropy-based analysis in biological contexts:
Entropy and cancer heterogeneity: Cancer cells accumulate genetic and epigenetic perturbations that systematically increase disorder in gene regulatory networks. Tarabichi and colleagues demonstrate that “Increased entropy of signaling (or gene interaction networks) has been well studied as a cancer characteristic: Network entropy increases along with cancer progresses” (Tarabichi et al. 2013).
Nijman’s complementary analysis reveals the mechanism: “cancer-associated perturbations collectively disrupt normal gene regulatory networks by increasing their entropy. Importantly, in this model both somatic driver and passenger alterations contribute to ‘perturbation-driven entropy’, thereby increasing phenotypic heterogeneity and evolvability” (Nijman 2020). This framework elegantly explains observed cancer heterogeneity without requiring that every genetic change confers an advantage—some mutations contribute entropy directly through network disruption. Increased entropy in gene regulatory networks thus drives phenotypic heterogeneity and cellular plasticity, suggesting that transcript-level entropy captures similar organizational principles (Nijman 2020).
We now demonstrate a complete workflow for detecting isoform switching-when cells reorganize their isoform landscape without necessarily changing total gene abundance. This often reflects strategic shifts in protein function driven by splicing regulation.
In this workflow, you will:
We’ll work with a paired experimental design where treated and control samples are linked, enabling detection of robust biological signals while controlling for subject-level variability. By the end, you’ll know not just which genes undergo isoform switching, but which transcripts are responsible and at which diversity scales the switching occurs.
An example dataset is included for demonstration.
# Load packages
suppressPackageStartupMessages({
library(TSENAT)
library(ggplot2)
library(SummarizedExperiment)
})
# Setup random seed for reproducibility
set.seed(42)
Now we will load the example dataset and associated metadata:
# Load example dataset (lazy-loaded as 'readcounts' by default)
# This includes SALMON preprocessing outputs:
# - readcounts: transcript-level NumReads (raw fragment counts)
# - tpm: TPM matrix (length- and library-normalized estimates)
# - effective_length: EffectiveLength vector (read-length corrected)
data(readcounts)
readcounts <- as.matrix(readcounts)
metadata_df <- read.table(
system.file("extdata", "metadata.tsv", package = "TSENAT"),
header = TRUE, sep = "\t"
)
gff3_file <- system.file("extdata", "annotation.gff3.gz", package = "TSENAT")
Next, we will create a TSENATAnalysis object containing a SummarizedExperiment data container (a standard Bioconductor class for storing high-throughput assay data along with associated metadata). You can read more about it in the Bioconductor documentation.
We will use the GFF3.gz annotation file for extracting the transcript-to-gene mapping and building the analysis object. We’ll also include sample metadata for improved analysis. Following Bioconductor best practices, we create the configuration FIRST, then pass it to the builder function (fail-fast principle):
## Configure analysis parameters first (best practice: fail-fast principle)
## This validates all parameters before object creation
config <- TSENAT_config(
sample_col = "sample",
condition_col = "condition",
subject_col = "paired_samples",
q = seq(0, 2, by = 0.05),
nthreads = 2,
paired = TRUE,
control = "normal"
)
## Build a complete `TSENATAnalysis` object
analysis <- build_analysis(
config = config,
readcounts = readcounts,
metadata = metadata_df,
tx2gene = gff3_file,
tpm = tpm,
effective_length = effective_length
)
The TSENATAnalysis object contains a SummarizedExperiment with transcript-level counts and gene annotations extracted from the GFF3 file.
To reduce noise and improve statistical power, we should filter out lowly-expressed transcripts. Expression estimates of transcript isoforms with zero or low expression might be highly variable (Jose and Lal 2013; Chakraborty 2019). For more details on the effect of transcript isoform prefiltering on differential transcript usage, see this paper.
# Filter lowly-expressed transcripts
analysis <- filter_analysis(analysis, stringency = "medium")
The stringency = "medium" parameter keeps transcripts present in >=50% of samples with TPM values above the median of mean gene TPM. This balances noise reduction with preservation of isoform diversity needed for meaningful entropy calculations.
We now compute Tsallis entropy across your configured q-spectrum. Diversity measures provide a comprehensive framework for assessing isoform heterogeneity at multiple scales (Ramírez-Reyes et al. 2016; Gandrillon et al. 2021). We normalize entropy to [0,1] range (norm = TRUE) for comparable cross-q assessment.
# Set random seed for reproducible bootstrap CI calculations
set.seed(12345)
# Compute diversity
analysis <- calculate_diversity(
analysis,
norm = TRUE
)
# Extract and display diversity results
diversity <- results(analysis,
type = "diversity",
n_genes = 4,
sample = "SRR14800481")
print(diversity)
| Gene | q=0.0 | q=0.5 | q=1.0 | q=1.5 | q=2.0 |
|---|---|---|---|---|---|
| FOXJ2 | 0.66667 | 0.53796 | 0.48150 | 0.46975 | 0.48518 |
| TMEM38A | 1.00000 | 0.82704 | 0.72526 | 0.66965 | 0.64401 |
| CCNE1 | 0.33333 | 0.32256 | 0.32749 | 0.34571 | 0.37418 |
| MCOLN1 | 1.00000 | 0.39297 | 0.21567 | 0.16305 | 0.15195 |
With the q-spectrum we can produce a q-curve per sample and gene. These curves show how diversity emphasis shifts from rare to dominant isoforms as q increases and form the basis for interaction tests. The q-curve shows entropy as a function of q. Diverging curves between groups indicate scale-dependent diversity differences: separation at low q implies differences in rare isoforms, while separation at high q signals differences in dominant isoforms.
# Plot overall q-curve
p_qcurve <- plot_diversity_spectrum(analysis)
print(p_qcurve)
Figure 1: Isoform diversity profiles across entropic indices. Lines show normalized Tsallis entropy (0-1) for each sample, blue control and red treatment.
Before proceeding with group-level comparisons, we should assess whether individual samples exert disproportionate influence on our entropy estimates (Efron, Bradley and Tibshirani, Robert J. 1993). To address this, we employ a leave-one-out influence assessment combined with robust M-estimation (Ernst 2004) (iteratively re-weighted least squares with Huber loss). This approach quantifies how much each sample’s removal affects the estimated location differences across the q-spectrum, providing a sample-level quality control metric independent of group assignment.
Samples with high influence scores exert disproportionate leverage on entropy estimates and may warrant deeper investigation for technical quality issues, subject-specific outliers, or genuine biological signals that require careful interpretation.
We configure three key parameters: loss_type = "huber" employs Huber M-estimation (robust to outliers with bounded influence), q_combine_method = "mean" averages influence metrics across the entire q-spectrum for a single score per sample, and influence_threshold = 0.75 designates the percentile cutoff above which samples are flagged (such that the top 25% most influential samples are reviewed).
# Perform multi-q sample influence analysis via S4 wrapper
analysis <- calculate_m_estimator(
analysis,
loss_type = "huber",
q_combine_method = "mean",
influence_threshold = 0.75
)
# Extract results from metadata using accessor function
sample_qc <- metadata(analysis, "m_estimate_results")
print(sample_qc)
| Sample | Condition | Proportion_Affected | Distance_from_Centroid | Status |
|---|---|---|---|---|
| SRR14800481 | normal | 0.847 | 1.7930 | OK |
| SRR14800480 | normal | 0.806 | 1.2384 | OK |
| SRR14800477 | normal | 0.833 | 1.5809 | OK |
| SRR14800476 | normal | 0.889 | 0.9118 | OK |
| SRR14800475 | normal | 0.861 | 1.6796 | OK |
| SRR14800490 | normal | 0.849 | 1.3522 | OK |
| SRR14800489 | normal | 0.875 | 1.0969 | OK |
| SRR14800488 | normal | 0.861 | 1.6536 | OK |
| SRR14800479 | tumor | 0.861 | 2.2114 | OK |
| SRR14800478 | tumor | 0.903 | 1.5721 | Flag for QC |
| SRR14800487 | tumor | 0.861 | 1.2201 | OK |
| SRR14800486 | tumor | 0.903 | 1.4798 | Flag for QC |
| SRR14800485 | tumor | 0.861 | 1.4140 | OK |
| SRR14800484 | tumor | 0.889 | 1.1499 | OK |
| SRR14800483 | tumor | 0.861 | 1.6020 | OK |
| SRR14800482 | tumor | 0.917 | 1.6711 | Flag for QC |
Interpretation: Samples with distance from centroid >1.5 or proportion of affected genes >0.85 are flagged for quality control review. Flagged samples may reflect genuine biological heterogeneity or technical artifacts requiring careful examination before proceeding with downstream analysis.
Each gene produces a q-curve: a trajectory showing how entropy changes across entropic scales from rare (low q) to abundant (high q) isoforms. Our goal is to detect whether this curve differs between groups—in other words, whether the effect of q on entropy depends on which group a sample belongs to. This is captured statistically as a q x condition interaction: if significant, it reveals genes with condition-specific diversity patterns that change shape across the diversity spectrum. Scale-Adaptive Interaction Tests (SAIT) naturally formalize this multi-scale comparison through adaptive statistical frameworks, making them ideal for identifying such scale-dependent biological signals.
We can test for these interactions using one of four methods, each with specific strengths:
All methods automatically account for the AR(1) correlation structure inherent in Tsallis entropy measurements.
# Scale-adaptive interaction test across q values using S4 wrapper
analysis <- calculate_sait(
analysis,
method = "gam",
multicorr = "hochberg"
)
# Extract SAIT interaction results
sait_results <- results(analysis, type = "sait", rankBy = "pvalue", n = 10)
print(sait_results)
| Gene | P-value | Adj. P-value | Effect Size | Test Statistic | Model Converged | Heteroscedasticity |
|---|---|---|---|---|---|---|
| CXCL12 | 3.93e-164 | 2.99e-162 | 0.8127 | 752.5086 | TRUE | TRUE |
| THY1 | 9.80e-97 | 7.35e-95 | 0.6008 | 442.1369 | TRUE | TRUE |
| ING3 | 2.72e-77 | 2.02e-75 | 0.3533 | 352.5945 | TRUE | TRUE |
| SNHG10 | 9.81e-75 | 7.16e-73 | 0.0515 | 340.8200 | TRUE | TRUE |
| LINC03040 | 1.87e-57 | 1.35e-55 | 0.7380 | 261.2380 | TRUE | TRUE |
| HDAC2 | 2.61e-51 | 1.85e-49 | 0.2844 | 232.9431 | TRUE | TRUE |
Interpretation: TRUE in the Heteroscedasticity column indicates that the model satisfies homogeneity-of-variance assumptions across the q-spectrum; FALSE values suggest variance heterogeneity and warrant caution in result interpretation.
Now we will plot the q-curve profile for the top genes identified by the scale-adaptive interaction test.
# Plot q-curve profiles for the top 4 genes using the S4 wrapper
combined_plot <- plot_sait(
analysis,
n_top = 4
)
print(combined_plot)
Figure 2: Scale-dependent interaction analysis. GAM-identified genes showing significant q$ imes$condition effects (Benjamini-Hochberg q < 0.05).
The SAIT interaction tests whether condition effects depend on which diversity scale (q-value) you examine. This section identifies which individual transcripts drive these scale-dependent patterns, revealing whether the same transcripts switch across all scales or whether different regulatory mechanisms dominate at rare versus abundant isoform scales.
This workflow combines two complementary statistical methods:
Delta influence (from jackknife resampling (Efron, Bradley and Tibshirani, Robert J. 1993)) quantifies how each transcript’s relative importance changes between normal and tumor conditions, weighted by stability across bootstrap iterations (positive = more influential in normal condition; negative = more influential in tumor condition).
# Multi-Q analysis: Test switching at different q values
analysis <- calculate_jis(
analysis,
q = c(0, 0.5, 1, 1.5, 2),
nboot = 100,
lm_p_threshold = 0.05,
threshold = 90
)
We configure three key parameters for the switching analysis: nboot = 100 specifies 100 bootstrap resamples to estimate robust confidence intervals for delta influence values (Efron, Bradley and Tibshirani, Robert J. 1993); lm_p_threshold = 0.05 filters genes to those with significant q\(\times\)condition interaction effects (p < 0.05) before assessing transcript switching; and threshold = 90 designates transcripts with support \(\geq\) 90% across bootstrap samples as robust switches. These parameters balance sensitivity (detecting switching) with specificity (avoiding false positives from noise).
The tables below show the transcript switching patterns for the top genes with strongest q×condition interactions, automatically computed via bootstrap resampling. The Direction Consistency column classifies each transcript: “Consistent” indicates stable switching across entropic indices, while “Mixed” indicates scale-dependent switching. This reveals whether isoform shifts involve the same transcripts across scales or whether different entropic indices emphasize different transcripts.
# Retrieve gene switching tables
tables_result <- results(analysis, type = "switching_tables")
| Transcript | q=0.50 | q=1.00 | q=1.50 | Direction Consistency |
|---|---|---|---|---|
| ENST00000343575.11 | 0.000 | 0.041 | 0.062 | Mixed directions |
| ENST00000374426.6 | -0.063 | -0.051 | -0.040 | Consistent negative |
| ENST00000374429.6 | 0.164 | 0.156 | 0.123 | Consistent positive |
| Transcript | q=0.50 | q=1.00 | q=1.50 | Direction Consistency |
|---|---|---|---|---|
| ENST00000524970.5 | -0.046 | 0.002 | 0.014 | Mixed directions |
| ENST00000900758.1 | 0.045 | 0.031 | 0.019 | Consistent positive |
| ENST00000956364.1 | -0.075 | -0.092 | -0.102 | Consistent negative |
Visualize switching patterns for the top genes identified by the SAIT interaction test. This shows which transcripts are switching in genes with significant q × condition interaction effects. The heatmaps below display jackknife delta influence (Efron and Tibshirani 1993)-a resampling-based measure of how robustly each transcript’s relative contribution changes between conditions-across different entropic indices and transcripts for each gene. Delta influence values are computed from bootstrap resampling iterations, providing robust, non-parametric estimates of transcript switching significance weighted by consistency across replicates.
# Generate multi-Q heatmaps for top 4 genes using S4 wrapper
plot_jis_delta(analysis, n_genes = 4)
Figure 3: Transcript-level switching patterns via jackknife resampling. Rows q-values (0-2.0), columns transcripts. Red/blue indicates condition influence.
Interpretation: Rows represent q-values across the diversity spectrum (0 to 2.0, with low q emphasizing rare isoforms and high q emphasizing abundant isoforms).
This robustness-weighted visualization reveals not just which transcripts switch, but how reliably they switch, allowing distinction between robust biological signals and artifacts of sampling variation.
Finally we can visualize the isoform expression profiles.
# Generate transcript abundance heatmap
plot_expression(analysis, top_n = 4, metric = "median")
Figure 4: Transcript abundance heatmap with hierarchical clustering. Rows are transcripts, columns are conditions. Blue low, red high expression.
This heatmap reveals a critical blind spot in standard transcript quantification approaches: raw abundance measures reduce each transcript to a single number, completely obscuring the relational structure that defines isoform switching. TSENAT’s entropy-based approach captures precisely what this heatmap reveals: not just which transcripts change in abundance, but how the diversity and balance of the isoform repertoire itself changes.
To understand which diversity scales show the most pronounced biological differences between groups, we will compute Tsallis divergence \(D_q\) across the q-spectrum (Kullback and Leibler 1951; Furuichi 2006; Jost 2006; Erven and Harremoes 2014; Sason 2022; Shiner and others 2002)]. This metrics allows to reveal whether group differences are driven by rare isoforms (low q), dominant isoforms (high q), or uniformly across scales. Values \(D > 0.1\) indicate meaningful information-theoretic separation between conditions, revealing that isoform complexity patterns fundamentally differ between treatment groups across all q-dependent scales (Ré and Azad 2014).
For two probability distributions \(P\) and \(Q\) representing isoform proportions in control and treatment conditions, Tsallis divergence is:
\[D_q(P||Q) = \frac{1 - \sum_i p_i^q \cdot q_i^{1-q}}{q-1}\]
where \(p_i\) and \(q_i\) are the probability values at position \(i\).
# Computes pairwise information-theoretic distance (Tsallis divergence)
analysis <- calculate_divergence(analysis)
| q_0.01 | q_0.05 | q_0.1 | |
|---|---|---|---|
| FOXJ2 | 0.04377 | 0.04633 | 0.04952 |
| TMEM38A | 0.14876 | 0.15768 | 0.16891 |
| GSR | 0.08359 | 0.08801 | 0.09349 |
| SNX4 | 0.06378 | 0.06744 | 0.07200 |
# Compute effect sizes
analysis <- calculate_effect_sizes(
analysis,
significance_threshold = 0.05,
enrich_per_q_pattern = TRUE
)
# Extract top 6 genes by statistical significance
top_genes_result <- results(
analysis,
type = "effect_sizes_divergence",
top_n = 6,
sort_by = "p_value_interaction"
)
print(top_genes_result)
| Gene | P-value | Slope Diff | D(q=0.5) | D(q=1.0) | D(q=2.0) | Pattern |
|---|---|---|---|---|---|---|
| CXCL12 | 0 | -0.3725 | 0.3115 | 0.3697 | 0.1643 | Balanced |
| THY1 | 0 | 0.2928 | 0.1481 | 0.1720 | 0.0589 | Balanced |
| ING3 | 0 | 0.1136 | 0.0122 | 0.0137 | 0.0040 | Rare driven |
| SNHG10 | 0 | 0.1203 | 0.0874 | 0.0956 | 0.0283 | Rare driven |
| LINC03040 | 0 | 0.1063 | 0.2850 | 0.3119 | 0.1098 | Rare driven |
| HDAC2 | 0 | 0.1244 | 0.0651 | 0.0699 | 0.0201 | Rare driven |
The effect sizes reveal which genes show the most information-theoretic separation across the q-spectrum between paired treatment groups. Genes with Tsallis divergence D > 0.1 show substantial divergence, indicating that entropy distributions differ fundamentally between conditions across the full q-spectrum.
Biological Interpretation: Following Tsallis entropy theory and information-theoretic principles (Furuichi 2006; Jost 2006; Erven and Harremoes 2014; Hyndman and Athanasopoulos 2018), effect size quantification (Chanda et al. 2020) genes with large D values are those where isoform complexity distributions differ qualitatively between conditions when examined at all sensitivity scales (q = rare -> abundant isoforms). For example, a gene might show high entropy at low q (emphasizing rare isoforms) in one condition but low entropy at high q (emphasizing abundant isoforms) in another, revealing scale-dependent regulatory mechanisms. These genes are candidates for investigation of condition-specific splicing architecture and dynamic isoform switching.
# Visualize the distribution of Tsallis divergence effect sizes across genes
plot_obj <- plot_divergence_distribution(
analysis,
threshold = 0.1
)
print(plot_obj)
# Visualize q-spectrum curves for top 4 genes by significance
p_multi <- plot_divergence_spectrum(
analysis,
n_genes = 4,
use_pvalue_ranking = TRUE
)
print(p_multi)
Figure 5: Q-spectrum curves for top genes by significance. Each line represents divergence as a function of q-value; shape reveals biological pattern (rare-driven, balanced, or abundant-driven).
Interpreting the Q-Spectrum Curve:
Shape matters more than single value: The q-spectrum curve is the complete biological story (Chao, Chiu, and Jost 2010). A flat curve (balanced) vs. declining curve (rare driven) vs. rising curve (abundant driven) encode fundamentally different mechanisms (Sason 2022). As described in the pattern table above, genes falling into each category reveal different regulatory strategies.
q=1 (KL divergence): The middle point corresponds to ordinary Kullback-Leibler divergence (Kullback and Leibler 1951; Ré and Azad 2014), where the Tsallis divergence reduces to standard KL divergence in the limit q→1. This weights all isoforms equally.
We can also plot the global divergence spectrum across all genes. This curve is the full biological signature of isoform switching-the pattern encodes which abundance scales (rare vs. abundant) are affected.
# Visualize global divergence q-spectrum across all genes (aggregated)
# Plot is rendered directly by knitr (no file dependency)
p <- plot_divergence_spectrum(analysis)
print(p)
Figure 6: Global divergence spectrum across all genes. Aggregated q-spectrum pattern shows which abundance scales (rare vs. abundant isoforms) are affected genome-wide.
Statistical Validation During Interpretation:
Bootstrap CI validity: Per-q CIs should narrow as q increases (higher q = aggregation effect, less variance). If CIs grow with q, check for data quality issues (Efron and Tibshirani 1993; Efron, Bradley and Tibshirani, Robert J. 1993).
Monotonicity check: By Tsallis entropy theory , entropy is monotone decreasing in q. Divergence should NOT show erratic increases with q. Small fluctuations are normal, but large spikes indicate numerical instability (Furuichi 2006).
Comparison with genome-wide patterns: Compute q-spectra for housekeeping genes (GAPDH, ACTB, etc.). These should show BALANCED patterns. If not, revisit normalization parameters (Erhard et al. 2018).
This main vignette is complemented by two comprehensive appendices:
Appendix A: Equivalence Validation - TSENAT vs SplicingFactory
Objetive: Validates that TSENAT’s Shannon and Simpson entropy implementations are mathematically equivalent to SplicingFactory.
Appendix B: Non-Parametric Validation of Statistical Test Results via GAM and Rank-Based Methods
Objective: Validate q-value * group interaction detection results from statistical tests using complementary non-parametric modeling approaches.
Adami, C. (2004). “Information theory in molecular biology.” Physics of Life Reviews, 1(1), 3–22. https://doi.org/10.1016/j.plrev.2004.01.002
Alomani, G., & Kayid, M. (2023). “Further Properties of Tsallis Entropy and Its Application.” Entropy, 25(2), 199. https://doi.org/10.3390/e25020199
Anastasiadis, A. (2012). “Entropy Properties and Multiple Tsallis Distributions.” Entropy, 14, 174–176. https://doi.org/10.3390/e14020174
Bajic, D. (2024). “Information Theory, Living Systems, and Communication Engineering.” Entropy, 26(5), 430. https://doi.org/10.3390/e26050430
Bartal, A., & Jagodnik, K. M. (2022). “Progress in and Opportunities for Applying Information Theory to Computational Biology and Bioinformatics.” Entropy, 24(7), 925. https://doi.org/10.3390/e24070925
Benjamini, Y., & Hochberg, Y. (1995). “Controlling the false discovery rate: a practical and powerful approach to multiple testing.” Journal of the Royal Statistical Society B, 57(1), 289–300
Cao, J., Packer, J. S., Ramani, V., Cusanovich, D. A., Huynh, C., Daza, R., … & Shendure, J. (2017). “Comprehensive single-cell transcriptional profiling of a multicellular organism.” Science, 357, 661–667. https://doi.org/10.1126/science.aam8940
Chakraborty, T. (2019). Introductory Time Series Analysis. Indian Statistical Institute, Kolkata
Chanda, P., Costa, E., Hu, J., Sukumar, S., Van Hemert, J., & Walia, R. (2020). “Information Theory in Computational Biology: Where We Stand Today.” Entropy, 22(6), 627. https://doi.org/10.3390/e22060627
Chao, A., Chiu, C.-H., & Jost, L. (2010). “Phylogenetic Diversity Measures Based on Hill Numbers.” Philosophical Transactions of the Royal Society B, 365(1558), 3599–3609. https://doi.org/10.1098/rstb.2010.0272
Cover, T. M., & Thomas, J. A. (2006). Elements of Information Theory (2nd ed.). Wiley-Interscience.
Efron, B., & Tibshirani, R. J. (1993). An Introduction to the Bootstrap (2nd ed.). Chapman and Hall
Erhard, F., Hense, B., Jafari, M., Siebourg-Polster, J., Dölken, L., & Zimmer, R. (2018). “Improved Ribo-seq puromycin target reliability using Bayesian nonparametrics.” Bioinformatics, 34(12), 2096–2102
Ernst, M. D. (2004). “Permutation Methods: A Basis for Exact Inference.” Statistical Science, 19(4), 676–685
Furuichi, S. (2006). “Information theoretical properties of Tsallis entropies.” Journal of Mathematical Physics, 47, 023302. https://doi.org/10.1063/1.2165744
Gandrillon, O., Gaillard, M., Espinasse, T., Garnier, N. B., Dussiau, C., Kosmider, O., & Sujobert, P. (2021). “Entropy as a Measure of Variability and Stemness in Single-Cell Transcriptomics.” Entropy, 24(1), e93532. https://doi.org/10.3390/e24010018
Gao, X., Tsai, S.-B., Liu, F., Pan, L., & Deng, Y. (2019). “Uncertainty Measure Based on Tsallis Entropy in Evidence Theory.” International Journal of Intelligent Systems, 34(6), 1626–1647. https://doi.org/10.1002/int.22185
Golomb, R., Yoles, M., Fishilevich, S., Cohen, O., Savariego Peled, E., Dahary, D., … & Pilpel, Y. (2026). “An Information Content Principle Explains Regulatory Patterns.” bioRxiv, ahead of print. https://doi.org/10.1101/2026.02.19.706555
Hyndman, R. J., & Athanasopoulos, G. (2018). Forecasting: Principles and Practice (2nd ed.). OTexts. https://otexts.com/fpp2/
Jost, L. (2006). “Entropy and Diversity.” Oikos, 113(2), 363–375. https://doi.org/10.1111/j.2006.0030-1299.14714.x
Jose, J., & Lal, P. S. (2013). “Application of ARIMA(1,1,0) Model for Predicting Time Delay of Search Engine Crawlers.” Informatica Economică, 17(4), 26–39. https://doi.org/10.12948/issn14531305/17.4.2013.03
Kullback, S., & Leibler, R. A. (1951). “On information and sufficiency.” Annals of Mathematical Statistics, 22(1), 79–86. https://doi.org/10.1214/aoms/1177729694
Nijman, S. M. B. (2020). “Perturbation-driven entropy as a source of cancer cell heterogeneity.” Trends in Cancer, 6(6), 454–462. https://doi.org/10.1016/j.trecan.2020.02.016
Phipson, B., & Smyth, G. K. (2010). “Permutation P-values should never be zero.” Statistical Applications in Genetics and Molecular Biology, 9(1), Article 39
Ramírez-Reyes, A., Hernández-Montoya, A. R., Herrera-Corral, G., & Domínguez-Jiménez, I. (2016). “Determining the Entropic Index q of Tsallis Entropy in Images through Redundancy.” Entropy, 18(8), 299. https://doi.org/10.3390/e18080299
Ré, M. A., & Azad, R. K. (2014). “Generalization of Entropy Based Divergence Measures for Symbolic Sequence Analysis.” PLoS ONE, 9(4), e93532. https://doi.org/10.1371/journal.pone.0093532
Sason, I. (2022). “Divergence Measures: Mathematical Foundations and Applications in Information-Theoretic and Statistical Problems.” Entropy, 24(5), 712. https://doi.org/10.3390/e24050712
Seweryn, M. T., Pietrzak, M., & Ma, Q. (2020). “Application of Information Theoretical Approaches to Assess Diversity and Similarity in Single-Cell Transcriptomics.” Computational and Structural Biotechnology Journal, 18, 1830–1837. https://doi.org/10.1016/j.csbj.2020.05.006
Shannon, C. E. (1948). “A Mathematical Theory of Communication.” The Bell System Technical Journal, 27(3–4), 379–423
Shiner, J. S., Emelyanova, N. A., & Gafarov, F. M. (2002). Entropy and Entropy Generation: Fundamentals and Applications. Kluwer Academic Publishers
Simpson, E. H. (1949). “Measurement of diversity.” Nature, 163, 688. https://doi.org/10.1038/163688a0
Tarabichi, M., Antoniou, A., Saiselet, M., Pita, J. M., Andry, G., Dumont, J. E., … & Maenhaut, C. (2013). “Systems biology of cancer: entropy, disorder, and selection-driven evolution to independence, invasion and ‘swarm intelligence’.” Cancer Metastasis Reviews, 32, 403–421. https://doi.org/10.1007/s10555-013-9431-y
Tsallis, C. (2017). “On the foundations of statistical mechanics.” European Physical Journal Special Topics, 226, 1433–1443. https://doi.org/10.1140/epjst/e2016-60252-2
Van Erven, T., & Harremoes, P. (2014). “Rényi Divergence and Kullback-Leibler Divergence.” IEEE Transactions on Information Theory, 60(7), 3797–3820. https://doi.org/10.1109/TIT.2014.2320500
Yulmetyev, R. M., Emelyanova, N. A., & Gafarov, F. M. (2004). “Dynamical Shannon Entropy and Information.” Physica A, 341, 649–676. https://doi.org/10.1016/j.physa.2004.03.094
sessionInfo()
#> R version 4.6.0 RC (2026-04-17 r89917)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.4 LTS
#>
#> Matrix products: default
#> BLAS: /home/biocbuild/bbs-3.23-bioc/R/lib/libRblas.so
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0 LAPACK version 3.12.0
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_GB LC_COLLATE=C
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#>
#> time zone: America/New_York
#> tzcode source: system (glibc)
#>
#> attached base packages:
#> [1] stats4 stats graphics grDevices utils datasets methods
#> [8] base
#>
#> other attached packages:
#> [1] SummarizedExperiment_1.42.0 Biobase_2.72.0
#> [3] GenomicRanges_1.64.0 Seqinfo_1.2.0
#> [5] IRanges_2.46.0 S4Vectors_0.50.0
#> [7] BiocGenerics_0.58.0 generics_0.1.4
#> [9] MatrixGenerics_1.24.0 matrixStats_1.5.0
#> [11] ggplot2_4.0.3 TSENAT_0.99.10
#> [13] kableExtra_1.4.0
#>
#> loaded via a namespace (and not attached):
#> [1] gtable_0.3.6 xfun_0.57 bslib_0.10.0
#> [4] lattice_0.22-9 vctrs_0.7.3 tools_4.6.0
#> [7] parallel_4.6.0 tibble_3.3.1 pkgconfig_2.0.3
#> [10] pheatmap_1.0.13 Matrix_1.7-5 RColorBrewer_1.1-3
#> [13] S7_0.2.2 lifecycle_1.0.5 compiler_4.6.0
#> [16] farver_2.1.2 stringr_1.6.0 textshaping_1.0.5
#> [19] codetools_0.2-20 htmltools_0.5.9 sass_0.4.10
#> [22] yaml_2.3.12 pillar_1.11.1 jquerylib_0.1.4
#> [25] tidyr_1.3.2 BiocParallel_1.46.0 cachem_1.1.0
#> [28] DelayedArray_0.38.1 abind_1.4-8 nlme_3.1-169
#> [31] tidyselect_1.2.1 digest_0.6.39 stringi_1.8.7
#> [34] dplyr_1.2.1 purrr_1.2.2 splines_4.6.0
#> [37] labeling_0.4.3 cowplot_1.2.0 fastmap_1.2.0
#> [40] grid_4.6.0 cli_3.6.6 SparseArray_1.12.2
#> [43] magrittr_2.0.5 S4Arrays_1.12.0 dichromat_2.0-0.1
#> [46] withr_3.0.2 scales_1.4.0 rmarkdown_2.31
#> [49] XVector_0.52.0 otel_0.2.0 memoise_2.0.1
#> [52] evaluate_1.0.5 knitr_1.51 viridisLite_0.4.3
#> [55] mgcv_1.9-4 rlang_1.2.0 Rcpp_1.1.1-1.1
#> [58] glue_1.8.1 xml2_1.5.2 svglite_2.2.2
#> [61] rstudioapi_0.18.0 jsonlite_2.0.0 R6_2.6.1
#> [64] systemfonts_1.3.2