Struct rust_htslib::bam::Writer [−][src]
pub struct Writer { /* fields omitted */ }
A BAM writer.
Methods
impl Writer
[src]
impl Writer
pub fn from_path<P: AsRef<Path>>(
path: P,
header: &Header
) -> Result<Self, WriterPathError>
[src]
pub fn from_path<P: AsRef<Path>>(
path: P,
header: &Header
) -> Result<Self, WriterPathError>
pub fn from_stdout(header: &Header) -> Result<Self, BGZFError>
[src]
pub fn from_stdout(header: &Header) -> Result<Self, BGZFError>
pub fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>
[src]
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
.
pub fn write(&mut self, record: &Record) -> Result<(), WriteError>
[src]
pub fn write(&mut self, record: &Record) -> Result<(), WriteError>
pub fn header(&self) -> &HeaderView
[src]
pub fn header(&self) -> &HeaderView
Return the header.
Trait Implementations
impl Debug for Writer
[src]
impl Debug for Writer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Send for Writer
[src]
impl Send for Writer
impl Drop for Writer
[src]
impl Drop for Writer