feat: introduce layered MPHF indexing and partition metadata

Refactors obikindex and obikpartitionner to delegate index construction to a new layered MPHF implementation. Adds resume-safe building with abundance filtering and count persistence, while introducing a PartitionMeta struct for JSON configuration persistence. Updates OKIError to wrap layer-specific errors, replaces single-path extraction with full path collection and logging, and registers new internal dependencies across the workspace.
This commit is contained in:
Eric Coissac committed 2026-05-21 13:31:37 +02:00
1 parent 17c9e076bd
commit c5bcb7b8fa
10 files changed
+193 -229

No files matched your search

+5 -2
View File
@@ -72,7 +72,10 @@ pub fn run(args: IndexArgs) {
// ── Stage 1: scatter ─────────────────────────────────────────────────────
if idx.state() < IndexState::Scattered {
let first_path = args.common.inputs.first().map(PathBuf::from);
let paths: Vec<_> = args.common.seqfile_paths().collect();
for path in &paths {
info!("indexing: {}", path.display());
}
let k = idx.kmer_size();
let level_max = args.common.level_max;
let theta = args.common.theta;
@@ -80,7 +83,7 @@ pub fn run(args: IndexArgs) {
scatter(idx.partition_mut(), args.common.seqfile_paths(), k, level_max, theta, n_workers, &mut rep);
idx.mark_scattered(first_path.as_deref()).unwrap_or_else(|e| {
idx.mark_scattered().unwrap_or_else(|e| {
eprintln!("error marking scatter done: {e}");
std::process::exit(1);
});