calculateFoldChange: calculateFoldChange

View source: R/calculateFoldChange.R

calculateFoldChangeR Documentation

calculateFoldChange

Description

Calculates the fold change and log2 fold change between cases and controls.

Usage

calculateFoldChange(df, type = "median", case, control)

Arguments

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?

Value

A dataframe with features and fold change/log2 fold change between cases and controls.


AslaugL/thesisToolsOmics documentation built on April 3, 2022, 8:16 p.m.