def write_alignment(self, alignment):
    'Use this to write (another) single alignment to an open file.\n\n        Note that sequences and their annotation are recorded\n        together (rather than having a block of annotation followed\n        by a block of aligned sequences).\n        '
    count = len(alignment)
    self._length_of_sequences = alignment.get_alignment_length()
    if (count == 0):
        raise ValueError('Must have at least one sequence')
    if (self._length_of_sequences == 0):
        raise ValueError('Non-empty sequences are required')
    if (not self._wrote_header):
        self._wrote_header = True
        self.handle.write('#FormatVersion Mauve1\n')
        for i in range(1, (count + 1)):
            self.handle.write(('#Sequence%sEntry\t%s\n' % (i, i)))
    for (idx, record) in enumerate(alignment):
        self._write_record(record, record_idx=idx)
    self.handle.write('=\n')
Use this to write (another) single alignment to an open file.

Note that sequences and their annotation are recorded
together (rather than having a block of annotation followed
by a block of aligned sequences).
def write_alignment(self, alignment):
    'Use this to write (another) single alignment to an open file.\n\n        Note that sequences and their annotation are recorded\n        together (rather than having a block of annotation followed\n        by a block of aligned sequences).\n        '
    count = len(alignment)
    self._length_of_sequences = alignment.get_alignment_length()
    if (count == 0):
        raise ValueError('Must have at least one sequence')
    if (self._length_of_sequences == 0):
        raise ValueError('Non-empty sequences are required')
    if (not self._wrote_header):
        self._wrote_header = True
        self.handle.write('#FormatVersion Mauve1\n')
        for i in range(1, (count + 1)):
            self.handle.write(('#Sequence%sEntry\t%s\n' % (i, i)))
    for (idx, record) in enumerate(alignment):
        self._write_record(record, record_idx=idx)
    self.handle.write('=\n')