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
Link to this section Functions
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.
- alignments - A list or iterator returning MultipleSeqAlignment objects. This should hold ONE and only one alignment.