calour.filtering.filter_abundance

calour.filtering.filter_abundance(exp: calour.experiment.Experiment, cutoff=10, **kwargs)[source]

Filter features with sum abundance across all samples less than the cutoff.

For example, to keep features with mean abundance of 150 use filter_abundance(cutoff=150).

Note

This function is also available as a class method Experiment.filter_abundance()

Parameters:
  • exp (Experiment) – Input experiment object.
  • cutoff (float, optional) – The minimal total abundance across all samples. Default is 10 - keep features with total abundance >= 10.
Keyword Arguments:
 

negate (bool) – negate the predicate for selection

Returns:

Return type:

Experiment

See also

filter_by_data()