Struct rust_htslib::bcf::IndexedReader[][src]

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

An indexed VCF/BCF reader.

Implementations

Create a new IndexedReader from path.

Arguments

  • path - the path to open.

Create a new IndexedReader from an URL.

Jump to the given region.

Arguments

  • rid - numeric ID of the reference to jump to; use HeaderView::name2rid for resolving contig name to ID.
  • start - 0-based inclusive start coordinate of region on reference.
  • end - Optional 0-based inclusive end coordinate of region on reference. If None is given, records are fetched from start until the end of the contig.

Note

The entire contig can be fetched by setting start to 0 and end to None.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Read the next record. Read more

Return an iterator over all records of the VCF/BCF file.

Activate multi-threaded BCF/VCF read support in htslib. This should permit faster reading of large VCF files. Read more

Return the header.

Return empty record. Can be reused multiple times.

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.