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
+14
-14
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
|
||||
<title>VCF pseudo-alignment - obikmer — User Guide</title>
|
||||
<title>VCF pseudo-alignment - 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>
|
||||
@@ -1748,26 +1748,26 @@
|
||||
<p>The pseudo-alignment (see <a href="../../theory/phylogeny/snp_based/central_snp_model/">Central-position SNP model</a>) has one column per <em>family</em>: the up to four k-mers that share all their bases except the central one. A genome that carries one of these k-mers shows a particular base at the centre, and the columns of the alignment are those central bases, genome by genome. The FASTA output keeps this as a matrix of letters. The VCF output lists the same columns as sites with alleles and genotypes, which is the form that variant-oriented tools (<code>bcftools</code>, population-genetics software, genotype viewers) expect.</p>
|
||||
<p>Nothing here comes from a reference genome. The file has no real coordinates, and the sites are not located on a chromosome: the positions below are labels that make the file valid and reproducible, not map positions.</p>
|
||||
<h2 id="producing-the-file">Producing the file</h2>
|
||||
<div class="highlight"><pre><span></span><code>obikmer phylo --vcf --n-sites 5000000 -o run1 my_index
|
||||
<div class="highlight"><pre><span></span><code>obiskim phylo --vcf --n-sites 5000000 -o run1 my_index
|
||||
</code></pre></div>
|
||||
<p><code>--vcf</code> implies <code>--pseudo-alignment</code>, so <code>--n-sites N|all</code> is required, (the sibling annex it reads is built automatically if missing; see <a href="../../usage/phylo/"><code>phylo</code></a>). <code>--fasta</code> and <code>--vcf</code> can be given together to get both files from the same draw; with neither, only the FASTA is written. Every option that shapes the draw (<code>--free-loss</code>, <code>--no-ambiguity</code>, <code>--only-diploid</code>, <code>--quartet</code>, <code>--exclude-genome</code>, ...) applies to the VCF exactly as to the FASTA, since both describe the same sites.</p>
|
||||
<h2 id="layout">Layout</h2>
|
||||
<p>An illustrative excerpt (columns are tab-separated in the file):</p>
|
||||
<div class="highlight"><pre><span></span><code>##fileformat=VCFv4.5
|
||||
##source=obikmer
|
||||
##contig=<ID=obikmer_0_0>
|
||||
##contig=<ID=obikmer_0_1>
|
||||
##source=obiskim
|
||||
##contig=<ID=obiskim_0_0>
|
||||
##contig=<ID=obiskim_0_1>
|
||||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype (diploid)">
|
||||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT idx0 idx1 idx2 idx3
|
||||
obikmer_0_0 440 CGATTNGTTAA A G . . . GT 0/0 1/1 0/0 0/0
|
||||
obikmer_0_0 1511 CACGANTGTAG A G,T . . . GT 0/0 0/0 1/1 2/2
|
||||
obikmer_0_1 9 TTACGNAGCTA C * . . . GT 0/0 0/0 1/1 0/0
|
||||
obiskim_0_0 440 CGATTNGTTAA A G . . . GT 0/0 1/1 0/0 0/0
|
||||
obiskim_0_0 1511 CACGANTGTAG A G,T . . . GT 0/0 0/0 1/1 2/2
|
||||
obiskim_0_1 9 TTACGNAGCTA C * . . . GT 0/0 0/0 1/1 0/0
|
||||
</code></pre></div>
|
||||
<p>There is one sample column per genome that takes part in the draw, named after the genome label, in the index's own order. A genome removed with <code>--exclude-genome</code> or <code>--min-shared-family</code> has no column at all. <code>QUAL</code>, <code>FILTER</code> and <code>INFO</code> are always <code>.</code>: obikmer applies no variant filter and attaches no annotation, and leaving them empty keeps a file of millions of sites compact.</p>
|
||||
<p>There is one sample column per genome that takes part in the draw, named after the genome label, in the index's own order. A genome removed with <code>--exclude-genome</code> or <code>--min-shared-family</code> has no column at all. <code>QUAL</code>, <code>FILTER</code> and <code>INFO</code> are always <code>.</code>: obiskim applies no variant filter and attaches no annotation, and leaving them empty keeps a file of millions of sites compact.</p>
|
||||
<h2 id="coordinates-chrom-and-pos">Coordinates: <code>CHROM</code> and <code>POS</code></h2>
|
||||
<p>An index is organised in partitions, and each partition holds one or more layers of k-mers (see <a href="../index_layout/">Index construction and on-disk layout</a>). A family always belongs to exactly one layer of one partition, and the families of a layer are visited in a fixed order. The VCF uses that structure as coordinates:</p>
|
||||
<ul>
|
||||
<li><code>CHROM</code> is <code>obikmer_<partition>_<layer></code>, one virtual contig per layer of each partition in which at least one site was drawn;</li>
|
||||
<li><code>CHROM</code> is <code>obiskim_<partition>_<layer></code>, one virtual contig per layer of each partition in which at least one site was drawn;</li>
|
||||
<li><code>POS</code> is the rank of the family inside that layer, starting at 1.</li>
|
||||
</ul>
|
||||
<p>For a given index and a given sibling annex, a family therefore always receives the same <code>CHROM</code> and <code>POS</code>, whatever the draw, the options or the number of sites requested. Two runs on the same index can be compared position by position. This stability is lost if the sibling annex is rebuilt, or if the index is rebuilt, merged or filtered, because the families are then enumerated again. Positions are never comparable between two different indexes; use <code>ID</code> for that. Even rebuilding an index from the very same genomes may enumerate the families in another order: on a small test index built twice from identical input, the family <code>CGATTNGTTAA</code> had <code>POS</code> 440 the first time and 371 the second, with the same <code>ID</code>.</p>
|
||||
|
||||
Reference in new issue
Block a user