Abstract
Gene co-expression measurements are widely used in computational biology to identify coordinated expression patterns across samples, indicating shared transcriptional regulatory programs or biological processes. While RNA-Sequencing data requires normalization to remove technical variability, certain quantile-based methods can introduce false-positive associations, particularly in large-scale heterogeneous datasets. We present SNAIL (Smooth-quantile Normalization Adaptation for Inference of co-expression Links), a method designed to mitigate these spurious correlations. SNAIL utilizes trimmed means and median aggregation for tied ranks to preserve global biological differences while eliminating technical artifacts. Our results demonstrate that SNAIL significantly reduces false-positive associations in co-expression and downstream network analyses, allowing for the retention of lowly expressed genes without compromising data integrity.
Introduction
Identifying gene co-expression—where genes exhibit synchronized expression patterns—is fundamental to understanding cellular regulatory networks. RNA-Sequencing (RNA-Seq) is the standard tool for capturing these patterns, but the raw data is often confounded by technical noise, such as variations in library size. Normalization is required to make samples comparable.
Smooth quantile normalization (qsmooth) has emerged as a powerful technique for large, heterogeneous datasets because it accounts for global biological differences between sample groups (e.g., different tissues). However, these methods can inadvertently create "ghost" or spurious correlations. This phenomenon is most prevalent in "zero-inflated" data, where many genes have zero counts. Standard quantile algorithms handle "ties" (identical read counts) by assigning arbitrary ranks, which can lead to different normalized values for the same zero count across samples, manifesting as false biological signals.
Methods: The SNAIL Framework
To address the limitations of standard quantile-based normalization, we developed SNAIL. The method refines the qsmooth framework through two primary technical adjustments:
- Trimmed Mean Reference Distribution: Instead of a simple average, SNAIL calculates the reference distribution using a trimmed mean (excluding the top and bottom 15% of values). This ensures that outliers and high frequencies of zeros do not disproportionately skew the normalization baseline.
- Median Aggregation for Tied Ranks: To prevent the creation of artificial variance among genes with identical read counts (common with zeros), SNAIL identifies tied counts within a sample and assigns them the median of their potential normalized values. This ensures that identical raw inputs result in identical normalized outputs.
The workflow transitions from raw gene read counts to normalized expression, followed by Spearman correlation to generate co-expression matrices and single-sample networks using tools like LIONESS.
Results
We evaluated SNAIL using the GTEx (Genotype-Tissue Expression) V8 dataset and Mouse ENCODE data with ERCC spike-ins as a ground truth.
Reduction of Spurious Correlations
In the GTEx dataset, standard qsmooth normalization introduced over 3,400 false-positive associations (at a correlation threshold of $\rho > 0.3$) between genes that are biologically exclusive to different tissues. SNAIL reduced these spurious links to just 231, representing a 93% reduction in technical noise.
As shown in the heatmaps, SNAIL (right) effectively clears the off-diagonal noise present in standard smooth quantile normalization (left), which incorrectly suggests high correlation between distinct tissues like Cerebellum and Liver.
Ground Truth Validation
Using synthetic ERCC spike-ins in the Mouse ENCODE dataset, we measured the Root Mean Square Error (RMSE) between calculated correlations and known concentrations. SNAIL achieved an RMSE of 0.015, a significant improvement over the 0.389 observed with standard qsmooth. Furthermore, downstream network analysis using SNAIL-normalized data produced zero significant false-positive edges compared to the ground truth.
Discussion
SNAIL demonstrates that arbitrary gene filtering—a common practice to remove lowly expressed genes that cause normalization issues—is not always necessary. By fixing the underlying normalization logic, researchers can retain rare transcripts and study genes active only in specific sub-populations.
While currently optimized for co-expression and network inference, SNAIL's principles could likely benefit other association-based studies, such as eQTL mapping. As biological datasets continue to scale into massive "cell atlases," robust normalization methods like SNAIL will be essential to prevent "computational hallucinations" and ensure that discovered networks reflect true biological coordination.
Summary updated