NeXML¶
Description¶
Reading¶
Schema-Specific Keyword Arguments¶
Supported Methods¶
Tree.get
¶
tree = dendropy.Tree.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
collection_offset=None,
tree_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
TreeList.get
¶
tree_list = dendropy.TreeList.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
collection_offset=None,
tree_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
TreeList.read
¶
tree_list = dendropy.TreeList()
tree_list.read(
path="path/to/file",
schema="nexml",
collection_offset=None,
tree_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
TreeArray.read
¶
tree_array = dendropy.TreeArray()
tree_array.read(
path="path/to/file",
schema="nexml",
collection_offset=None,
tree_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
DnaCharacterMatrix.get
¶
chars = dendropy.DnaCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
RnaCharacterMatrix.get
¶
chars = dendropy.RnaCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
ProteinCharacterMatrix.get
¶
chars = dendropy.ProteinCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
RestrictionSitesCharacterMatrix.get
¶
chars = dendropy.RestrictionSitesCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
InfiniteSitesCharacterMatrix.get
¶
chars = dendropy.InfiniteSitesCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
StandardCharacterMatrix.get
¶
chars = dendropy.StandardCharacterMatrix.get(
path="path/to/file",
schema="nexml",
label=None,
taxon_namespace=None,
matrix_offset=None,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
DataSet.get
¶
data_set = dendropy.DataSet.get(
path="path/to/file",
schema="nexus",
label=None,
taxon_namespace=None,
exclude_chars=False,
exclude_trees=False,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
DataSet.read
¶
data_set = dendropy.DataSet()
data_set.read(
path="path/to/file",
schema="nexml",
exclude_chars=False,
exclude_trees=False,
default_namespace="http://www.nexml.org/2009",
case_sensitive_taxon_labels=False,
ignore_unrecognized_keyword_arguments=False,
)
Writing¶
Schema-Specific Keyword Arguments¶
Supported Methods¶
Tree.write
¶
d.write(
path='trees.xml',
schema='nexml',
ignore_unrecognized_keyword_arguments=False,
)
Tree.as_string
¶
s = d.as_string(
schema='nexml',
ignore_unrecognized_keyword_arguments=False,
)
TreeList.write
¶
d.write(
path='trees.xml',
schema='nexml',
ignore_unrecognized_keyword_arguments=False,
)
TreeList.as_string
¶
s = d.as_string(
schema='nexml',
ignore_unrecognized_keyword_arguments=False,
)
DnaCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
DnaCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
RnaCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
RnaCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
ProteinCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
ProteinCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
RestrictionSitesCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
RestrictionSitesCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
InfiniteSitesCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
InfiniteSitesCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
StandardCharacterMatrix.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
StandardCharacterMatrix.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
ignore_unrecognized_keyword_arguments=False,
)
DataSet.write
¶
d.write(
path='data.xml',
schema='nexml',
markup_as_sequences=False,
suppress_unreferenced_taxon_namespaces=False,
ignore_unrecognized_keyword_arguments=False,
)
DataSet.as_string
¶
s = d.as_string(
schema='nexml',
markup_as_sequences=False,
suppress_unreferenced_taxon_namespaces=False,
ignore_unrecognized_keyword_arguments=False,
)