internal {moanin}R Documentation

Internal Validation Checks

Description

Will check that the contrasts provided are indeed contrasts. contrasts are expected to be either a vector of string or a matrix containing the contrasts coefficients.

Usage

check_data_meta(data, object)

check_is_2d(X)

is_contrasts(contrasts, moanin_model)

Details

If a vector of string is provided, the function will call limma::makeContrast in order to obtain the contrasts coefficients.

If a contrasts matrix is provided, it will perform a number of checks on the contrasts matrix to make sure it contains the number of rows expected, and that each contrast indeed sums to 0.

Value

Does not return anything. Only hits errors if there are problems.

is_contrasts returns the contrasts, with any corrections.


[Package moanin version 1.0.0 Index]