This function removes rare feature based on revalence percentage and/or minimum count

remove_rare(x, minOTUcount = 10, prevalence_percent = 5)

Arguments

x

Vector of observations for a feature or a column of a feature from a feature matrix.

Value

Boolean. If a feature is within the defined criteria, return True, else False