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.
a data.frame with gene IDs in the first column and expression values from the second column.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.