Files
obiskim/UserDocMD/usage/convert.md
T
Eric Coissac 42d5b881ec 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`.
2026-12-01 18:15:13 +01:00

1.7 KiB

convert

Convert an existing index's evidence representation in place, between exact, approximate, and hybrid.

obiskim convert INDEX (--exact-evidence | --approx-evidence BITS | --hybrid-evidence) [OPTIONS]

Arguments

Argument Description
INDEX Index directory to convert (modified in place)

Options

Exactly one of the first three is required:

Option Description
--exact-evidence Convert to exact evidence (zero false positives)
--approx-evidence BITS Convert to approximate (fingerprint-only) evidence; BITS = fingerprint bits per slot (b)
--hybrid-evidence Convert to hybrid evidence (both exact and approximate bundles kept)
--evidence-bits BITS Fingerprint bits per slot (b) — required with --hybrid-evidence when the source index is currently exact; rejected otherwise (the source already fixes b)
-z, --findere-z Z Findere z parameter: number of consecutive stored kmers that must all match to confirm a hit. This does not shorten the indexed kmer length (fixed forever at index build time) — it extends the effective match window: on a k=31 index, z=2 requires 32 consecutive matching bases, not 30
--fp FP Target false-positive rate per z-window (e.g. 0.01); derives b or z when one of them isn't given directly
--block-size N Block size for exact evidence's on-disk index (unitigs per block). Ignored when converting to pure approximate evidence. Default 1

See index for the exact/approximate trade-off and the underlying false-positive model, and estimate to explore parameters beforehand. The index directory is locked for exclusive access during conversion.