Struct rust_htslib::bcf::Reader
[−]
[src]
pub struct Reader { /* fields omitted */ }
A VCF/BCF reader.
Methods
impl Reader
[src]
fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, BCFPathError>
[src]
Create a new reader from a given path.
fn from_url(url: &Url) -> Result<Self, BCFError>
[src]
Create a new reader from a given URL.
fn from_stdin() -> Result<Self, BCFError>
[src]
Create a new reader from standard input.
fn header(&self) -> &HeaderView
[src]
Get header of the read VCF/BCF file.
fn empty_record(&self) -> Record
[src]
Create empty record for this reader. The record can be reused multiple times.
fn read(&mut self, record: &mut Record) -> Result<(), ReadError>
[src]
Read the next record.
Arguments
- record - an empty record, that can be created with
bcf::Reader::empty_record
.
fn records(&mut self) -> Records
[src]
Return an iterator over all records of the VCF/BCF file.