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__(data)

Initialize the class.

__len__()

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

__getitem__(arg)

Pull out child by index.

__iter__()

Iterate over the items.

__next__()

Return next item.

raw()

Return the full coding as a python list.

__str__()

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