50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

Mfuzz (version 2.32.0)

fill.NA: Replacement of missing values

Description

Methods for replacement of missing values. Missing values should be indicated by NA in the expression matrix.

Usage

fill.NA(eset,mode="mean",k=10)

Arguments

eset
object of the class ExpressionSet.
mode
method for replacement of missing values:
  • median- missing values will be replaced by the median expression value of the gene,
  • knn- missing values will be replaced by the averging over the corresponding expression values of the k-nearest neighbours,
  • knnw-same replacement method as knn, but the expression values averaged are weighted by the distance to the corresponding neighbour

k
Number of neighbours, if one of the knn method for replacement is chosen (knn,knnw).

Value

ExpressionSet class with missing values replaced.

Examples

Run this code
if (interactive()){
data(yeast) # data set includes 17 measurements
yeastF <- filter.NA(yeast) 
yeastF <- fill.NA(yeastF)
}

Run the code above in your browser using DataLab