Struct rust_htslib::bam::Writer
source · pub struct Writer { /* private fields */ }
Expand description
A BAM writer.
Implementations§
source§impl Writer
impl Writer
sourcepub fn from_stdout(header: &Header) -> Result<Self, BGZFError>
pub fn from_stdout(header: &Header) -> Result<Self, BGZFError>
sourcepub fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>
pub fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>
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
.
sourcepub fn header(&self) -> &HeaderView
pub fn header(&self) -> &HeaderView
Return the header.