class Fastx::Fastq::Writer

Defined in:

fastx/fastq/writer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(filename : String | Path) #

Creates a new FASTQ writer for the specified file. Automatically detects gzip compression from .gz extension.


[View source]

Class Method Detail

def self.open(filename : String | Path, &) #

Opens a FASTQ file for writing, yields the writer to the block, and automatically closes it.


[View source]

Instance Method Detail

def close #

Closes the file handle.


[View source]
def closed? #

Returns true if the file handle is closed.


[View source]
def write(identifier : String, sequence : String, quality : String) #

Writes a FASTQ record with the given identifier, sequence, and quality.


[View source]