Skip to content

Commit

Permalink
accept additional featuretable types
Browse files Browse the repository at this point in the history
  • Loading branch information
nbokulich committed Dec 16, 2023
1 parent 8596430 commit c9fc624
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions q2_sample_classifier/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Numeric, Categorical, Citations, Visualization, TypeMatch)
from q2_types.feature_table import (
FeatureTable, Frequency, RelativeFrequency, PresenceAbsence, Balance,
PercentileNormalized, Design)
PercentileNormalized, Design, Composition)
from q2_types.sample_data import SampleData
from q2_types.feature_data import FeatureData
from q2_types.distance_matrix import DistanceMatrix
Expand Down Expand Up @@ -89,7 +89,8 @@
'contain overlapping features with the feature table used to train '
'the estimator.')

inputs = {'table': FeatureTable[Frequency]}
inputs = {'table': FeatureTable[
Frequency | RelativeFrequency | PresenceAbsence | Composition]}

input_descriptions = {'table': 'Feature table containing all features that '
'should be used for target prediction.',
Expand Down Expand Up @@ -492,7 +493,7 @@


T = TypeMatch([Frequency, RelativeFrequency, PresenceAbsence, Balance,
PercentileNormalized, Design])
PercentileNormalized, Design, Composition])
plugin.methods.register_function(
function=split_table,
inputs={'table': FeatureTable[T]},
Expand Down

0 comments on commit c9fc624

Please sign in to comment.