kknnImpute: kknn imputation - single column

Description Usage Arguments Value

View source: R/kknn-functions.R

Description

Impute results for a specific gene or cell using kknn

Usage

1
2
kknnImpute(id, simData.learn, simData.test, kmaxParam = 40,
  mixedSpeciesData = FALSE, predicted = FALSE)

Arguments

id

string for the cell or gene to impute, must be a column name in the data

simData.learn

training data as data.frame

simData.test

testing data, for predictions, as data.frame

kmaxParam

integer specifying the maximum number of neighbors to consider for training data

mixedSpeciesData

TRUE/FALSE depending on whether the data belongs to the mixed species experiment. If TRUE, additional measures are included for analysis

Value

data.frame containing results of the simulation mean squared error, Spearman correlation, optimal parameters for kknn


hkumar6/gene.expression documentation built on May 17, 2019, 4:33 p.m.