|
6 | 6 | # The full license is in the file LICENSE, distributed with this software.
|
7 | 7 | # ----------------------------------------------------------------------------
|
8 | 8 |
|
| 9 | +import importlib |
9 | 10 | from io import StringIO
|
10 | 11 |
|
11 | 12 | from skbio import TreeNode
|
12 | 13 |
|
13 |
| -from qiime2.plugin import SemanticType |
14 | 14 | from qiime2.plugin.util import transform
|
15 | 15 |
|
16 |
| -from ..plugin_setup import plugin |
17 |
| -from . import NewickDirectoryFormat |
| 16 | +from .. import (NewickFormat, NewickDirectoryFormat, |
| 17 | + Phylogeny, Rooted, Unrooted, Hierarchy) |
18 | 18 |
|
19 |
| -Phylogeny = SemanticType('Phylogeny', field_names=['type']) |
| 19 | +from ...plugin_setup import plugin |
20 | 20 |
|
21 |
| -Rooted = SemanticType('Rooted', variant_of=Phylogeny.field['type']) |
22 |
| - |
23 |
| -Unrooted = SemanticType('Unrooted', variant_of=Phylogeny.field['type']) |
24 |
| - |
25 |
| -Hierarchy = SemanticType('Hierarchy') |
| 21 | +plugin.register_formats(NewickFormat, NewickDirectoryFormat) |
26 | 22 |
|
27 | 23 | plugin.register_semantic_types(Phylogeny, Rooted, Unrooted, Hierarchy)
|
28 | 24 |
|
@@ -57,3 +53,5 @@ def factory():
|
57 | 53 |
|
58 | 54 | plugin.register_artifact_class(Hierarchy,
|
59 | 55 | directory_format=NewickDirectoryFormat)
|
| 56 | + |
| 57 | +importlib.import_module('._transformers', __name__) |
0 commit comments