View source: R/binarizeMatrix.R
binarizeMatrix | R Documentation |
Binarizes a matrix of measurements all at once, and returns the binarized vectors as well as the binarization thresholds and the p-values.
binarizeMatrix(mat,
method = c("BASCA", "BASCB", "kMeans"),
adjustment = "none",
...)
mat |
A n x m matrix comprising m raw measurements of n features. |
method |
The binarization algorithm to be used. |
adjustment |
Specifies an optional adjustment for multiple testing that is applied to the p-values (see |
... |
Further parameters that are passed to the respective binarization methods ( |
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.
binarize.BASC
, binarize.kMeans
, p.adjust
bin <- binarizeMatrix(t(iris[,1:4]))
print(bin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.