impute_miss_values | R Documentation |
Imputes and fills missing values using k-nearest neighbor method. The 5 nearest neighbors of missing genes are calculated mainly using the reference data and then are used to fill in missing values in the input_data. It uses the impute.knn function from the impute bioconductor package.
impute_miss_values(input_data, ref_data)
input_data |
a data.frame with gene IDs in the first column and expression values from the second column. |
ref_data |
a data.frame storing gene expression values to be used as a reference dataset for calculating nearest neighbors. Should have more samples than the input_data. The first columns of input_data and ref_data that specify gene IDs should exactly be the same. |
the input_data data.frame with missing values being filled
impute.knn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.