pub struct Reader { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.