Imputation of peptides having no values in a biological condition.
Source:R/missingValuesImputation_PeptideLevel.R
wrapper.impute.mle.Rd
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.
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)