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:
1 parent
917cb26186
commit
f1b4b4ebda
102 files changed
+27255
-1226
No files matched your search
@@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
|
||||
<link rel="prev" href="../merge_parallelism/">
|
||||
<link rel="prev" href="../merge_scaling/">
|
||||
|
||||
|
||||
<link rel="next" href="../select/">
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
|
||||
<title>Kmer filtering - obikmer</title>
|
||||
<title>Kmer filtering - obiskim</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" class="md-header__button md-logo" aria-label="obikmer" data-md-component="logo">
|
||||
<a href="../.." title="obiskim" class="md-header__button md-logo" aria-label="obiskim" 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
|
||||
obiskim
|
||||
</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" class="md-nav__button md-logo" aria-label="obikmer" data-md-component="logo">
|
||||
<a href="../.." title="obiskim" class="md-nav__button md-logo" aria-label="obiskim" 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
|
||||
obiskim
|
||||
</label>
|
||||
|
||||
<ul class="md-nav__list" data-md-scrollfix>
|
||||
@@ -396,6 +396,34 @@
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../theory/chance_sharing/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Chance sharing across genomes (discussion)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../theory/evolutionary_distances/" class="md-nav__link">
|
||||
|
||||
@@ -418,6 +446,62 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../theory/sibling_partition_unification/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Sibling partition unification (discussion)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../theory/pair_coverage_sampling/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Pair-coverage-biased family sampling (discussion)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@@ -676,6 +760,34 @@
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../mphf_batch_queries/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
MPHF batch queries (inventory)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../unitig_evidence/" class="md-nav__link">
|
||||
|
||||
@@ -870,6 +982,62 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../merge_mmap_audit/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Merge mmap audit (2026-11)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../merge_scaling/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Merge scaling (open)
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1408,6 +1576,34 @@
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../architecture/hot_resume_memoization/" class="md-nav__link">
|
||||
|
||||
|
||||
|
||||
<span class="md-ellipsis">
|
||||
|
||||
|
||||
Hot resume and memoization
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="../../architecture/numa_worker_pools/" class="md-nav__link">
|
||||
|
||||
@@ -2117,7 +2313,7 @@ mathematically equivalent for integer counts: <code>n / N < F</code> ↔ <cod
|
||||
<h2 id="examples">Examples</h2>
|
||||
<p>Keep k-mers specific to <em>Betula nana</em> — present in at least 2 <em>B. nana</em> genomes
|
||||
and absent from every other genome in the index:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"species=Betula_nana"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"*"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-count<span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="se">\</span>
|
||||
@@ -2125,7 +2321,7 @@ and absent from every other genome in the index:</p>
|
||||
</code></pre></div>
|
||||
<p>Keep k-mers found in at least 2 <em>Betula nana</em> genomes and absent from all
|
||||
other <em>Betula</em>:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"species=Betula_nana"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"genus=Betula"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-count<span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="se">\</span>
|
||||
@@ -2133,14 +2329,14 @@ other <em>Betula</em>:</p>
|
||||
</code></pre></div>
|
||||
<p>Use taxonomic paths — keep k-mers present in ≥ 50 % of the <em>Betula</em> clade
|
||||
and in fewer than 10 % of everything outside <em>Betulaceae</em>:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"taxon~/Betulaceae/Betula"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"taxon!~/Betulaceae"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-frac<span class="w"> </span><span class="m">0</span>.5<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--max-outgroup-frac<span class="w"> </span><span class="m">0</span>.1
|
||||
</code></pre></div>
|
||||
<p>Multiple outgroup predicates (OR): exclude k-mers present in <em>Alnus</em> or <em>Carpinus</em>:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"genus=Betula"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"genus=Alnus"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"genus=Carpinus"</span><span class="w"> </span><span class="se">\</span>
|
||||
@@ -2148,21 +2344,21 @@ and in fewer than 10 % of everything outside <em>Betulaceae</em>:</p>
|
||||
</code></pre></div>
|
||||
<p>Noise-tolerant core — keep k-mers present in <em>all but one</em> ingroup genome
|
||||
(<code>-1</code> = <code>n−1</code>) and absent from <em>all but one</em> of the outgroup:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>filter<span class="w"> </span>src<span class="w"> </span>--output<span class="w"> </span>dst<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"genus=Betula"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"*"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-count<span class="w"> </span>-1<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--max-outgroup-count<span class="w"> </span>-1
|
||||
</code></pre></div>
|
||||
<p>To dump only k-mers specific to <em>Betula nana</em>:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"species=Betula_nana"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"*"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-count<span class="w"> </span><span class="m">1</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--max-outgroup-count<span class="w"> </span><span class="m">0</span>
|
||||
</code></pre></div>
|
||||
<p>To enumerate unitigs of the <em>Betula</em>-specific subgraph:</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>unitig<span class="w"> </span>myindex<span class="w"> </span><span class="se">\</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>unitig<span class="w"> </span>myindex<span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"genus=Betula"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--outgroup<span class="w"> </span><span class="s2">"*"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--min-count<span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="se">\</span>
|
||||
@@ -2173,14 +2369,14 @@ and in fewer than 10 % of everything outside <em>Betulaceae</em>:</p>
|
||||
<p>Stops output after the first N k-mers that pass all active filters.
|
||||
Iteration terminates immediately — subsequent partitions and layers are not scanned.
|
||||
Useful for quick inspection of large indexes without loading the entire dataset.</p>
|
||||
<div class="highlight"><pre><span></span><code>obikmer<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span>--head<span class="w"> </span><span class="m">100</span>
|
||||
obikmer<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span>--head<span class="w"> </span><span class="m">20</span><span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"species=Betula_nana"</span><span class="w"> </span>--min-count<span class="w"> </span><span class="m">1</span>
|
||||
<div class="highlight"><pre><span></span><code>obiskim<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span>--head<span class="w"> </span><span class="m">100</span>
|
||||
obiskim<span class="w"> </span>dump<span class="w"> </span>myindex<span class="w"> </span>--head<span class="w"> </span><span class="m">20</span><span class="w"> </span>--ingroup<span class="w"> </span><span class="s2">"species=Betula_nana"</span><span class="w"> </span>--min-count<span class="w"> </span><span class="m">1</span>
|
||||
</code></pre></div>
|
||||
<h3 id="phylo-presence-threshold-n"><code>phylo --presence-threshold N</code></h3>
|
||||
<p>When computing Jaccard distance on a <strong>count index</strong>, a k-mer is considered present in a genome if its count is ≥ N (default 1).
|
||||
This option is independent of the <code>--presence-threshold</code> used in filtering.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="c1"># Jaccard treating kmers with count ≥ 2 as present</span>
|
||||
obikmer<span class="w"> </span>phylo<span class="w"> </span>myindex<span class="w"> </span>--metric<span class="w"> </span>jaccard<span class="w"> </span>--presence-threshold<span class="w"> </span><span class="m">2</span>
|
||||
obiskim<span class="w"> </span>phylo<span class="w"> </span>myindex<span class="w"> </span>--metric<span class="w"> </span>jaccard<span class="w"> </span>--presence-threshold<span class="w"> </span><span class="m">2</span>
|
||||
</code></pre></div>
|
||||
<p>This parameter has no effect on presence/absence indexes (where values are already 0/1) or on metrics other than Jaccard.</p>
|
||||
<h2 id="implementation">Implementation</h2>
|
||||
@@ -2193,7 +2389,7 @@ obikmer<span class="w"> </span>phylo<span class="w"> </span>myindex<span class="
|
||||
lookup and counter.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><strong><code>obikmer::cmd::predicate::FilterArgs</code></strong> — shared <code>clap</code> argument group
|
||||
<p><strong><code>obiskim::cmd::predicate::FilterArgs</code></strong> — shared <code>clap</code> argument group
|
||||
embedded via <code>#[command(flatten)]</code> in <code>FilterArgs</code>, <code>DumpArgs</code>, and
|
||||
<code>UnitigArgs</code>. <code>FilterArgs::build_filters()</code> returns a ready-to-use filter
|
||||
list.</p>
|
||||
|
||||
Reference in new issue
Block a user