code: def extract_all_from_fastq(rec):
      
      return (rec.id,
              len(rec),
              nanomath.ave_qual(rec.letter_annotations["phred_quality"]),
              nanomath.median_qual(rec.letter_annotations["phred_quality"]))
docs: Extract metrics from a fastq file.
  
      Return identifier, read length, average quality and median quality