Skip to contents

This method is a wrapper to the function impute.mle() of the package imp4p adapted to an object of class MSnSet. It does not impute MEC missing values.

Usage

wrapper.impute.mle(obj, grp)

Arguments

obj

An object of class MSnSet.

grp

xxx

Value

The SummarizedExperiment::assay(obj) matrix with imputed values instead of missing values.

Author

Samuel Wieczorek

Examples

utils::data(Exp1_R25_pept, package = "DaparToolshedData")
obj <- Exp1_R25_pept[seq_len(10), ]
level <- 'peptide'
# Delete whole empty lines
metacell.mask <- DaparToolshed::match.metacell(qMetacell(obj[[1]]), c("Missing POV", "Missing MEC"), level)
indices <- GetIndices_WholeMatrix(metacell.mask, op = ">=", th = 1)
grp <- design.qf(obj)$Condition
obj.imp.na <- wrapper.impute.mle(obj[[2]], grp)