def _fastq_convert_fasta(in_handle, out_handle, alphabet=None):
 from Bio.SeqIO.QualityIO import FastqGeneralIterator
 count = 0
 for (title, seq, qual) in FastqGeneralIterator(in_handle):
  count += 1
  out_handle.write(('>%s\n' % title))
  for i in range(0, len(seq), 60):
   out_handle.write((seq[i:(i + 60)] + '\n'))
 return count

def _fastq_convert_fasta ( in_handle , out_handle , alphabet = None ) : from Bio . SeqIO . QualityIO import FastqGeneralIterator count = 0 for ( title , seq , qual ) in FastqGeneralIterator ( in_handle ) : count += 1 out_handle . write ( ( '>%s\n' % title ) ) for i in range ( 0 , len ( seq ) , 60 ) : out_handle . write ( ( seq [ i : ( i + 60 ) ] + '\n' ) ) return count
fast fastq to fasta conversion .