qiime2 / q2-longitudinal

QIIME 2 plugin for paired sample comparisons
BSD 3-Clause "New" or "Revised" License
9 stars 18 forks source link

adding importance filtering to feature_volatility #146

Closed nbokulich closed 4 years ago

nbokulich commented 5 years ago

fixes #144

This PR:

  1. Adds a new utility function for filtering a table based on importance scores, quartiles, or feature counts. This function is used in plot_feature_volatility and exposed in that action as well as its parent pipeline, feature_volatility. Default is to filter 100 most important features, so this should fix the problems described in #144.
  2. Adds new unit tests for utility described in item 1.
  3. Adds param missing_samples to error or ignore missing samples in plot_feature_volatility. (this is not in response to an issue nor is it necessarily a bug — this action is usually run as part of a pipeline where this will not be an issue — just being proactive).