def write_fastq(read_id, sequence, qstring, fd):
    """
    Write a read into a fastq format
    """
    fd.write('@%s\n' % read_id)
    fd.write('%s\n' % sequence)
    fd.write('+\n')
    fd.write('%s\n' % qstring)
