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

+34 -34
View File
@@ -1529,40 +1529,6 @@ dependencies = [
"tracing",
]
[[package]]
name = "obikmer"
version = "1.4.8"
dependencies = [
"clap",
"csv",
"ndarray",
"obifastwrite",
"obikalgorithm",
"obikdump",
"obikfilter",
"obikidxcache",
"obikindex",
"obikindexer",
"obikmerge",
"obikphylo",
"obikquery",
"obikrebuild",
"obikrope",
"obikselect",
"obikseq",
"obikstats",
"obipipeline",
"obiread",
"obiskbuilder",
"obisys",
"rayon",
"serde",
"serde_yaml",
"tikv-jemallocator",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "obikmerge"
version = "0.1.0"
@@ -1722,6 +1688,40 @@ dependencies = [
"obiread",
]
[[package]]
name = "obiskim"
version = "1.4.8"
dependencies = [
"clap",
"csv",
"ndarray",
"obifastwrite",
"obikalgorithm",
"obikdump",
"obikfilter",
"obikidxcache",
"obikindex",
"obikindexer",
"obikmerge",
"obikphylo",
"obikquery",
"obikrebuild",
"obikrope",
"obikselect",
"obikseq",
"obikstats",
"obipipeline",
"obiread",
"obiskbuilder",
"obisys",
"rayon",
"serde",
"serde_yaml",
"tikv-jemallocator",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "obiskio"
version = "0.1.0"
+1 -1
View File
@@ -1,5 +1,5 @@
[workspace]
resolver = "3"
members = ["obikseq", "obiread", "obiskbuilder", "obifastwrite", "obikmer","obikrope","obipipeline", "obiskio","obidebruinj", "obicompactvec", "obisys", "obikindex", "obikindexer", "obikquery", "obikdump", "obikfilter", "obikselect", "obikrebuild", "obikmerge", "obikstats", "obikidxcache", "obitaxonomy", "obikentropy", "obikphylo", "obikalgorithm", "obiksession"]
members = ["obikseq", "obiread", "obiskbuilder", "obifastwrite", "obiskim","obikrope","obipipeline", "obiskio","obidebruinj", "obicompactvec", "obisys", "obikindex", "obikindexer", "obikquery", "obikdump", "obikfilter", "obikselect", "obikrebuild", "obikmerge", "obikstats", "obikidxcache", "obitaxonomy", "obikentropy", "obikphylo", "obikalgorithm", "obiksession"]
[profile.release]
debug = 1
@@ -67,7 +67,7 @@ impl PersistentBitMatrix {
io::Error::new(
io::ErrorKind::NotFound,
format!(
"no presence matrix and no layer_meta.json in {} — run 'obikmer upgrade'",
"no presence matrix and no layer_meta.json in {} — run 'obiskim upgrade'",
layer_dir.display()
),
)
+1 -1
View File
@@ -411,7 +411,7 @@ impl PersistentIntMatrix {
Err(io::Error::new(
io::ErrorKind::NotFound,
format!(
"no count matrix found in {} — run 'obikmer upgrade'",
"no count matrix found in {} — run 'obiskim upgrade'",
layer_dir.display()
),
))
+1 -1
View File
@@ -1,4 +1,4 @@
//! FASTA serialisation for obikmer sequence types.
//! FASTA serialisation for obiskim sequence types.
//!
//! Three public functions cover the main output cases:
//!
+1 -1
View File
@@ -3,7 +3,7 @@
//! sequence) — drives the window through [`EntropyTracker`] one base at a
//! time, exactly like the streaming path, so a `theta` threshold means the
//! same thing whether applied during index construction or after the fact
//! (e.g. `obikmer filter`).
//! (e.g. `obiskim filter`).
use obikseq::CanonicalKmer;
+1 -1
View File
@@ -304,7 +304,7 @@ impl KmerFilter for GroupQuorumFilter {
// ── Complexity filter (post-hoc, sequence-based) ──────────────────────────────
/// Reject k-mers with normalized entropy below `theta` — the same complexity
/// metric `obikmer index`'s `--theta`/`--level-max` apply *during* superkmer
/// metric `obiskim index`'s `--theta`/`--level-max` apply *during* superkmer
/// construction (see [`obikentropy::KmerEntropy`]), applied here after the
/// fact, to k-mers already committed to a built index.
///
+2 -2
View File
@@ -143,7 +143,7 @@ impl KmerIndex {
self.lock.is_free_of_writer()
}
/// Return `true` if `path` points to a valid obikmer index directory.
/// Return `true` if `path` points to a valid obiskim index directory.
///
/// A directory is considered an index only when it contains an `index.meta`
/// file. The absence of that file means the directory is not an index, even
@@ -295,7 +295,7 @@ impl KmerIndex {
/// `obikrebuild` — because `finalize_indexed` calls it internally as the
/// shared tail of every index-building algorithm (`select`/`filter`/
/// `merge`), and `obikindex` cannot depend on `obikrebuild` (wrong
/// direction). Standalone re-packing (`obikmer2 pack`) calls this same
/// direction). Standalone re-packing (`obiskim pack`) calls this same
/// method directly.
pub fn pack_matrices(&self, sparse: bool) -> OKIResult<()> {
use obicompactvec::{
@@ -24,7 +24,7 @@ use obikalgorithm::Algorithm;
// ── Pipeline plumbing, private to `run` ─────────────────────────────────────
/// Carrier enum for `obipipeline::make_pipe!`'s two-stage transform — local
/// to this crate, not `obikmer`'s own `PipelineData` (which stays scoped to
/// to this crate, not `obiskim`'s own `PipelineData` (which stays scoped to
/// its other CLI commands): a library crate can't depend on the binary
/// that consumes it, so this is a self-contained duplicate of the same
/// shape, not a shared type.
+1 -1
View File
@@ -1,4 +1,4 @@
//! Library-level phylogenetic functionality for `obikmer`, built as
//! Library-level phylogenetic functionality for `obiskim`, built as
//! extension traits over `obikindex`/`obikidxcache`'s foreign types — the
//! `phylo` CLI command is a consumer of this crate, not the owner of this
//! logic (see `DevDocMD/architecture/siblings.md`).
+1 -1
View File
@@ -1,5 +1,5 @@
//! Resolving CLI-level group/column definitions into a concrete
//! `Vec<OutputCol>` — the logic `obikmer2`'s `select` command delegates to,
//! `Vec<OutputCol>` — the logic `obiskim`'s `select` command delegates to,
//! so the command itself stays argument parsing + the `Select` call. Named
//! groups defined by a metadata predicate reuse `obikfilter::GenomeSelector`
//! (the same predicate parser `filter`'s `--ingroup`/`--outgroup` use)
+1 -1
View File
@@ -1,4 +1,4 @@
//! Sequence encoding and manipulation primitives for obikmer.
//! Sequence encoding and manipulation primitives for obiskim.
//!
//! Provides [`superkmer::SuperKmer`]: a compact 2-bit–encoded DNA sequence
//! with in-place reverse complement and canonical-form support.
+1 -1
View File
@@ -1,4 +1,4 @@
//! Streaming sequence file reader for obikmer.
//! Streaming sequence file reader for obiskim.
//!
//! Yields rope chunks from FASTA or FASTQ files, each ending
//! on a complete sequence record boundary.
@@ -1,12 +1,12 @@
[package]
name = "obikmer"
name = "obiskim"
version = "1.4.8"
edition = "2024"
license = "CECILL-2.1"
repository = "https://forge.metabarcoding.org/obi/obiskim"
[[bin]]
name = "obikmer"
name = "obiskim"
path = "src/main.rs"
[dependencies]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -203,7 +203,7 @@ pub fn run(args: IndexArgs) {
});
} else if output.exists() {
eprintln!(
"error: {} exists but is not an obikmer index, it cannot be deleted",
"error: {} exists but is not an obiskim index, it cannot be deleted",
output.display()
);
std::process::exit(1);
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
//! Command-line arguments of `obikmer phylo`.
//! Command-line arguments of `obiskim phylo`.
//!
//! The options are split by theme into flattened groups, each carrying its own
//! help heading and its own help texts (short for `-h`, long for `--help`).
@@ -20,21 +20,21 @@ pub use outputs::{AlignArgs, CostsArgs};
pub use sampling::SamplingArgs;
pub use select::{AnnexArgs, SelectArgs};
/// Text shown at the end of `obikmer phylo --help`.
/// Text shown at the end of `obiskim phylo --help`.
pub const WORKFLOW_HELP: &str = "\
Typical workflows
Compare genome-wide k-mer content and infer a Neighbor-Joining tree:
obikmer phylo INDEX --distance jaccard --nj -o out
obiskim phylo INDEX --distance jaccard --nj -o out
Compute SNP-based distances and infer a Neighbor-Joining tree:
obikmer phylo INDEX --distance snp-k2p --n-sites 200000 --nj -o out
obiskim phylo INDEX --distance snp-k2p --n-sites 200000 --nj -o out
Generate a SNP pseudo-alignment:
obikmer phylo INDEX --pseudo-alignment --n-sites 200000 -o out
obiskim phylo INDEX --pseudo-alignment --n-sites 200000 -o out
Prepare a maximum-likelihood analysis for IQ-TREE:
obikmer phylo INDEX --iqtree --n-sites 200000 -o out
obiskim phylo INDEX --iqtree --n-sites 200000 -o out
Option dependencies
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -57,7 +57,7 @@ pub(super) fn write_sankoff_tnt(
writeln!(
f,
"'obikmer central-position SNP families, calibrated Sankoff 16-state encoding'"
"'obiskim central-position SNP families, calibrated Sankoff 16-state encoding'"
)
.unwrap();
writeln!(f, "{n_sites} {}", kept_labels.len()).unwrap();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
// Static musl builds: replace musl's allocator (see obikmer/Cargo.toml).
// Static musl builds: replace musl's allocator (see obiskim/Cargo.toml).
#[cfg(target_env = "musl")]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
@@ -11,7 +11,7 @@ use tracing::warn;
use tracing_subscriber::{EnvFilter, fmt};
#[derive(Parser)]
#[command(name = "obikmer2", about = "DNA k-mer tools", version)]
#[command(name = "obiskim", about = "DNA k-mer tools", version)]
struct Cli {
/// Maximum number of CPU cores to use
///
+2 -2
View File
@@ -119,7 +119,7 @@ impl DirLock {
Self::acquire_mode(
dir,
LockMode::Exclusive,
"waiting for other obikmer processes to release this index",
"waiting for other obiskim processes to release this index",
)
}
@@ -129,7 +129,7 @@ impl DirLock {
Self::acquire_mode(
dir,
LockMode::Shared,
"waiting for an obikmer process writing this index",
"waiting for an obiskim process writing this index",
)
}