trinarizeMatrix: Utility function to trinarize a matrix of measurements

View source: R/binarizeMatrix.R

trinarizeMatrixR Documentation

Utility function to trinarize a matrix of measurements

Description

Trinarizes a matrix of measurements all at once, and returns the trinarized vectors as well as the trinarization thresholds and the p-values.

Usage

trinarizeMatrix(mat, 
               method = c("TASCA", "TASCB","kMeans"), 
               adjustment = "none", 
               ...)

Arguments

mat

A n x m matrix comprising m raw measurements of n features.

method

The trinarization algorithm to be used. method="TASCA" calls TASC with method="A". method="TASCB" calls TASC with method="B". method="kMeans" calls trinarize.kMeans.

adjustment

Specifies an optional adjustment for multiple testing that is applied to the p-values (see p.adjust for possible values). By default, no adjustment is applied.

...

Further parameters that are passed to the respective trinarization methods (TASC, trinarize.kMeans).

Value

A n x (m+3) matrix of trinarized measurements. Here, the first m columns correspond to the trinarized measurements. The m+1-st and the m+2-st column comprises the trinarization thresholds for the features, and the m+3-nd column contains the p-values.

See Also

TASC, trinarize.kMeans, p.adjust

Examples

tri <- trinarizeMatrix(t(iris[,1:4]))
print(tri)

BiTrinA documentation built on Oct. 2, 2023, 5:07 p.m.