|
6 | 6 | # The full license is in the file LICENSE, distributed with this software.
|
7 | 7 | # ----------------------------------------------------------------------------
|
8 | 8 |
|
9 |
| -from qiime2.plugin import SemanticType |
| 9 | +import importlib |
10 | 10 |
|
11 |
| -from ..plugin_setup import plugin |
12 |
| -from . import BIOMV210DirFmt |
| 11 | +import biom |
13 | 12 |
|
| 13 | +from qiime2.plugin import Citations |
14 | 14 |
|
15 |
| -FeatureTable = SemanticType('FeatureTable', field_names='content') |
| 15 | +from .. import (BIOMV100Format, BIOMV210Format, BIOMV100DirFmt, |
| 16 | + BIOMV210DirFmt, FeatureTable, Frequency, RelativeFrequency, |
| 17 | + PresenceAbsence, Composition, Balance, |
| 18 | + PercentileNormalized, Design) |
16 | 19 |
|
17 |
| -Frequency = SemanticType('Frequency', variant_of=FeatureTable.field['content']) |
| 20 | +from ...plugin_setup import plugin |
18 | 21 |
|
19 |
| -RelativeFrequency = SemanticType('RelativeFrequency', |
20 |
| - variant_of=FeatureTable.field['content']) |
| 22 | +citations = Citations.load('citations.bib', package='q2_types.feature_table') |
21 | 23 |
|
22 |
| -PresenceAbsence = SemanticType('PresenceAbsence', |
23 |
| - variant_of=FeatureTable.field['content']) |
24 |
| - |
25 |
| -Composition = SemanticType('Composition', |
26 |
| - variant_of=FeatureTable.field['content']) |
27 |
| - |
28 |
| -Balance = SemanticType('Balance', |
29 |
| - variant_of=FeatureTable.field['content']) |
30 |
| - |
31 |
| -PercentileNormalized = SemanticType('PercentileNormalized', |
32 |
| - variant_of=FeatureTable.field['content']) |
33 |
| - |
34 |
| -# Design is the type of design matrices for linear regressions that have |
35 |
| -# been transformed/coded. |
36 |
| -Design = SemanticType('Design', variant_of=FeatureTable.field['content']) |
| 24 | +plugin.register_views(BIOMV100Format, BIOMV210Format, BIOMV100DirFmt, |
| 25 | + BIOMV210DirFmt, biom.Table, |
| 26 | + citations=[citations['mcdonald2012biological']]) |
37 | 27 |
|
38 | 28 | plugin.register_semantic_types(FeatureTable, Frequency, RelativeFrequency,
|
39 | 29 | PresenceAbsence, Balance, Composition,
|
|
86 | 76 | FeatureTable[Design],
|
87 | 77 | directory_format=BIOMV210DirFmt
|
88 | 78 | )
|
| 79 | + |
| 80 | +importlib.import_module('._transformers', __name__) |
0 commit comments