View source: R/calculateFoldChange.R
calculateFoldChange | R Documentation |
Calculates the fold change and log2 fold change between cases and controls.
calculateFoldChange(df, type = "median", case, control)
df |
Dataframe with a 'feature' column with feature names, a 'sample_id' column with sample ID's, a 'value' column with feature values for the samples, and a 'group' column splitting the samples into two groups (cases and controls). |
type |
Calculate fold change from mean or median values? Default is 'median'. |
case |
What are cases called in the 'group' column? |
control |
What are controls called in the 'group' column? |
A dataframe with features and fold change/log2 fold change between cases and controls.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.