def make_fastq_rec(header, seq, qual, offset=33):
 result = []
 if header.startswith('>'):
  header = header[1:]
 result.append(('@' + header))
 result.append(seq)
 result.append(('+' + header))
 result.append(''.join(map(chr, [(33 + i) for i in qual])))
 return '\n'.join(result)

def make_fastq_rec ( header , seq , qual , offset = 33 ) : result = [ ] if header . startswith ( '>' ) : header = header [ 1 : ] result . append ( ( '@' + header ) ) result . append ( seq ) result . append ( ( '+' + header ) ) result . append ( '' . join ( map ( chr , [ ( 33 + i ) for i in qual ] ) ) ) return '\n' . join ( result )
makes fasta string given header .