def fq_minimal(fq):
try:<EOL><INDENT>while True:<EOL><INDENT>time = next(fq)[<NUM_LIT:1>:].split("<STR_LIT:U+0020>")[<NUM_LIT:4>][<NUM_LIT:11>:-<NUM_LIT:1>]<EOL>length = len(next(fq))<EOL>next(fq)<EOL>next(fq)<EOL>yield time, length<EOL><DEDENT><DEDENT>except StopIteration:<EOL><INDENT>yield None<EOL><DEDENT>
Minimal fastq metrics extractor.

    Quickly parse a fasta/fastq file - but makes expectations on the file format
    There will be dragons if unexpected format is used
    Expects a fastq_rich format, but extracts only timestamp and length