`simple_filter` converts a gene counts matrix into counts per million (CPM) and identifies the genes that meet the minimum CPM threshold in a percentage of samples. The minimum CPM threshold and percent threshold is user defined. The function returns a list of genes.
simple_filter(count_df, cpm_threshold, conditions_threshold)
A counts data frame with sample identifiers as column names and gene Ids are rownames.
The minimum number of CPM allowed.
Percentage of samples that should contain the minimum CPM.
if (FALSE) {
gene_list <- simple_filter(count_df = counts, cpm_threshold = 1, condition_threshold = 0.5)
}