def extract_from_fastq(fq):
for rec in SeqIO.parse(fq, "<STR_LIT>"):<EOL><INDENT>yield nanomath.ave_qual(rec.letter_annotations["<STR_LIT>"]), len(rec)<EOL><DEDENT>
Extract metrics from a fastq file.

    Return average quality and read length