theory phylogeny kmer_based kmer_set_distances
Eric Coissac edited this page 2026-11-20 14:21:57 +01:00
Clone

Wiki Page Revisions

5 Commits

Author SHA1 Message Date
Eric Coissac d0009f1292 docs: add VCF pseudo-alignment support and refine phylo/estimate commands
Add documentation for the new `--vcf` output format in `phylo`, which implements
pseudo-alignment where columns represent k-mer families. Update `usage-index_command`
to clarify input file handling and add `--dense` option to `usage-merge` for controlling
output storage format. Refine `usage-estimate` to support comparing index sharing against
random models, and update `usage-phylo` with new SNP-based sampling options like
`--quartet` and `--pair-balance`.

- Add `formats-vcf.md` documenting the VCF pseudo-alignment output, including column
  semantics (k-mer families), allele representation rules, and genotype conventions.
- Update `_Sidebar.md` to include a new "VCF pseudo-alignment" section under Formats.
- Modify `theory-kmer_indexing-kmers.md` to restrict k-mer size $k$ to odd values
  between 11 and 31, clarify null probability calculations, and add references for
  Karlin & Burge (1995) and Karlin et al. (1994).
- Update `theory-phylogeny-kmer_based-kmer_set_distances.md` to clarify that Hamming
  distance is used without normalization and explain the nonlinear transformation of
  Jaccard similarity in Mash.
- Modify `theory-phylogeny-snp_based-gamma_rate_heterogeneity.md` to clarify that the
  method-of-moments estimator is an `obikmer` addition, not part of Jin & Nei's (1990)
  correction, and update reference links.
- Update `theory-phylogeny-snp_based-sampling_design.md` to introduce `entropy4` calculation,
  "Quartet restriction" logic, and "Pair balance" weighting to address small carrier set
  issues and prevent weight growth.
- Modify `usage-estimate.md` to support two independent uses: estimating index parameters
  before building an index and comparing existing index sharing against expected random
  sharing via the new `--index` subcommand with CSV output.
- Update `usage-index_command.md` to document input file reading rules, including explicit
  file handling, format detection, and directory extension filtering.
- Modify `usage-merge.md` to add `--dense` option for storing merged indexes in a dense
  packed format, clarifying memory usage dependencies and merge source constraints.
- Update `usage-phylo.md` with new SNP-based options (`--n-sites`, `--free-loss`,
  `--no-ambiguity`, `--quartet`, `--pair-balance`, `--entropy`), `--sample-stats` CSV
  generation, and `--shannon-summary` for entropy distribution.
2026-11-20 14:21:57 +01:00
Eric Coissac 5110e73f69 Introduce k-mer set distance metrics
Defines various distance metrics for k-mer sets, including presence/absence-based (Hamming), abundance-based (Euclidean), Hellinger, and Bray–Curtis dissimilarity.
2026-09-12 19:08:53 +02:00
Eric Coissac 167d7155b0 Introduce k-mer based distances (Hamming and Mash).
Defines the Hamming distance based on k-mer presence/absence vectors and introduces the Mash distance, noting it is an evolutionary estimator rather than a metric.
2026-09-12 19:02:25 +02:00
Eric Coissac 23e6540dd7 Introduce k-mer set distance classification
Document the theoretical classification of k-mer set distances based on information retained and metric properties.

Defines new presence/absence and abundance-based distances, including Jaccard, Hamming, Euclidean, and Hellinger. Clarifies metric properties of various dissimilarity measures.
2026-09-12 18:59:23 +02:00
Eric Coissac 52858dfa4a Refactor phylogenetic models and update usage documentation
This commit removes entries related to Kmer-based and SNP-based phylogenetic methods, refining the definitions for SNP models, and introducing new documentation for k-mer based set-based distances. Additionally, new configuration options and exclusion flags are added to clarify tree generation behavior.
2026-09-12 18:27:37 +02:00