refactor: rename obikmer to obiskim

Rename the `obikmer` binary, crate, and documentation to `obiskim`. This change updates all references in source code, build scripts, CI workflows, and user documentation to reflect the new tool name.

- Move `src/obikmer` to `src/obiskim`, renaming the package and binary in `Cargo.toml` and updating `main.rs` and `cli.rs` to use the new name.
- Update `src/Cargo.toml` and `src/Cargo.lock` to replace the `obikmer` workspace member with `obiskim`.
- Update `Makefile` targets (`build`, `release`, `debug`, `profile-build`) and variables (`CARGO_TOML`, `bump-version`) to build and manage `obiskim`.
- Update `.gitea/workflows/release.yml` to build and upload `obiskim` artifacts for Linux and macOS.
- Rename all files in `src/obiskim/src/cmd/` from `obikmer` to `obiskim` paths, updating error messages and help text in `index/mod.rs`, `phylo/args/mod.rs`, and `phylo/tnt.rs`.
- Update documentation in `UserDocMD/` (including `index.md`, `installation.md`, `architecture.md`, and usage guides) to reference `obiskim` commands and behavior.
- Update `benchmark/` scripts and Python verification tools to use `obiskim` binary paths and arguments.
- Update `scripts/` (including `smoke_test_*.sh`, `bench_merge_oracle.sh`, and Docker debug scripts) to test and build `obiskim`.
- Update comments and error messages in library crates (`obicompactvec`, `obifastwrite`, `obikentropy`, `obikfilter`, `obikindex`, `obikindexer`, `obikphylo`, `obikselect`, `obikseq`, `obiread`, `obisys`) to reference `obiskim`.
This commit is contained in:
Eric Coissac committed 2026-12-01 18:15:13 +01:00
1 parent a71e59d6f0
commit 42d5b881ec
106 files changed
+223 -223

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
Add or update genome metadata of an index from a CSV file, or dump the current metadata as CSV.
```bash
obikmer annotate INDEX --csv FILE [OPTIONS]
obikmer annotate INDEX --dump
obiskim annotate INDEX --csv FILE [OPTIONS]
obiskim annotate INDEX --dump
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Convert an existing index's evidence representation in place, between exact, approximate, and hybrid.
```bash
obikmer convert INDEX (--exact-evidence | --approx-evidence BITS | --hybrid-evidence) [OPTIONS]
obiskim convert INDEX (--exact-evidence | --approx-evidence BITS | --hybrid-evidence) [OPTIONS]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Dump all kmers of an index as CSV, one row per kmer, with per-genome counts or presence.
```bash
obikmer dump INDEX [OPTIONS]
obiskim dump INDEX [OPTIONS]
```
## Arguments
+2 -2
View File
@@ -3,7 +3,7 @@
`estimate` has two independent uses. Without `--index`, it estimates approximate-index parameters (z, evidence bits, false-positive rate) before building an index with `--approx`, without touching any files. With `--index`, it compares the k-mer sharing observed in an existing index with the sharing expected by chance (see the last section).
```bash
obikmer estimate [OPTIONS]
obiskim estimate [OPTIONS]
```
## Options
@@ -20,7 +20,7 @@ Any two of `-z`, `--evidence-bits`, `--fp` may be given; the third is derived us
## Comparing an index with random sharing
```bash
obikmer estimate --index INDEX [--presence-threshold N] [-o FILE]
obiskim estimate --index INDEX [--presence-threshold N] [-o FILE]
```
With `--index`, `estimate` reads an existing index instead of computing approximate-index parameters, and it cannot be combined with `-k`, `-z`, `--evidence-bits` or `--fp`. Its purpose is to tell how much of the k-mer sharing between the genomes of the index goes beyond what chance alone would produce, which is the question behind the choice of $k$ (see [K-mer size](../theory/kmer_indexing/kmers.md)).
+1 -1
View File
@@ -3,7 +3,7 @@
Apply row-level selection to an index: retain only kmers matching ingroup/outgroup predicates over genome membership, plus optional total-count and complexity thresholds. The output is a new, single-layer index.
```bash
obikmer filter SOURCE -o OUTPUT [OPTIONS]
obiskim filter SOURCE -o OUTPUT [OPTIONS]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Build a genome index from one or more sequence files. Construction proceeds in phases (scatter → dereplicate → count → layered MPHF), described in [On-disk storage](../formats/index_layout.md).
```bash
obikmer index -o OUTPUT [OPTIONS] [INPUTS...]
obiskim index -o OUTPUT [OPTIONS] [INPUTS...]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Merge multiple built indexes into a single index.
```bash
obikmer merge -o OUTPUT SOURCE... [OPTIONS]
obiskim merge -o OUTPUT SOURCE... [OPTIONS]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Pack an index's per-column matrix files into a single-file format to reduce query-time I/O (fewer file opens per query).
```bash
obikmer pack INDEX [--sparse]
obiskim pack INDEX [--sparse]
```
## Arguments
+2 -2
View File
@@ -10,7 +10,7 @@ Distance matrices can be used to build Neighbor-Joining or UPGMA trees. SNP-base
## Usage
```bash
obikmer phylo INDEX [OPTIONS]
obiskim phylo INDEX [OPTIONS]
```
## Arguments
@@ -70,7 +70,7 @@ SNP-based analyses can use every eligible variable family, or a sample drawn fro
`--n-sites`, `--free-loss`, `--no-ambiguity`, `--quartet`, `--pair-balance`, `--entropy`/`--entropy-sd` are shared by `--pseudo-alignment`, `--sankoff` (and everything it implies: `--tnt`/`--phyg`/`--iqtree`), and a `snp-*` `--distance` value — one draw feeds all of them in a single invocation. `--n-sites` is mandatory for `--pseudo-alignment`/`--sankoff`, where it takes either a number of sites or `all`; for a `snp-*` `--distance` value it is optional, and omitting it is the same as `all` (every non-monomorphic family in the index, not an approximation).
Combining `--sankoff` (or `--tnt`/`--phyg`/`--iqtree`) with a `snp-*` `--distance` 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 *identical* 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 `obikmer phylo` invocations draws two independent samples even with the same flags.
Combining `--sankoff` (or `--tnt`/`--phyg`/`--iqtree`) with a `snp-*` `--distance` 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 *identical* 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 `obiskim phylo` invocations draws two independent samples even with the same flags.
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.
+1 -1
View File
@@ -42,5 +42,5 @@ A rank-qualified query, `key@rank=value`, matches only when the path's segment a
### Example
```bash
obikmer filter source -o output --ingroup "taxon~/Betulaceae/Betula"
obiskim filter source -o output --ingroup "taxon~/Betulaceae/Betula"
```
+1 -1
View File
@@ -3,7 +3,7 @@
Query an index with sequences and annotate each query with the kmer matches found.
```bash
obikmer query INDEX INPUTS... [OPTIONS]
obiskim query INDEX INPUTS... [OPTIONS]
```
## Arguments
+2 -2
View File
@@ -3,7 +3,7 @@
Project and/or aggregate the genome columns of an index into a new index. Where [`filter`](filter.md) selects rows (kmers), `select` operates on columns (genomes): grouping several genomes into one aggregated column, reordering columns, or dropping some.
```bash
obikmer select SOURCE --output OUTPUT [OPTIONS]
obiskim select SOURCE --output OUTPUT [OPTIONS]
```
## Arguments
@@ -42,7 +42,7 @@ At least one output column must be defined; every name listed in `--select` must
To replace an index with a selected version of itself, select to a temporary directory and swap it in:
```bash
obikmer select INDEX --output INDEX.tmp --group ... --group-op ... --select ...
obiskim select INDEX --output INDEX.tmp --group ... --group-op ... --select ...
rm -rf INDEX
mv INDEX.tmp INDEX
```
+1 -1
View File
@@ -3,7 +3,7 @@
Extract super-kmers from one or more sequence files and write them to stdout, without building a full index. Useful for inspecting or piping the super-kmer decomposition of a dataset.
```bash
obikmer superkmer [OPTIONS] [INPUTS...]
obiskim superkmer [OPTIONS] [INPUTS...]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Dump the unitigs of an index as FASTA. A unitig is a maximal non-branching path through the de Bruijn graph implied by the index's kmers; the concatenation of every unitig reconstructs every stored kmer exactly once.
```bash
obikmer unitig INDEX [OPTIONS]
obiskim unitig INDEX [OPTIONS]
```
## Arguments
+1 -1
View File
@@ -3,7 +3,7 @@
Miscellaneous index maintenance and inspection utilities.
```bash
obikmer utils INDEXES... [OPTIONS]
obiskim utils INDEXES... [OPTIONS]
```
## Arguments