def _fastq_sanger_convert_fastq_illumina(in_handle, out_handle, alphabet=None):
 trunc_char = chr(1)
 mapping = ''.join(((([chr(0) for ascii in range(0, 33)] + [chr((64 + q)) for q in range(0, (62 + 1))]) + [trunc_char for ascii in range(96, 127)]) + [chr(0) for ascii in range(127, 256)]))
 assert (len(mapping) == 256)
 return _fastq_generic2(in_handle, out_handle, mapping, trunc_char, 'Data loss - max PHRED quality 62 in Illumina 1.3+ FASTQ')

def _fastq_sanger_convert_fastq_illumina ( in_handle , out_handle , alphabet = None ) : trunc_char = chr ( 1 ) mapping = '' . join ( ( ( ( [ chr ( 0 ) for ascii in range ( 0 , 33 ) ] + [ chr ( ( 64 + q ) ) for q in range ( 0 , ( 62 + 1 ) ) ] ) + [ trunc_char for ascii in range ( 96 , 127 ) ] ) + [ chr ( 0 ) for ascii in range ( 127 , 256 ) ] ) ) assert ( len ( mapping ) == 256 ) return _fastq_generic2 ( in_handle , out_handle , mapping , trunc_char , 'Data loss - max PHRED quality 62 in Illumina 1.3+ FASTQ' )
fast sanger fastq to illumina 1 .