Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds TypeMatch for PresenceAbsence, Frequency for inputs and outputs in plugin_setup.py #164

Merged
merged 3 commits into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions q2_taxa/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from . import barplot, collapse, filter_table, filter_seqs
import q2_taxa._examples as ex

T1 = qiime2.plugin.TypeMatch([Frequency, PresenceAbsence])

plugin = qiime2.plugin.Plugin(
name='taxa',
Expand Down Expand Up @@ -67,15 +68,15 @@
function=filter_table,
inputs={
'taxonomy': FeatureData[Taxonomy],
'table': FeatureTable[Frequency | PresenceAbsence]
'table': FeatureTable[T1]
},
parameters={'include': qiime2.plugin.Str,
'exclude': qiime2.plugin.Str,
'mode':
qiime2.plugin.Str % qiime2.plugin.Choices(
['exact', 'contains']),
'query_delimiter': qiime2.plugin.Str},
outputs=[('filtered_table', FeatureTable[Frequency])],
outputs=[('filtered_table', FeatureTable[T1])],
input_descriptions={
'taxonomy': ('Taxonomic annotations for features in the provided '
'feature table. All features in the feature table must '
Expand Down
Loading