biopython v1.71.0 Bio.AlignIO.NexusIO

Bio.AlignIO support for the “nexus” file format.

You are expected to use this module via the Bio.AlignIO functions (or the Bio.SeqIO functions if you want to work directly with the gapped sequences).

See also the Bio.Nexus module (which this code calls internally), as this offers more than just accessing the alignment or its sequences as SeqRecord objects.

Link to this section Summary

Functions

Return SeqRecord objects from a Nexus file

Link to this section Functions

Link to this function NexusIterator()

Return SeqRecord objects from a Nexus file.

Thus uses the Bio.Nexus module to do the hard work.

You are expected to call this function via Bio.SeqIO or Bio.AlignIO (and not use it directly).

NOTE - We only expect ONE alignment matrix per Nexus file, meaning this iterator will only yield one MultipleSeqAlignment.