[][src]Struct rust_htslib::bam::IndexedReader

pub struct IndexedReader { /* fields omitted */ }

Methods

impl IndexedReader[src]

pub fn from_path<P: AsRef<Path>>(
    path: P
) -> Result<Self, IndexedReaderPathError>
[src]

Create a new Reader from path.

Arguments

  • path - the path to open.

pub fn from_path_and_index<P: AsRef<Path>>(
    path: P,
    index_path: P
) -> Result<Self, IndexedReaderPathError>
[src]

pub fn from_url(url: &Url) -> Result<Self, IndexedReaderError>[src]

pub fn fetch(&mut self, tid: u32, beg: u32, end: u32) -> Result<(), FetchError>[src]

pub fn set_reference<P: AsRef<Path>>(
    &mut self,
    path: P
) -> Result<(), ReferencePathError>
[src]

Set the reference path for reading CRAM files.

Arguments

  • path - path to the FASTA reference

Trait Implementations

impl Read for IndexedReader[src]

Important traits for Records<'a, R>
fn records(&mut self) -> Records<Self>[src]

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.

fn seek(&mut self, offset: i64) -> Result<(), SeekError>[src]

Seek to the given virtual offset in the file

fn tell(&self) -> i64[src]

Report the current virtual offset

fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>[src]

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

impl Drop for IndexedReader[src]

impl Send for IndexedReader[src]

impl Debug for IndexedReader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]