Skip to contents

Calculate the input for generating an MA plot.

Usage

ma(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 compound-wise averages within each condition.

Details

The second condition serves as the reference for comparison. The rows are ordered by cond. Specifically, the first row corresponds to the compound-wise average of the first condition, and the second row corresponds to the second condition.