refactor: rename project from obikmer to obiskim
Update the project name, binary, and all associated documentation, scripts, and configuration files from `obikmer` to `obiskim`. This change ensures consistency across the codebase, including lock files, VCF outputs, benchmark targets, and user-facing documentation. - Update `mkdocs.yml` and `.crate-kit/VERSION` to reflect the new project name and version 0.3.4. - Rename all references in `DevDocMD/` documentation, including architecture, implementation, and theory sections, from `obikmer` to `obiskim`. - Update `UserDocMD/` files to use `.obiskim.lock` and `.obiskim.gate` for lock files, and update VCF contig IDs to `obiskim_<partition>_<layer>`. - Modify `benchmark/` scripts and Makefiles to use `obiskim` binary names and `obiskim_dist/` directories for distribution and comparison tasks. - Update `prompts/` files to reference the `obiskim` repository and commands instead of `obikmer`. - Rename temporary directories in `scripts/` smoke tests from `obikmer_*` to `obiskim_*`. - Update `src/obikphylo/src/siblings/algorithms/alignment_vcf.rs` to use `obiskim` in VCF source identifiers and assertions. - Update `src/obiskim/Cargo.toml` version to 1.4.9 and update `src/obiskim/src/cmd/phylo/args/outputs.rs` documentation. - Update `src/obisys/src/lock.rs` to use `.obiskim.lock`, `.obiskim.gate`, and `.obiskim.promote` file names.
This commit is contained in:
1 parent
42d5b881ec
commit
917cb26186
48 files changed
+236
-209
No files matched your search
@@ -232,7 +232,7 @@ needed — `obikindex → obikpartitionner` stays the same direction as before.
|
||||
conversation as a side effect of investigating the false "independent
|
||||
lifecycle" claim.
|
||||
- `KmerIndex::partition()`/`partition_mut()` are gone; `scatter()`
|
||||
(`obikmer`) and any write-side code get a transient `PartitionRouter` via
|
||||
(`obiskim`) and any write-side code get a transient `PartitionRouter` via
|
||||
`KmerIndex::partition_router()`.
|
||||
- A real bug caught by the test suite during this move:
|
||||
`PartitionRouter::open` initially defaulted to `closed: true` (inherited
|
||||
@@ -423,7 +423,7 @@ control (tests, `obikphylo`'s test harness) still get it, `run` is a
|
||||
convenience layered on top, not the only way in.
|
||||
|
||||
`run` absorbs the entire body of what used to be the free function
|
||||
`obikmer::steps::scatter` (now deleted, along with the `steps` module
|
||||
`obiskim::steps::scatter` (now deleted, along with the `steps` module
|
||||
entirely) — the `obipipeline::make_pipe!` two-stage pipeline
|
||||
(file→pages→superkmers), throttling, per-file logging. What changed:
|
||||
- Every `ensure_writer(partition)` call now does `Layer::create(&layer0_dir)`
|
||||
@@ -442,7 +442,7 @@ entirely) — the `obipipeline::make_pipe!` two-stage pipeline
|
||||
workspace suite exercises the real CLI's file-reading `scatter` path
|
||||
end-to-end (`obikphylo`'s test harness and `obikpartitionner`'s own
|
||||
tests both call `write_batch` directly, bypassing `run`/file discovery
|
||||
entirely), so the whole suite stayed green while `obikmer index` on
|
||||
entirely), so the whole suite stayed green while `obiskim index` on
|
||||
real FASTA silently indexed 0 kmers. Found by running the actual CLI
|
||||
against a small FASTA and noticing `count.json`'s `f0` (870, correct)
|
||||
didn't match "0 total kmers indexed" at the final stage. Fixed by
|
||||
@@ -581,7 +581,7 @@ Full workspace suite green (`cargo check --workspace --all-targets` +
|
||||
`cargo test --workspace`, exit code 0), plus an end-to-end CLI smoke test
|
||||
against real FASTA data (scatter → dereplicate → count → index-build →
|
||||
query, same numbers as (3)'s smoke test: 870 kmers) — required this time
|
||||
too, per (3)'s own lesson: no test in the suite exercises `obikmer index`'s
|
||||
too, per (3)'s own lesson: no test in the suite exercises `obiskim index`'s
|
||||
real file-driven path.
|
||||
|
||||
Still not done: `count_kmer`/`build_layers` staying where they are, the
|
||||
@@ -842,7 +842,7 @@ equivalent on `Dereplicator`, which has no setters at all) — a real,
|
||||
already-present parameter (`keep_intermediate` at the CLI), not a
|
||||
speculative addition.
|
||||
|
||||
`count_kmer`'s three former callers (`obikmer::cmd::index`, `obikphylo`'s
|
||||
`count_kmer`'s three former callers (`obiskim::cmd::index`, `obikphylo`'s
|
||||
test harness, `obikindexer::algorithms::partitionner`'s own
|
||||
`pipeline_counts` test helper) all updated to `Counter::new(&idx).
|
||||
run(...)` — the last one simplified further: it used to read back
|
||||
@@ -998,7 +998,7 @@ same reason.
|
||||
index's kmer sequences — read by `rebuild_layer.rs` and others, well
|
||||
beyond construction — see [[project_unitigs_always_kept]]),
|
||||
`pack_matrices` (re-runnable maintenance on an already-finished index
|
||||
via `obikmer pack`, not just a pipeline step), `upgrade_layer_meta`
|
||||
via `obiskim pack`, not just a pipeline step), `upgrade_layer_meta`
|
||||
(migration, runnable on any existing index at any time).
|
||||
|
||||
### The general pattern (not obikindexer-specific)
|
||||
@@ -1117,7 +1117,7 @@ what was wanted.
|
||||
|
||||
**A real design decision made while wiring callers up, not a mechanical
|
||||
rename**: `PrivateBuilder` being genuinely `pub(crate)` to `obikindexer`
|
||||
means `obikmer::cmd::index` (a different crate) can no longer call
|
||||
means `obiskim::cmd::index` (a different crate) can no longer call
|
||||
`mark_scattered`/`mark_counted`/`mark_indexed`/`write_spectrum` directly —
|
||||
it never could have, once privacy was real rather than aspirational. Each
|
||||
algorithm now marks its own completion as part of `run()`/`close()`
|
||||
@@ -1200,7 +1200,7 @@ traits, two crates, two different reasons, not a contradiction.
|
||||
internal caller of these four methods needs the trait imported now that
|
||||
they're no longer inherent — `merge.rs`, `select.rs`, `rebuild.rs`,
|
||||
`reindex.rs` (`use crate::index::builder::IndexBuilder;`) and, externally,
|
||||
`obikmer::cmd::index::mod` (`use obikindex::IndexBuilder;`, for the three
|
||||
`obiskim::cmd::index::mod` (`use obikindex::IndexBuilder;`, for the three
|
||||
`idx.state() < IndexState::X` resumability checks). Call syntax at every
|
||||
site is unchanged (`KmerIndex::create_skeleton(...)`,
|
||||
`self.state()`) — only trait-in-scope requirements are new, which is
|
||||
@@ -1210,7 +1210,7 @@ itself.
|
||||
Verification went one step further than (9): beyond
|
||||
`cargo check --workspace --all-targets` + `cargo test --workspace` +
|
||||
`scripts/smoke_test_index.sh` (all green, 870 kmers again), ran
|
||||
`obikmer merge` end to end on two freshly built indexes (exercises
|
||||
`obiskim merge` end to end on two freshly built indexes (exercises
|
||||
`clear_output_for_create`/`finalize_indexed` directly, the two methods
|
||||
`scripts/smoke_test_index.sh` itself never touches) — exit 0, `pack`
|
||||
stage completed. Test suite alone would not have caught a regression
|
||||
@@ -1310,7 +1310,7 @@ field mutation from outside `IndexMeta`). Fixed across:
|
||||
`entropy.rs`/`sankoff_bundle.rs`/`stats.rs`/`tests.rs` — all had
|
||||
`self.meta().genomes.len()`-shaped reads, mechanically fixed to
|
||||
`.genomes().map_err(OKIError::Io)?.len()` (tests: `.unwrap()`).
|
||||
- `obikmer::cmd::*`: `annotate` (rewrote its rename path to load genomes
|
||||
- `obiskim::cmd::*`: `annotate` (rewrote its rename path to load genomes
|
||||
once, mutate the in-memory `Vec`, then `idx.meta().set_genomes(...)`
|
||||
instead of `meta_mut()`), `filter`/`pack`/`dump`/`unitig`/`merge`/`select`/
|
||||
`phylo` (fetch-once-then-use pattern for genome counts/labels),
|
||||
@@ -1442,7 +1442,7 @@ forcing callers' progress closures to `move`-capture (and therefore clone
|
||||
or `Arc`-wrap) local state like `TracedBar`/EMA-rate accumulators that
|
||||
they'd otherwise want to keep using by reference after `run()` returns.
|
||||
|
||||
**Why a new crate, not a submodule of `obikindexer`**: `obikmer::cmd::
|
||||
**Why a new crate, not a submodule of `obikindexer`**: `obiskim::cmd::
|
||||
index::mod` and `obikphylo`'s own test helpers both need to call `.run()`
|
||||
on these algorithms, so the trait has to be reachable from outside
|
||||
`obikindexer` — putting it in `obikindexer` itself would work file-wise
|
||||
@@ -1450,16 +1450,16 @@ but conflates "the trait every algorithm implements" with "one crate's
|
||||
particular four implementations of it", the same reasoning that already
|
||||
separated `obikindex` (data model) from `obikindexer` (algorithms
|
||||
operating on it). `obikalgorithm` has **no dependencies at all** (see
|
||||
above); `obikindexer`, `obikmer`, and `obikphylo` (dev-dependency, for
|
||||
above); `obikindexer`, `obiskim`, and `obikphylo` (dev-dependency, for
|
||||
its test helper) all depend on it.
|
||||
|
||||
**Blast radius**: `obikindexer`'s four algorithm modules (struct field +
|
||||
setter + trait impl each); `obikmer::cmd::index::mod` (three call sites:
|
||||
setter + trait impl each); `obiskim::cmd::index::mod` (three call sites:
|
||||
`.on_progress(cb)` before `.run()`, unqualified now that the trait is in
|
||||
scope); `obikindexer::algorithms::partitionner::tests` and `obikphylo::
|
||||
siblings::tests` (both had direct `.run(None::<fn(Progress)>)`-shaped
|
||||
calls needing the same treatment). New `obikalgorithm` crate registered
|
||||
in the workspace `Cargo.toml`, depended on by `obikindexer`/`obikmer`
|
||||
in the workspace `Cargo.toml`, depended on by `obikindexer`/`obiskim`
|
||||
(regular) and `obikphylo` (dev).
|
||||
|
||||
**Verification**: `cargo check --workspace --all-targets` and `cargo test
|
||||
@@ -1511,7 +1511,7 @@ auto-detection" turned up three unrelated implementations:
|
||||
| `Mat` (now deleted; superseded by `obilayeredmap::Layer`) | `obikphylo::siblings::cache` | one layer, format resolved per instance from an enum of 3 `Layer<D>` variants | yes, via `PartitionCache` |
|
||||
| `QueryLayer` (unchanged, still current) | `obikindex::query_layer` (moved crates since this was written — see "Major restructuring") | one layer, `(MphfLayer, PersistentBitMatrix\|PersistentCompactIntMatrix)` pair, bypasses `TypedLayer<D>`/`Layer` entirely | **no** — opened fresh inside `query_partition_with` on every call |
|
||||
|
||||
`query_partition_with` is `obikmer query`'s normal query path — the one
|
||||
`query_partition_with` is `obiskim query`'s normal query path — the one
|
||||
most exposed to repeated cross-partition lookups — and it is still the one
|
||||
with no cache at all. `obikphylo` built a cache first only because
|
||||
sibling-annex construction hits the cost hardest, not because the need is
|
||||
@@ -1605,7 +1605,7 @@ above). Concretely, in order:
|
||||
`Vec<KmerPartition>` instead of `Vec<Vec<Layer>>`.
|
||||
4. Migrate `obikindex::query_layer::QueryLayer`/`query_partition_with` to
|
||||
use `KmerPartition` too, closing the "no cache at all" gap on
|
||||
`obikmer`'s normal query path (see "Three independent implementations,"
|
||||
`obiskim`'s normal query path (see "Three independent implementations,"
|
||||
historical, above).
|
||||
|
||||
Open before implementing: exact API shape of `KmerPartition` (propose,
|
||||
@@ -1690,7 +1690,7 @@ storage decisions, now a *third* copy of the same logic to keep in sync)
|
||||
## One bug found while reading around this (signalled, not fixed); one earlier claim retracted
|
||||
|
||||
- `obicompactvec::bitmatrix::sparse.rs`'s module doc says
|
||||
"Not used by any production code path yet" — false since `obikmer pack
|
||||
"Not used by any production code path yet" — false since `obiskim pack
|
||||
--sparse` (`cmd/pack/mod.rs`) is wired to `pack_sparse_bit_matrix` and
|
||||
`Mat::open` already reads the result back in the sibling-annex path.
|
||||
Stale comment, not corrected.
|
||||
|
||||
Reference in new issue
Block a user