calour.filtering.
filter_sample_categories
(exp: calour.experiment.Experiment, field, min_samples=5, inplace=False)[source]¶Filter sample categories that have too few samples.
This is useful to get rid of categories with few samples for supervised classification training. It also drops the samples that don’t have any value in the field.
Examples
Note
This function is also available as a class method Experiment.filter_sample_categories()
Parameters: |
|
---|---|
Returns: | |
Return type: |
See also