Struct rust_htslib::bam::Writer
[−]
[src]
pub struct Writer { pub header: HeaderView, // some fields omitted }
A BAM writer.
Fields
header: HeaderView
Methods
impl Writer
[src]
fn new<P: AsRef<Path>>(path: &P, header: &Header) -> Result<Self, BGZFError>
Create a new BAM file.
Arguments
path
- the path. Use "-" for stdin.header
- header definition to use
fn with_template<P: AsRef<Path>, T: AsRef<Path>>(template: &T, path: &P) -> Result<Self, BGZFError>
Create a new BAM file from template.
Arguments
path
- the path. Use "-" for stdin.template
- the template BAM. Use "-" for stdin.