docs: rename project to obiskim and expand documentation

Rename the project from "obikmer" to "obiskim" across all documentation, user guides, and developer notes. Add extensive new theoretical and implementation documentation covering chance sharing, sibling partition unification, pair-coverage sampling, MPHF batch queries, merge scaling, and hot resume/memoization. Update navigation structures to reflect these new topics and the new project name.

- Rename "obikmer" to "obiskim" in all HTML titles, headers, navigation labels, and code examples across `DevDoc/` and `doc/` directories.
- Add new navigation links for "Chance sharing across genomes", "Sibling partition unification", "Pair-coverage-biased family sampling", "MPHF batch queries", "Merge mmap audit", "Merge scaling", and "Hot resume and memoization" throughout the documentation site.
- Move `DevDoc/architecture/numa_worker_pools/index.html` to `DevDoc/architecture/hot_resume_memoization/index.html` and update content to focus on hot resume and memoization strategies.
- Move `DevDoc/implementation/evidence_elimination/index.html` to `DevDoc/implementation/merge_mmap_audit/index.html` and update content to detail merge mmap audit findings and plans.
- Move `DevDoc/implementation/superkmer.refs/index.html` to `DevDoc/implementation/merge_scaling/index.html` and update content to discuss merge scaling costs and dependencies.
- Move `DevDoc/theory/indexing/index.html` to `DevDoc/theory/chance_sharing/index.html` and rewrite content to discuss chance sharing across genomes and null models.
- Move `DevDoc/theory/minimizer/index.html` to `DevDoc/theory/sibling_partition_unification/index.html` and update content to discuss sibling partition unification and Can3 masked canonical form.
- Add new `DevDoc/implementation/mphf_batch_queries/index.html` documenting MPHF batch query performance and inventory.
- Add new `DevDoc/theory/pair_coverage_sampling/index.html` documenting pair-coverage-biased family sampling theory and diagnostics.
- Update `DevDoc/architecture/query/index.html` to describe `by_partition` using `Vec<PartitionKmers>` instead of `HashMap` for reduced memory usage.
- Update `DevDoc/implementation/merge/index.html` to describe bootstrap output logic selecting base source by largest `unitigs.bin` size and using `MatrixBuilder::resume`.
- Update `DevDoc/implementation/unitig_evidence/index.html` to change `MAX_KMERS_PER_CHUNK` from 256 to 128 and update rank field documentation.
- Update `DevDoc/implementation/obipipeline/index.html` to reflect that `obiskim` uses `make_pipe!` and `.apply()` instead of `make_pipeline!` / `WorkerPool`.
- Update `DevDoc/implementation/filtering/index.html` to change `FilterArgs` inheritance to `obiskim::cmd::predicate::FilterArgs`.
- Update `DevDoc/implementation/partition_layer_cache/index.html` to reflect new crate dependency structure requiring external reachability for algorithm implementation traits.
- Update `doc/formats/index_layout/index.html` to describe new directory structure for index files including `part_NNNNN/index/layer_X/` and updated merging/packing logic.
- Update `doc/formats/vcf/index.html` to use `obiskim` prefixes for contigs and update VCF header source.
- Update `doc/usage/estimate/index.html` to add "Comparing an index with random sharing" section and clarify `--index` and `--presence-threshold` options.
- Update `doc/usage/phylo/index.html` to clarify that running `obiskim phylo` twice draws independent samples and update `--sibling-annex` behavior.
- Update `doc/usage/select/index.html` to clarify that `select` always writes to a new output directory and explains hard-linking mechanism.
- Add new BibTeX entries for Karlin et al. and Bennett et al. in `doc/references.bib`.
- Delete `scripts/smoke_test_index2.sh` which contained end-to-end smoke tests for `obikmer2 index` and `obikmer query`.
- Update `src/Cargo.lock` to bump "obiskim" package dependency from 1.4.8 to 1.4.9.
This commit is contained in:
Eric Coissac committed 2026-12-02 16:12:54 +01:00
1 parent 917cb26186
commit f1b4b4ebda
102 files changed
+27255 -1226

No files matched your search

+8 -8
View File
@@ -23,7 +23,7 @@
<title>phylo - obikmer — User Guide</title>
<title>phylo - obiskim — User Guide</title>
@@ -80,7 +80,7 @@
<header class="md-header md-header--shadow" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="../.." title="obikmer — User Guide" class="md-header__button md-logo" aria-label="obikmer — User Guide" data-md-component="logo">
<a href="../.." title="obiskim — User Guide" class="md-header__button md-logo" aria-label="obiskim — User Guide" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
@@ -94,7 +94,7 @@
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
obikmer — User Guide
obiskim — User Guide
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
@@ -138,13 +138,13 @@
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="../.." title="obikmer — User Guide" class="md-nav__button md-logo" aria-label="obikmer — User Guide" data-md-component="logo">
<a href="../.." title="obiskim — User Guide" class="md-nav__button md-logo" aria-label="obiskim — User Guide" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
</a>
obikmer — User Guide
obiskim — User Guide
</label>
<ul class="md-nav__list" data-md-scrollfix>
@@ -2218,7 +2218,7 @@
</ul>
<p>Distance matrices can be used to build Neighbor-Joining or UPGMA trees. SNP-based analyses can also produce a pseudo-alignment and calibrated substitution costs, with exports for external phylogenetic tools (TNT, PhyG, IQ-TREE).</p>
<h2 id="usage">Usage</h2>
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>phylo<span class="w"> </span>INDEX<span class="w"> </span><span class="o">[</span>OPTIONS<span class="o">]</span>
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>phylo<span class="w"> </span>INDEX<span class="w"> </span><span class="o">[</span>OPTIONS<span class="o">]</span>
</code></pre></div>
<h2 id="arguments">Arguments</h2>
<table>
@@ -2340,7 +2340,7 @@
<h2 id="snp-character-selection-and-sampling">SNP character selection and sampling</h2>
<p>SNP-based analyses can use every eligible variable family, or a sample drawn from the index. The options below control which characters are selected, which genomes and states are kept, and how the sample is spread over the index.</p>
<p><code>--n-sites</code>, <code>--free-loss</code>, <code>--no-ambiguity</code>, <code>--quartet</code>, <code>--pair-balance</code>, <code>--entropy</code>/<code>--entropy-sd</code> are shared by <code>--pseudo-alignment</code>, <code>--sankoff</code> (and everything it implies: <code>--tnt</code>/<code>--phyg</code>/<code>--iqtree</code>), and a <code>snp-*</code> <code>--distance</code> value — one draw feeds all of them in a single invocation. <code>--n-sites</code> is mandatory for <code>--pseudo-alignment</code>/<code>--sankoff</code>, where it takes either a number of sites or <code>all</code>; for a <code>snp-*</code> <code>--distance</code> value it is optional, and omitting it is the same as <code>all</code> (every non-monomorphic family in the index, not an approximation).</p>
<p>Combining <code>--sankoff</code> (or <code>--tnt</code>/<code>--phyg</code>/<code>--iqtree</code>) with a <code>snp-*</code> <code>--distance</code> value in the same command reuses that one draw for both — the distance and the Sankoff calibration/alignment are guaranteed to be computed from the <em>identical</em> set of sampled sites, never two independent samples, so the two outputs are directly comparable. This only holds within a single command; running them as two separate <code>obikmer phylo</code> invocations draws two independent samples even with the same flags.</p>
<p>Combining <code>--sankoff</code> (or <code>--tnt</code>/<code>--phyg</code>/<code>--iqtree</code>) with a <code>snp-*</code> <code>--distance</code> value in the same command reuses that one draw for both — the distance and the Sankoff calibration/alignment are guaranteed to be computed from the <em>identical</em> set of sampled sites, never two independent samples, so the two outputs are directly comparable. This only holds within a single command; running them as two separate <code>obiskim phylo</code> invocations draws two independent samples even with the same flags.</p>
<p>Every invocation draws its own fresh random sample: running the same command twice gives two different (but equally valid) samples, which is useful for measuring sampling variance and is kept that way deliberately.</p>
<p>With <code>--n-sites all</code> (or, for a <code>snp-*</code> <code>--distance</code> value, without <code>--n-sites</code>), every variable family (family size ≥ 2) that passes the other filters is used. With <code>--n-sites N</code>, roughly <code>N</code> families are kept instead (see <a href="../../theory/phylogeny/snp_based/sampling_design/">Sampling design</a> for how the draw stays representative of the whole index). If fewer than <code>N</code> candidate families remain, <code>--n-sites</code> has no effect.</p>
<table>
@@ -2453,7 +2453,7 @@
<tbody>
<tr>
<td><code>--sibling-annex</code></td>
<td>Build (or rebuild) the sibling-count/minorant annex. Rebuilding it makes the annexes derived from it obsolete, so they are dropped; then only the derived annexes that the other options of the same command read are rebuilt, each under the <code>--no-ambiguity</code> / <code>--only-diploid</code> convention given: <code>--entropy</code> the entropy annex, <code>--quartet</code> the quartet annex, <code>--pair-balance</code> the pair-weight and family-overlap annexes, <code>--family-overlap</code> or <code>--min-shared-family</code> the family-overlap annex. For example <code>--sibling-annex --quartet --only-diploid</code> prepares exactly the quartet annex of that convention, and <code>--sibling-annex</code> alone prepares none. An annex that is not prepared is built later, on demand, by the computation that reads it. Every option in this section needs the sibling annex, and builds it by itself, under an exclusive lock on the index, if it is missing (as it is after <code>migrate-mphf</code>); running <code>--sibling-annex</code> first does the same work once, which is the safe way to start several <code>phylo</code> runs on the same index at the same time</td>
<td>Build (or rebuild) the sibling-count/minorant annex. Rebuilding it makes the annexes derived from it obsolete, so they are dropped; then only the derived annexes that the other options of the same command read are rebuilt, each under the <code>--no-ambiguity</code> / <code>--only-diploid</code> convention given: <code>--entropy</code> the entropy annex, <code>--quartet</code> the quartet annex, <code>--pair-balance</code> the pair-weight and family-overlap annexes, <code>--family-overlap</code> or <code>--min-shared-family</code> the family-overlap annex. For example <code>--sibling-annex --quartet --only-diploid</code> prepares exactly the quartet annex of that convention, and <code>--sibling-annex</code> alone prepares none. An annex that is not prepared is built later, on demand, by the computation that reads it. Every option in this section needs the sibling annex, and builds it by itself, under an exclusive lock on the index, if it is missing; running <code>--sibling-annex</code> first does the same work once, which is the safe way to start several <code>phylo</code> runs on the same index at the same time</td>
</tr>
<tr>
<td><code>--sibling-stats</code></td>