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
1.3 KiB
1.3 KiB
Release Notes for obiskim (Rust k-mer genomics tool) 1.4.11
Features
- Genome Set Trie Example: Added
src/obicompactvec/examples/genome_set_trie.rsdemonstrating the construction and measurement of a set trie usingPersistentBitMatrix. Includes helper structs (SetTrie,Node,EdgeHasher,StepStats) and validation against a naive implementation.
Internal
- Sparse Bit Matrix Refactoring: Restructured sparse bit matrix handling to support sparse output modes in merge operations, where presence data is compressed in RAM rather than written to disk immediately.
- Introduced
CompressedBitColumnfor in-memory compressed presence data. - Split builder logic into dedicated modules:
sparse/builder.rs,sparse/set_dict.rs, andsparse/append.rs. - Updated
matrix_builder.rsandmem_builder.rsto support detached memory columns and compression.
- Introduced
- Merge Operations: Added
MergeSpecstruct and updatedmerge_partitionto utilize it. IntroducedTarget,Output, andGroupstructs inpartition_merge/output.rsfor managing merge output states. - Documentation: Added
DevDocMD/implementation/merge.mddetailing sparse presence output behavior. - Tests: Added tests for sparse append and merge operations in
obicompactvecandobikmerge.