def _SeqIO_to_alignment_iterator(handle, format, alphabet=None, seq_count=None):
 from Bio import SeqIO
 assert (format in SeqIO._FormatToIterator)
 if seq_count:
  seq_record_iterator = SeqIO.parse(handle, format, alphabet)
  records = []
  for record in seq_record_iterator:
   records.append(record)
   if (len(records) == seq_count):
    (yield MultipleSeqAlignment(records, alphabet))
    records = []
  if records:
   raise ValueError('Check seq_count argument, not enough sequences?')
 else:
  records = list(SeqIO.parse(handle, format, alphabet))
  if records:
   (yield MultipleSeqAlignment(records, alphabet))

def _SeqIO_to_alignment_iterator ( handle , format , alphabet = None , seq_count = None ) : from Bio import SeqIO assert ( format in SeqIO . _FormatToIterator ) if seq_count : seq_record_iterator = SeqIO . parse ( handle , format , alphabet ) records = [ ] for record in seq_record_iterator : records . append ( record ) if ( len ( records ) == seq_count ) : ( yield MultipleSeqAlignment ( records , alphabet ) ) records = [ ] if records : raise ValueError ( 'Check seq_count argument, not enough sequences?' ) else : records = list ( SeqIO . parse ( handle , format , alphabet ) ) if records : ( yield MultipleSeqAlignment ( records , alphabet ) )
uses bio .