Skip to contents

Apply Wilcoxon test to the data.

Usage

wilcox_test(dataSet, condCol = "merged_condition", cond)

Arguments

dataSet

A data frame containing the data signals.

condCol

A string (default = "merged_condition") specifying the column name in dataSet that contains the conditions to compared.

cond

A string specifying which two conditions to compare. The order is important, as the second condition serves as the reference for comparison. When there are two conditions in condCol of dataSet and this argument is not specified, the cond will automatically be selected by sorting the unique values alphabetically and in ascending order.

Value

A data frame containing the differences in means and p-values for each compound between the two conditions.

Details

The second condition serves as the reference for comparison. The differences are calculated by subtracting the mean of the second condition from the mean of the first condition (Condition 1 - Condition 2).