vbinseq 0.1.7

A high efficiency binary format for sequencing data with variable-length records.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anyhow::Result;
use vbinseq::BlockIndex;

pub fn main() -> Result<()> {
    let file = "./data/out.vbq";
    let index_path = format!("{file}.vqi");
    let index = BlockIndex::from_vbq(file)?;
    index.save_to_path(&index_path)?;
    eprintln!("Identified {} blocks", index.n_blocks());

    let new_index = BlockIndex::from_path(&index_path)?;
    println!("Found {} blocks in index", new_index.n_blocks());
    Ok(())
}