Struct rust_htslib::bam::Reader[][src]

pub struct Reader { /* fields omitted */ }

A BAM reader.

Methods

impl Reader
[src]

Create a new Reader from path.

Arguments

  • path - the path to open.

Create a new Reader from STDIN.

Create a new Reader from URL.

Important traits for ChunkIterator<'a, R>

Iterator over the records between the (optional) virtual offsets start and end

Arguments

  • start - Optional starting virtual offset to seek to. Throws an error if it is not a valid virtual offset.

  • end - Read until the virtual offset is less than end

Trait Implementations

impl Debug for Reader
[src]

Formats the value using the given formatter. Read more

impl Send for Reader
[src]

impl Read for Reader
[src]

Read next BAM record into given record. Use this method in combination with a single allocated record to avoid the reallocations occurring with the iterator. Read more

Important traits for Records<'a, R>

Iterator over the records of the fetched region. Note that, while being convenient, this is less efficient than pre-allocating a Record and reading into it with the read method, since every iteration involves the allocation of a new Record.

Important traits for Pileups<'a, R>

Iterator over pileups.

Return the BGZF struct

Return the header.

Seek to the given virtual offset in the file

Report the current virtual offset

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

impl Drop for Reader
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Sync for Reader