simple_filter | R Documentation |
'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)
count_df |
A counts data frame with sample identifiers as column names and gene Ids are rownames. |
cpm_threshold |
The minimum number of CPM allowed. |
conditions_threshold |
Percentage of samples that should contain the minimum CPM. |
## Not run:
gene_list <- simple_filter(count_df = counts, cpm_threshold = 1, condition_threshold = 0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.