def process_fastq_minimal(fastq, **kwargs):
infastq = handle_compressed_input(fastq)<EOL>try:<EOL><INDENT>df = pd.DataFrame(<EOL>data=[rec for rec in fq_minimal(infastq) if rec],<EOL>columns=["<STR_LIT>", "<STR_LIT>"]<EOL>)<EOL><DEDENT>except IndexError:<EOL><INDENT>logging.error("<STR_LIT>")<EOL>sys.exit("<STR_LIT>")<EOL><DEDENT>return ut.reduce_memory_usage(df)<EOL>
Swiftly extract minimal features (length and timestamp) from a rich fastq file