3 Commits
Author SHA1 Message Date
Eric Coissac 93ff24c4dd refactor: restructure sparse bit matrix handling and add compressed columns
Release / create-release (push) Successful in 29s
Release / build-linux-x86_64 (push) Successful in 7m5s
Release / build-macos-arm64 (push) Failing after 13s
Refactor the sparse bit matrix implementation by splitting builder logic into dedicated modules and introducing a new `CompressedBitColumn` type for in-memory presence data. This change supports sparse output modes in merge operations, where presence data is compressed in RAM rather than written to disk immediately.

- Move `PersistentSparseBitMatrixBuilder` and related functions from `src/obicompactvec/src/bitmatrix/sparse.rs` to `src/obicompactvec/src/bitmatrix/sparse/builder.rs`
- Move `write_varint` from `src/obicompactvec/src/bitmatrix/sparse.rs` to `src/obicompactvec/src/bitmatrix/sparse/set_dict.rs`
- Add `src/obicompactvec/src/compressed_column.rs` with `CompressedBitColumn` for in-memory compressed presence data
- Add `src/obicompactvec/src/bitmatrix/sparse/append.rs` with `SparseBase`, `Source`, and `write_sparse_presence` functions
- Update `src/obicompactvec/src/matrix_builder.rs` and `src/obicompactvec/src/mem_builder.rs` to support detached memory columns and compression
- Add `src/obikmerge/src/partition_merge/output.rs` with `Target`, `Output`, and `Group` structs for managing merge output states
- Add `MergeSpec` struct in `src/obikmerge/src/partition_merge/mod.rs` and update `merge_partition` to use it
- Add tests in `src/obicompactvec/src/tests/sparse_append.rs` and `src/obikmerge/src/tests.rs` for sparse append and merge operations
- Update `src/obiskim/Cargo.toml` and `src/Cargo.lock` to bump `obiskim` version to 1.4.11
- Add documentation in `DevDocMD/implementation/merge.md` detailing sparse presence output behavior
2026-12-02 19:52:45 +01:00
Eric Coissac b2222afbe3 refactor: remove obipipeline crate and migrate dependencies
Release / create-release (push) Successful in 32s
Release / build-linux-x86_64 (push) Successful in 6m51s
Release / build-macos-arm64 (push) Failing after 40s
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`.
2026-12-02 16:16:40 +01:00
Eric Coissac 917cb26186 refactor: rename project from obikmer to obiskim
Release / create-release (push) Successful in 32s
Release / build-linux-x86_64 (push) Successful in 6m18s
Release / build-macos-arm64 (push) Failing after 2m10s
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.
2026-12-01 18:17:47 +01:00