Struct noodles::tabix::index::Indexer [−][src]
pub struct Indexer { /* fields omitted */ }
Expand description
A tabix indexer.
Implementations
Sets an index header.
Examples
use noodles_tabix as tabix;
let builder = tabix::Index::indexer().set_header(tabix::index::Header::default());
Adds a record.
Examples
use noodles_bgzf as bgzf;
use noodles_csi::index::reference_sequence::bin::Chunk;
use noodles_tabix as tabix;
let mut indexer = tabix::Index::indexer();
indexer.add_record("sq0", 8, 13, Chunk::new(
bgzf::VirtualPosition::from(144),
bgzf::VirtualPosition::from(233),
));