Struct rust_htslib::bam::Writer [−][src]
pub struct Writer { /* fields omitted */ }
Expand description
A BAM writer.
Implementations
Create a new SAM/BAM/CRAM file.
Arguments
path
- the path.header
- header definition to useformat
- the format to use (SAM/BAM/CRAM)
Create a new SAM/BAM/CRAM file at STDOUT.
Arguments
header
- header definition to useformat
- the format to use (SAM/BAM/CRAM)
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
.
Use a shared thread-pool for writing. This permits controlling the total
thread count when multiple readers and writers are working simultaneously.
A thread pool can be created with crate::tpool::ThreadPool::new(n_threads)
Arguments
tpool
- thread pool to use for compression work.
Return the header.
Set the compression level for writing BAM/CRAM files.
Arguments
compression_level
-CompressionLevel
enum variant