class Fastx::Fastq::Reader

Defined in:

fastx/fastq/reader.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

Creates a new FASTQ reader 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, yields the reader 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 each(&) #

Iterates over each FASTQ record, yielding identifier, sequence, and quality.


[View source]
def each_copy(&) #

Iterates over each FASTQ record, yielding identifier, sequence, and quality as String copies. This avoids buffer reuse issues when references to sequence/quality data are kept.


[View source]