Description Usage Arguments Value Examples
.imputeMissingGeneExpression is an internal function called by inputChecker. It uses different methods to impute any missing value of the InputData or Space (or else missing values would break the pipeline in calculatePhysioMap).
1 | .imputeMissingGeneExpression(InptGEX, METHOD = "PCA")
|
InptGEX |
Input matrix with missng values. |
METHOD |
Method to use in imputation. Available methods are KNN and PCA. Default is 'PCA'. |
A matrix with the same dimensions as InptGEX, with missing values imputed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
MatToImpute <-
matrix(
rnorm(n = 100000, mean = 0, sd = 100),
ncol = 10,
dimnames = list(1:10000, 1:10)
)
MatToImpute[sample(x = 1:length(MatToImpute),
size = length(MatToImpute) / 20)] <- NA
ImputedMat <-
PhysioSpaceMethods:::.imputeMissingGeneExpression(InptGEX = MatToImpute,
METHOD = "PCA")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.