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),
));

Builds a tabix index.

Examples

use noodles_tabix as tabix;
let indexer = tabix::Index::indexer();
let index = indexer.build();

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.