Bio.Nexus.StandardData module

Objects to represent NEXUS standard data type matrix coding.

exception Bio.Nexus.StandardData.NexusError

Bases: Exception

Provision for the management of Nexus exceptions.

class Bio.Nexus.StandardData.StandardData(data)

Bases: object

Create a StandardData iterable object.

Each coding specifies t [type] => (std [standard], multi [multistate] or uncer [uncertain]) and d [data]

__init__(self, data)

Initialize the class.


Return the length of the coding, use len(my_coding).

__getitem__(self, arg)

Pull out child by index.


Iterate over the items.


Return next item.


Return the full coding as a python list.


Return the full coding as a python string, use str(my_coding).