binarizeMatrix {Binarize}R Documentation

Utility function to binarize a matrix of measurements

Description

Binarizes a matrix of measurements all at once, and returns the binarized vectors as well as the binarization thresholds and the p-values.

Usage

binarizeMatrix(mat, 
               method = c("BASCA", "BASCB", "kMeans"), 
               adjustment = "none", 
               ...)

Arguments

mat

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

method

The binarization algorithm to be used. method="BASCA" calls binarize.BASC with method="A". method="BASCB" calls binarize.BASC with method="B". method="kMeans" calls binarize.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 binarization methods (binarize.BASC or method="kMeans").

Value

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

See Also

binarize.BASC, binarize.kMeans, p.adjust

Examples

bin <- binarizeMatrix(t(iris[,1:4]))
print(bin)

[Package Binarize version 1.3.1 Index]