Delete the `obipipeline` crate and update all dependent crates to use the
published `obipipeline` version 0.2 from the `obi` registry. Migrate
specific pipeline logic into consuming crates: move error handling to
`obikindexer` and batch iteration logic to `obiskio`. Update build
scripts to support MSRV checking and improved dependency management.
- Delete `src/obipipeline/` entirely, removing the pipeline runtime,
scheduler, macros, and throttle implementations.
- Move `fmt` (now `pipeline_error`) from `obipipeline` error handling to
`src/obikindexer/src/graph_pipeline.rs` for graph building errors.
- Move `apply` (now `iter_canonical_kmer_batches_owned`) from
`obipipeline` pipe logic to `src/obiskio/src/unitig_index/reader.rs`
to provide lazy batch iteration for canonical kmers.
- Update `src/obikindexer`, `src/obikmerge`, `src/obikphylo`, and
`src/obiskim` to depend on `obipipeline` version 0.2 from the `obi`
registry instead of the local path.
- Refactor `src/obikindexer/src/graph_pipeline.rs` to use the new
`pipeline_error` function and update `build_graph` to accept an
iterator-returning `open` function.
- Refactor `src/obikmerge` to use `iter_canonical_kmer_batches_owned`
for streaming batches in `merge_partition` and `run_pass2`, replacing
previous pipeline stage logic.
- Refactor `src/obikphylo` to handle errors via `OKIError::InvalidData`
in `build_layer_sibling_annex` and `scan_layer_families`.
- Refactor `src/obiskim` to use `.expect("pipeline error")` for batch
processing in `query` and `superkmer` commands.
- Add `src/obiskio/src/unitig_index/reader.rs` method
`iter_canonical_kmer_batches_owned` for lazy batch iteration.
- Add `.crate-kit/scripts/msrv-check.sh` to verify the declared
`rust-version` builds successfully with the specified toolchain.
- Update `.crate-kit/scripts/deps-check.sh` and `deps-lib.sh` to
support `cargo update` with specific arguments and improved lockfile
handling.
- Update `.crate-kit/scripts/bump-version.sh` to use `sed -E` for
robust version string replacement in `README.md`.
- Update `.crate-kit/scripts/publish-guard.sh` and `publish.sh` to
enforce registry settings and exclude internal files from packages.
- Update `.gitea/workflows/release.yml` to pass the private cargo
registry index environment variable during macOS binary builds.
- Remove `Cargo.lock` from the repository root and update
`src/Cargo.lock` to reflect the new `obipipeline` dependency version.
- Update `src/Cargo.toml` workspace members to remove `obikseq` and
add `obifastwrite`.
2.8 KiB
2.8 KiB
Release notes for obiskim (Rust k-mer genomics tool), version 1.4.10
Refactoring
- Dependency Migration: Removed the local
obipipelinecrate. All dependent crates (obikindexer,obikmerge,obikphylo,obiskim) now depend onobipipelineversion 0.2 from theobiregistry. - Logic Migration:
- Moved error handling (
pipeline_error) toobikindexerfor graph building. - Moved batch iteration logic (
iter_canonical_kmer_batches_owned) toobiskiofor lazy canonical k-mer iteration. - Refactored
obikmergeto useiter_canonical_kmer_batches_ownedfor streaming batches inmerge_partitionandrun_pass2. - Refactored
obikphyloto handle errors viaOKIError::InvalidData. - Refactored
obiskimto use.expect("pipeline error")for batch processing inqueryandsuperkmercommands.
- Moved error handling (
- Internal API: Removed the
sorted_slotsparameter fromnonzero_triplesinobicompactvec; slots are now sorted internally. Updated callers inintmatrixandbitmatrixmodules. - Workspace: Added
MEMBERS_DIRvariable to workspace scripts for scanning subdirectories for Cargo manifests. Removedobikseqand addedobifastwriteto workspace members. Removed rootCargo.lock.
Documentation
- Renaming: Renamed project references from "obikmer" to "obiskim" across all documentation, user guides, and developer notes.
- K-mer Indexing: Updated terminology and constraints to reflect obiskim's two-bit-per-nucleotide representation (
k \leq 32, oddk) and deterministic hash ordering. - New Topics: Added extensive documentation covering:
- Chance sharing across genomes
- Sibling partition unification
- Pair-coverage-biased family sampling
- MPHF batch queries
- Merge mmap audit and scaling
- Hot resume and memoization
- Implementation Details:
- Updated
by_partitiondescription to useVec<PartitionKmers>instead ofHashMap. - Updated merge bootstrap logic to select base source by largest
unitigs.binsize. - Changed
MAX_KMERS_PER_CHUNKfrom 256 to 128. - Clarified
obiskim phylosampling behavior and--sibling-annexusage. - Clarified
selectcommand hard-linking mechanism and output directory behavior.
- Updated
- References: Added BibTeX entries for Karlin et al. and Bennett et al.
Build & CI
- Scripts:
- Added
.crate-kit/scripts/msrv-check.shfor MSRV verification. - Updated dependency management scripts (
deps-check.sh,deps-lib.sh) for improved lockfile handling andcargo updatesupport. - Updated
bump-version.shto usesed -Efor robust version string replacement. - Updated publish scripts to enforce registry settings and exclude internal files.
- Added
- CI: Updated
.gitea/workflows/release.ymlto pass private cargo registry index environment variables during macOS binary builds.