Impute missing data separately in each module
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 |
Data to be imputed, with variables (genes) in columns and observations (samples) in rows. |
labels |
Module labels. A vector with one entry for each column in |
excludeUnassigned |
Logical: should unassigned variables (genes) be excluded from the imputation? |
unassignedLabel |
The value in |
scale |
Logical: should |
... |
Other arguments to |
The input data
with missing values imputed.
This function is potentially faster but could give different imputed values than applying impute.knn
directly to (scaled) data
.
Peter Langfelder
impute.knn
that does the actual imputation.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.