Struct rust_htslib::bcf::Reader
[−]
[src]
pub struct Reader { /* fields omitted */ }
A VCF/BCF reader.
Methods
impl Reader
[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, BCFPathError>
[src]
Create a new reader from a given path.
pub fn from_url(url: &Url) -> Result<Self, BCFError>
[src]
Create a new reader from a given URL.
pub fn from_stdin() -> Result<Self, BCFError>
[src]
Create a new reader from standard input.
Trait Implementations
impl Debug for Reader
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Send for Reader
[src]
impl Read for Reader
[src]
fn read(&mut self, record: &mut Record) -> Result<(), ReadError>
[src]
Read the next record. Read more
ⓘImportant traits for Records<'a, R>fn records(&mut self) -> Records<Self>
[src]
ⓘImportant traits for Records<'a, R>
Return an iterator over all records of the VCF/BCF file.
fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>
[src]
Activate multi-threaded BCF/VCF read support in htslib. This should permit faster reading of large VCF files. Read more
fn header(&self) -> &HeaderView
[src]
Return the header.
fn empty_record(&self) -> Record
[src]
Return empty record. Can be reused multiple times.