Struct bio::io::fasta::IndexedReader

source ·
pub struct IndexedReader<R: Read + Seek> {
    pub index: Index,
    /* private fields */
}
Expand description

A FASTA reader with an index as created by SAMtools (.fai).

Fields

index: Index

Implementations

Read from a given file path. This assumes the index ref.fasta.fai to be present for FASTA ref.fasta.

Read from a FASTA and its index, both given as io::Read. FASTA has to be io::Seek in addition.

Read from a FASTA and its index, the first given as io::Read, the second given as index object.

Fetch an interval from the sequence with the given name for reading. (stop position is exclusive).

Fetch an interval from the sequence with the given record index for reading. (stop position is exclusive).

Fetch the whole sequence with the given name for reading.

Fetch the whole sequence with the given record index for reading.

Read the fetched sequence into the given vector.

Return an iterator yielding the fetched sequence.

Trait Implementations

Formats the value using the given formatter. 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

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.