class

Fastx::Fastq::Writer

Inherits Reference < Object

Constructors

new(filename : String | Path)

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

Source
new(io : IO)

Creates a new FASTQ writer for an already opened IO stream. IO-based writers do not perform gzip auto-detection. The writer takes ownership of the IO and closes it when the writer is closed.

Source

Class methods

open(filename : String | Path, &)

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

Source
open(io : IO, &)

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

Source

Instance methods

close

Closes the writer and its underlying IO.

Source
closed?

Returns true if the file handle is closed.

Source
write(identifier : String, sequence : String, quality : String)

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

Source
write(identifier : String, sequence : String, quality : Slice(UInt8))

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

Source
write(identifier : String, sequence : Slice(UInt8), quality : String)

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

Source
write(identifier : String, sequence : Slice(UInt8), quality : Slice(UInt8))

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

Source
write(identifier : Slice(UInt8), sequence : String, quality : String)

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

Source
write(identifier : Slice(UInt8), sequence : String, quality : Slice(UInt8))

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

Source
write(identifier : Slice(UInt8), sequence : Slice(UInt8), quality : String)

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

Source
write(identifier : Bytes, sequence : Bytes, quality : Bytes)

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

Source