Skip to content

Commit

Permalink
Adds TypeMatch for PresenceAbsence, Frequency for inputs and outputs …
Browse files Browse the repository at this point in the history
…in plugin_setup.py (#164)

* Adds FeatureTable[PresenceAbsence] as input for filter-table

* Adds TypeMatch for PresenceAbsence, Frequency for inputs and outputs in plugin_setup.py
  • Loading branch information
hagenjp authored May 22, 2024
1 parent ee895cd commit 6fc2f45
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 6fc2f45

Please sign in to comment.