Skip to main content

read_fastq

Function read_fastq 

Source
pub fn read_fastq(
    fastq_path: &str,
) -> Result<FastxRecords<IndexedSequenceWithQuality>, String>
Expand description

Reads a FASTQ file and returns a collection of records.

§Arguments

  • fastq_path - Path to a FASTQ file

§Errors

Returns an error if the file cannot be opened, any record is malformed (missing lines, non-@ header, invalid + separator, or quality/sequence length mismatch), or the file contains no valid records.