scale_matrix | R Documentation |
This function scales a given matrix and optionally performs additional manipulation. It can apply a logarithmic transformation (base 2) to the matrix, center and scale the values, and optionally manipulate the features based on a specified criteria.
scale_matrix(matrix, log2matrix = TRUE, manipulate = TRUE)
matrix |
The matrix to be scaled and manipulated. |
log2matrix |
Whether to apply a logarithmic transformation to the matrix. Default is TRUE. If set to TRUE, the matrix will be transformed using the log2eset function from the IOBR package. |
manipulate |
Whether to perform additional manipulation on the matrix. Default is FALSE. If set to TRUE, the function will use the feature_manipulation function to manipulate the matrix based on specified criteria. |
Dongqiang Zeng
data("eset_gse62254", package = "IOBR")
head(eset_gse62254)
eset2<- scale_matrix(eset_gse62254, log2matrix = FALSE, manipulate = TRUE)
head(eset2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.