impute_miss_values: Missing values imputation

Description Usage Arguments Value See Also

View source: R/load_data.R

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

1
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 Sept. 24, 2017, 2:35 a.m.