Description Usage Arguments Details Value Author(s) Examples
Impute missing values in gene expression data set using nearest neighbor averaging or remove the genes with missing values directly.
1 | Impute(dataset, method = IMPUTE.method.knn, k = 10)
|
dataset |
a numeric matrix of gene expressions or a Study object. For matrix, each row is for one gene and each column is for one sample. The row names are gene symbols. For Study object, the same rule applies to matrix in Study@datasets |
method |
a character string to specify how to deal with the
missing values. It could be |
k |
the number of neighbors to be used in the imputation. The
default is |
See also knnImputation.
A matrix of the gene expressions after dealing with missing values.
Lin Wang, Schwannden Kuo
1 2 3 4 5 6 7 | data(datasets.eg)
data(preproc.option)
# Impute for expression matrix
res <- Impute(datasets.eg[[1]], method=IMPUTE.method.knn)
# Impute for Study object
study <- new("Study", name="test", dtype=DTYPE.microarray, datasets=datasets.eg[1])
res <- Impute(study, method=IMPUTE.method.remove)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.