def read_fastq(filename):
    'This function reads a FASTQ file storing the read and its ID in a dictionary where keys are IDs and read value.\n    This function does not consider + and score lines.\n    \n    Key Arguments:\n        filename -- name of FASTQ input file.\n    '
    reads_dict = dict()
    with open(filename, 'r') as fastq_file:
        for line in fastq_file:
            if ('@' in line):
                reads_dict[line[1:].replace('\n', '')] = next(fastq_file).replace('\n', '')
                next(fastq_file)
                next(fastq_file)
    return reads_dict
This function reads a FASTQ file storing the read and its ID in a dictionary where keys are IDs and read value.
This function does not consider + and score lines.

Key Arguments:
    filename -- name of FASTQ input file.
def read_fastq(filename):
    'This function reads a FASTQ file storing the read and its ID in a dictionary where keys are IDs and read value.\n    This function does not consider + and score lines.\n    \n    Key Arguments:\n        filename -- name of FASTQ input file.\n    '
    reads_dict = dict()
    with open(filename, 'r') as fastq_file:
        for line in fastq_file:
            if ('@' in line):
                reads_dict[line[1:].replace('\n', )] = next(fastq_file).replace('\n', )
                next(fastq_file)
                next(fastq_file)
    return reads_dict