get_direction_cols gets the names of the columns with the effect sizes for each DA method. The output is suitable for enrichment analyses with benchdamic.

get_direction_cols(x, conditions_col, conditions)

Arguments

x

Output of run_DA.

conditions_col

Character string indicating the name of the column containing the conditions of the samples in sample_metadata/colData.

conditions

A named character vector. The names must be "condB" and "condA". condB indicates the reference/numerator/control and condA indicates the target/denominator/treatment. For example: c(condB = 'control', condA = 'treatment')

Value

A named vector ready to be used with the createEnrichment and createPositives functions.