Struct rust_htslib::bcf::Writer[][src]

pub struct Writer { /* fields omitted */ }
Expand description

A VCF/BCF writer.

Implementations

Create a new writer that writes to the given path.

Arguments

  • path - the path
  • header - header definition to use
  • uncompressed - disable compression
  • vcf - write VCF instead of BCF

Create a new writer from a URL.

Arguments

  • url - the URL
  • header - header definition to use
  • uncompressed - disable compression
  • vcf - write VCF instead of BCF

Create a new writer to stdout.

Arguments

  • header - header definition to use
  • uncompressed - disable compression
  • vcf - write VCF instead of BCF

Obtain reference to the lightweight HeaderView of the BCF header.

Create empty record for writing to this writer.

This record can then be reused multiple times.

Translate record to header of this writer.

Arguments

  • record - The Record to translate.

Subset samples of record to match header of this writer.

Arguments

  • record - The Record to modify.

Write record to the Writer.

Arguments

  • record - The Record to write.

Activate multi-threaded BCF write support in htslib. This should permit faster writing of large BCF files.

Arguments

  • n_threads - number of extra background writer threads to use, must be > 0.

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.