Struct rust_htslib::bam::Writer
[−]
[src]
pub struct Writer { /* fields omitted */ }A BAM writer.
Methods
impl Writer[src]
pub fn from_path<P: AsRef<Path>>(
path: P,
header: &Header
) -> Result<Self, WriterPathError>[src]
path: P,
header: &Header
) -> Result<Self, WriterPathError>
pub fn from_stdout(header: &Header) -> Result<Self, BGZFError>[src]
pub fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>[src]
Activate multi-threaded BAM write support in htslib. This should permit faster writing of large BAM files.
Arguments
n_threads- number of extra background writer threads to use, must be> 0.
pub fn write(&mut self, record: &Record) -> Result<(), WriteError>[src]
pub fn header(&self) -> &HeaderView[src]
Return the header.
Trait Implementations
impl Debug for Writer[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more