calour.filtering.
filter_prevalence
(exp: calour.experiment.Experiment, fraction, cutoff=1, field=None, **kwargs)[source]¶Filter features keeping only ones present in more than certain fraction of all samples.
This is a convenience function wrapping filter_by_data
Note
This function is also available as a class method Experiment.filter_prevalence()
Parameters: |
|
---|---|
Keyword Arguments: | |
negate (bool) – negate the predicate for selection |
|
Returns: | with only features present in at least fraction of samples |
Return type: |
See also