class
Fastx::Fastq::Writer
- Fastx::Fastq::Writer
- Reference
- Object
Defined in:
fastx/fastq/writer.crConstructors
-
.new(filename : String | Path)
Creates a new FASTQ writer for the specified file.
Class Method Summary
-
.open(filename : String | Path, &)
Opens a FASTQ file for writing, yields the writer to the block, and automatically closes it.
Instance Method Summary
-
#close
Closes the file handle.
-
#closed?
Returns true if the file handle is closed.
-
#write(identifier : String, sequence : String, quality : String)
Writes a FASTQ record with the given identifier, sequence, and quality.
Constructor Detail
def self.new(filename : String | Path)
#
Creates a new FASTQ writer for the specified file. Automatically detects gzip compression from .gz extension.
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.
Instance Method Detail
def write(identifier : String, sequence : String, quality : String)
#
Writes a FASTQ record with the given identifier, sequence, and quality.