Use impute.knn to ipmpute missing data, separately in each module.
imputeByModule(
data,
labels,
excludeUnassigned = FALSE,
unassignedLabel = if (is.numeric(labels)) 0 else "grey",
scale = TRUE,
...)Data to be imputed, with variables (genes) in columns and observations (samples) in rows.
Module labels. A vector with one entry for each column in data.
Logical: should unassigned variables (genes) be excluded from the imputation?
The value in labels that represents unassigned variables.
Logical: should data be scaled to mean 0 and variance 1 before imputation?
Other arguments to impute.knn.
The input data with missing values imputed.
impute.knn that does the actual imputation.