# Path: q2_types/plugin_setup.py

# 
# Path: q2_types/tree/_format.py
# class NewickFormat(model.TextFileFormat):
#     def sniff(self):


from qiime2.plugin import SemanticType
from ..plugin_setup import plugin
from . import NewickDirectoryFormat
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




Phylogeny = SemanticType('Phylogeny', field_names=['type'])

Rooted = SemanticType('Rooted', variant_of=Phylogeny.field['type'])

Unrooted = SemanticType('Unrooted', variant_of=Phylogeny.field['type'])

Hierarchy = SemanticType('Hierarchy')

plugin.register_semantic_types(Phylogeny, Rooted, Unrooted, Hierarchy)


# Path: q2_types/plugin_setup.py

# 
# Path: q2_types/tree/_format.py
# class NewickFormat(model.TextFileFormat):
#     def sniff(self):


# Path: q2_types/tree/_type.py
from qiime2.plugin import SemanticType
from ..plugin_setup import plugin
from . import NewickDirectoryFormat

# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------




Phylogeny = SemanticType('Phylogeny', field_names=['type'])

Rooted = SemanticType('Rooted', variant_of=Phylogeny.field['type'])

Unrooted = SemanticType('Unrooted', variant_of=Phylogeny.field['type'])

Hierarchy = SemanticType('Hierarchy')

plugin.register_semantic_types(Phylogeny, Rooted, Unrooted, Hierarchy)


plugin.register_semantic_type_to_format(Phylogeny[Rooted | Unrooted],