Implement gamma shape correction for SNP distance calculation

Introduces support for rate heterogeneity via a Poisson-Gamma mixture model. This includes new command-line options (`--gamma-shape`, `--gamma-shape auto`) to enable automatic estimation of the shape parameter $\alpha$ based on substitution counts across partitions. The correction is applied to the distance metric, with logic to disable the correction if variance checks fail.
This commit is contained in:
Eric Coissac committed 2026-09-12 07:44:39 +02:00
1 parent e846d35adb
commit 020b391636
11 files changed
+401 -40

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ pub use cardcomp::{
};
pub use pairwise::{BasePairTally, CardinalityTally, RawSnpDistanceOutput};
pub use sankoff::SankoffBundle;
pub use snp_distance::SnpDistanceKind;
pub use snp_distance::{GammaShape, SnpDistanceKind};
pub use stats::SiblingAnnexStats;
pub use subsample::{EntropyBias, SurvivingFamily};