Central-position SNP model
Family
A family is the set of up to 4 kmers sharing identical flanking sequence and differing only at the central base — the odd kmer length guarantees a single, well-defined central position (see Kmers). A family is eligible for a genome pair \((i,j)\) only if both genomes carry exactly one of its observed forms (single-copy, unambiguous) — this excludes multi-copy and absent loci from the comparison rather than folding them into an undifferentiated "not identical" bucket the way a whole-index distance would.
Conditioning on eligibility this way restricts every comparison to loci that are directly, positively confirmed comparable in both genomes: a locus never enters the statistic because of a genuinely absent homologous region, a diverged paralogous copy, or a genome-size asymmetry — only because a real single-copy substitution (or lack of one) was observed at flanks confirmed intact in both genomes.
Substitution corrections (snp-*)
For a genome pair, let \(L\) be its total number of eligible loci, \(p\) the raw proportion of substitutions among those loci, \(P\)/\(Q\) the transition/transversion proportions, \(Q_1\)/\(Q_2\) Kimura's two transversion categories (A↔C & G↔T vs. A↔T & C↔G), \(P_1\)/\(P_2\) the purine (A↔G) / pyrimidine (C↔T) transition proportions, and \(\pi_A,\pi_C,\pi_G,\pi_T\) the pair's pooled base frequencies.
snp-raw
snp-jc
snp-k2p
snp-k81
snp-f81
snp-t92
snp-tn93
snp-tv — transversions only, deliberately uncorrected:
A rate-heterogeneity correction applies to every formula above except snp-raw and snp-tv: each \(-\ln(x)\) term is replaced by \(\alpha\left(x^{-1/\alpha}-1\right)\) (same weight, same \(x\)) — see Gamma rate heterogeneity for the correction itself and how \(\alpha\) is estimated.
See phylo for how to select a snp-* value and the prerequisite index annex it requires.