Repository navigation
RIPPLE v0.1.0
Initial release of the RIPPLE package.
Core method
Per-replicate Poisson GLM with cell-size offset for distance-conditioned gene expression (fit_poisson(), fit_poisson_controlled()).
Cross-replicate inference via Fisher's combined p-value with sign-consistency gating (compute_fisher_pval()).
Reproducibility diagnostic n_sig_samples (number of replicates individually significant at sig_alpha) is reported on every call, so users can see which gradients are supported by multiple replicates rather than one strong sample.
Optional per-sample significance gate min_sig_fraction (default 0, off). When set, a gene is only called if at least ceiling(min_sig_fraction * n_samples) replicates are individually significant. Off by default because it trades power for stricter reproducibility (it discards genuine gradients that reach per-sample significance in only some replicates, especially in small samples).
gradient_score is defined as median_coef, the median of the per-sample Poisson GLM coefficients (equal weight per replicate).
Two-tier expression filtering (strict for regular genes, lenient for a curated set of priority genes) to rescue sparse but biologically important transcripts. The built-in priority list (chemokines, cytokines, interleukins, interferons, and receptors) is curated from MGI, NCBI Gene, and Zlotnik & Yoshie (2012); a species-matched human list is derived automatically.
Optional confounder control via bivariate GLM with a second cell type (run_ripple_confounder()).