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 use
  • format - the format to use (SAM/BAM/CRAM)

Create a new SAM/BAM/CRAM file at STDOUT.

Arguments

  • header - header definition to use
  • format - 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.

Write record to BAM.

Arguments

  • record - the record to write

Return the header.

Set the reference path for reading CRAM files.

Arguments

  • path - path to the FASTA reference

Set the compression level for writing BAM/CRAM files.

Arguments

  • compression_level - CompressionLevel enum variant

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.