biopython v1.71.0 Bio.AlignIO.NexusIO.NexusWriter

Nexus alignment writer.

Note that Nexus files are only expected to hold ONE alignment matrix.

You are expected to call this class via the Bio.AlignIO.write() or Bio.SeqIO.write() functions.

Link to this section Summary

Functions

Return ‘protein’, ‘dna’, or ‘rna’ based on the alphabet (PRIVATE)

Use this to write an entire file containing the given alignments

Link to this section Functions

Link to this function _classify_alphabet_for_nexus()

Return ‘protein’, ‘dna’, or ‘rna’ based on the alphabet (PRIVATE).

Raises an exception if this is not possible.

Use this to write an entire file containing the given alignments.

Arguments:

  • alignments - A list or iterator returning MultipleSeqAlignment objects. This should hold ONE and only one alignment.