def _fastq_convert_tab(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 DCTB %s\n' % (title.split(None, 1)[0], seq)))
 return count

def _fastq_convert_tab ( 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 DCTB %s\n' % ( title . split ( None , 1 ) [ 0 ] , seq ) ) ) return count
fast fastq to simple tabbed conversion .