calc_fold_change_df: Calculate fold change

Description Usage Arguments Examples

View source: R/calc_fold_change_df.R

Description

Reads a data frame, identifies the columns containing group mean values, and calculates the log2 fold difference. Output is saved in a new column of the same data frame labeled as <e2><80><9c>log2_fold_change_AB<e2><80><9d>. If means are not calculated, used calc_means_df function first.

Usage

1
calc_fold_change_df(x, mean_A, mean_B, colname = "log2_fold_difference")

Arguments

x

Data frame containing input values.

mean_A

Character string describing the column name of the mean for the group A. Partial matching is acceptable.

mean_B

Character string describing the column name of the mean for the group B. Partial matching is acceptable.

colname

Single character vector, with the label of the column with the calculated values. Default value is "log2_fold_difference".

Examples

1
proc_data <- calc_fold_change_df(data, "TIC_Pat", "TIC_Ctr")

tkostas/komics documentation built on May 24, 2019, 7:31 a.m.