Skip to content

Commit 94e0373

Browse files
committed
version 1.1.0 released. Includes functions for MAR/MNAR diagnosis, and quantification of distortion to global and local structures post imputation.
1 parent e5a0427 commit 94e0373

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: msImpute
22
Type: Package
33
Title: Peptide imputation in label-free proteomics
4-
Version: 0.1.0
4+
Version: 1.1.0
55
Authors@R:
66
person(given = "Soroor",
77
family = "Hediyeh-zadeh",

R/msImpute.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ msImpute <- function(object, rank.max = NULL, lambda = NULL, thresh = 1e-05,
5959
maxit = maxit, trace.it = trace.it, warm.start = warm.start, final.svd = final.svd)
6060
cat("model fitted. \nImputting missing entries ... \n")
6161
ximp <- softImpute::complete(x, fit)
62-
cat("Imputation completed \n") # need to print out final rank model fitted
62+
cat("Imputation completed \n") # need to define a print method for final rank model fitted
63+
64+
if(any(object < 0)){
65+
warning("Negative values encountered in imputed data. Please consider revising filtering and/or normalisation steps.")
66+
}
6367

6468
if(is(object,"MAList")) {
6569
object$E <- ximp

0 commit comments

Comments
 (0)