Struct rust_htslib::tbx::Reader[][src]

pub struct Reader { /* fields omitted */ }
Expand description

A Tabix file reader.

This struct and its associated functions are meant for reading plain-text tabix indexed by tabix.

Note that the tabix command from htslib can actually several more things, including building indices and converting BCF to VCF text output. Both is out of scope here.

Implementations

Create a new Reader from path.

Arguments

  • path - the path to open.

Get sequence/target ID from sequence name.

Fetch region given by numeric sequence number and 0-based begin and end position.

Return the sequence contig names.

Activate multi-threaded BGZF read support in htslib. This should permit faster reading of large BGZF files.

Arguments

  • n_threads - number of extra background reader threads to use

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Read next line into the given Vec<u8> (i.e., ASCII string). Read more

Iterator over the lines/records of the seeked region. Read more

Return the text headers, split by line.

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.

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.