Skip to content

Commit

Permalink
IMP: replace volatility with lineplot for evaluate_* visualizers
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Oct 1, 2024
1 parent 4f7ab4b commit 2745993
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions ci/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ test:
requires:
- pytest
- q2-types >={{ q2_types }}
- q2-vizard >={{ q2_vizard }}
- q2-longitudinal >={{ q2_longitudinal }}
- q2-feature-classifier >={{ q2_feature_classifier }}
- qiime2 >={{ qiime2 }}
Expand Down
12 changes: 7 additions & 5 deletions rescript/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def evaluate_taxonomy(ctx,
results.index = pd.Index(
[str(i) for i in range(1, len(results.index) + 1)], name='id')
results = q2.Metadata(results)
volatility = ctx.get_action('longitudinal', 'volatility')
plots, = volatility(metadata=results,
state_column='Level',
default_group_column='Dataset',
default_metric='Taxonomic Entropy')
raise ValueError(results)
lineplot = ctx.get_action('vizard', 'lineplot')
plots, = lineplot(metadata=results,
x_measure='Level',
y_measure='Metric Column',
group_by='Dataset',
title='Taxonomic Entropy')
return plots


Expand Down

0 comments on commit 2745993

Please sign in to comment.