dot-imputeMissingGeneExpression: Imputing Missing Data

Description Usage Arguments Value Examples

Description

.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).

Usage

1
.imputeMissingGeneExpression(InptGEX, METHOD = "PCA")

Arguments

InptGEX

Input matrix with missng values.

METHOD

Method to use in imputation. Available methods are KNN and PCA. Default is 'PCA'.

Value

A matrix with the same dimensions as InptGEX, with missing values imputed.

Examples

 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)

JRC-COMBINE/PhysioSpaceMethods documentation built on July 27, 2021, 12:53 p.m.