impute_miss_values: Missing values imputation

View source: R/load_data.R

impute_miss_valuesR Documentation

Missing values imputation

Description

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.

Usage

impute_miss_values(input_data, ref_data)

Arguments

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.

Value

the input_data data.frame with missing values being filled

See Also

impute.knn


greenelab/ADAGEpath documentation built on May 25, 2022, 7:11 a.m.