make_simplified_contrast_matrix: Create a contrast matrix suitable for MSstats and similar...

View source: R/helpers_misc.R

make_simplified_contrast_matrixR Documentation

Create a contrast matrix suitable for MSstats and similar tools.

Description

I rather like makeContrasts() from limma. I troubled me to have to manually create a contrast matrix when using MSstats. It turns out it troubled me for good reason because I managed to reverse the terms and end up with the opposite contrasts of what I intended. Ergo this function.

Usage

make_simplified_contrast_matrix(numerators, denominators)

Arguments

numerators

Character list of conditions which are the numerators of a series of a/b comparisons.

denominators

Character list of conditions which are the denominators of a series of a/b comparisons.

Details

Feed make_simplified_contrast_matrix() a series of numerators and denominators names after the conditions of interest in an experiment and it returns a contrast matrix in a format acceptable to MSstats.

Value

Contrast matrix suitable for use in tools like MSstats.

See Also

[MSstats]


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.