docs: update k-mer indexing docs to use obiskim terminology

Replace references to OBIKmer with obiskim in k-mer indexing documentation and clarify technical constraints. The changes align the documentation with the current implementation details, including representation limits and ordering rules.

- Update `.crate-kit/VERSION` from 0.3.6+0.1.1 to 0.3.7+0.1.1.
- Modify `Makefile` `clean-doc-user` target to delete existing wiki markdown files before regeneration and clarify that wiki commits are manual.
- Rename `OBIKmer` to `obiskim` in `UserDocMD/theory/kmer_indexing/kmers.md` and update k-mer constraints to reflect obiskim's two-bit-per-nucleotide representation ($k \leq 32$, odd $k$).
- Update `UserDocMD/theory/kmer_indexing/minimizer_selection.md` to reference obiskim and specify ordering via deterministic hash function $H$.
- Apply corresponding terminology and constraint updates in `doc/theory/kmer_indexing/kmers/index.html`, including the $11 \leq k \leq 31$ range rationale.
- Update `doc/theory/kmer_indexing/minimizer_selection/index.html` to reference obiskim and the deterministic hash ordering rule.
This commit is contained in:
Eric Coissac committed 2026-12-02 16:13:48 +01:00
1 parent f935fb66c4
commit e4528725d4
6 files changed
+27 -24

No files matched your search

+10 -10
View File
@@ -1,6 +1,6 @@
# K-mer size
A k-mer is a DNA sequence of length $k$. OBIKmer is designed to index
A k-mer is a DNA sequence of length $k$. obiskim is designed to index
large k-mers. Here, *large* refers to a k-mer length for which the
probability of observing the same k-mer in several genomes by chance
alone is sufficiently small. The k-mer length must therefore be large
@@ -8,14 +8,14 @@ enough that, when a k-mer is observed in several genomes of the dataset,
the probability that this shared occurrence is due to chance alone is
sufficiently low for the match to be considered evidence of homology.
OBIKmer restricts $k$ to odd values in the range
obiskim restricts $k$ to odd values in the range
$$
11 \leq k \leq 31.
$$
These limits result from two different considerations. The upper bound
is imposed by the representation used by OBIKmer, whereas the lower
is imposed by the representation used by obiskim, whereas the lower
bound defines a practical range of k-mer lengths for genome-scale
sequence comparisons. This range covers most practical applications: the
lower limit is well below the k-mer size that can be considered large,
@@ -25,8 +25,8 @@ involving very large genomes.
## Representation limit
OBIKmer uses two bits to encode each nucleotide. Therefore, a k-mer
requires $2k$ bits. To ensure computational efficiency, OBIKmer limits
obiskim uses two bits to encode each nucleotide. Therefore, a k-mer
requires $2k$ bits. To ensure computational efficiency, obiskim limits
the representation of k-mers to a single 64-bit word, thereby
restricting their length.
@@ -35,12 +35,12 @@ $$
$$
This gives the hard representation limit: $k \leq 32.$ Furthermore,
OBIKmer only considers odd values of $k$, meaning the largest supported
obiskim only considers odd values of $k$, meaning the largest supported
k-mer size is $31$.
## Odd k-mer lengths
OBIKmer additionally requires $k$ to be odd. This constraint is
obiskim additionally requires $k$ to be odd. This constraint is
independent of the specificity considerations discussed below.
For an odd-length DNA sequence, a k-mer cannot be identical to its own
@@ -56,7 +56,7 @@ $$
is well defined for both odd and even lengths. Restricting $k$ to odd
values guarantees that the two orientations are always distinct,
simplifying the representation and orientation handling used by OBIKmer.
simplifying the representation and orientation handling used by obiskim.
## K-mer specificity
@@ -95,7 +95,7 @@ The following section introduces a random-sequence model to quantify the probabi
## Chance sharing across genomes
OBIKmer indexes distinct canonical k-mers and records the genomes in
obiskim indexes distinct canonical k-mers and records the genomes in
which each k-mer occurs. This makes it possible to compare the observed
sharing of k-mers with the sharing expected under a random-sequence
model. The same probability model can be used for two related purposes:
@@ -109,7 +109,7 @@ The null hypothesis assumes that the $S$ indexed genomes are unrelated
and that each genome is an independent random sequence in which
nucleotides are independent and equiprobable.
Since OBIKmer uses odd-length canonical k-mers, reverse-complement
Since obiskim uses odd-length canonical k-mers, reverse-complement
canonicalization reduces the number of possible k-mers by half. The size
of the canonical k-mer space is therefore
@@ -4,7 +4,7 @@
The **minimizer** of a k-mer is the canonical form of the m-mer that is smallest according to a chosen ordering among the $k-m+1$ overlapping m-mers contained in the k-mer, with $m<k$ [@Roberts2004-rz]. Canonical form is the same operation defined for a full kmer (see [DNA encoding](encoding.md)), applied here to an m-mer $s$ instead: $s^c = \min_{\mathrm{lex}}\left(s,\operatorname{RC}(s)\right)$.
In **OBIkmer**, canonical m-mers are ordered according to a deterministic hash function $H$ applied to their canonical form:
In **obiskim**, canonical m-mers are ordered according to a deterministic hash function $H$ applied to their canonical form:
$$
s_1^c <_h s_2^c