Skip to content

Commit 35c4a29

Browse files
committed
update docs and fix conditional in msImpute
1 parent 897a7b1 commit 35c4a29

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ License: GPL (>=2)
2222
Encoding: UTF-8
2323
LazyData: true
2424
BugReports: https://github.com/DavisLaboratory/msImpute/issues
25-
RoxygenNote: 7.1.1
25+
RoxygenNote: 7.3.2
2626
Suggests: BiocStyle, knitr, rmarkdown, ComplexHeatmap, imputeLCMD
2727
VignetteBuilder: knitr
2828
biocViews: MassSpectrometry, Proteomics, Software

R/msImpute.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ msImpute <- function(y, method=c("v2-mnar", "v2", "v1"),
8282

8383
stop("Peptides with excessive NAs are detected. Please revisit your fitering step (at least 4 non-missing measurements are required for any peptide) or set relax_min_obs=TRUE.")
8484
}
85-
ifelse(!relax_min_obs & any(rowSums(!is.na(y)) <= 3)){
85+
else if(!relax_min_obs & any(rowSums(!is.na(y)) <= 3)){
8686
critical_obs <- which(rowSums(!is.na(y)) <= 3)
8787
message("Features with less than 4 non-missing measurements detected. These will be treated as MNAR.")
8888
}else{

man/msImpute.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)