From c630b00e12b6f1244183b6e6dd768a3fd04fdc2e Mon Sep 17 00:00:00 2001 From: Benjamin Callahan Date: Wed, 10 Oct 2018 10:53:02 -0400 Subject: [PATCH] Warn error rates weren't estimated only when selfConsist=TRUE Not necessary otherwise. Closes #469 --- R/dada.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/dada.R b/R/dada.R index e8342bb..2231e21 100644 --- a/R/dada.R +++ b/R/dada.R @@ -368,7 +368,9 @@ dada <- function(derep, } else { err <- tryCatch(suppressWarnings(errorEstimationFunction(cur)), error = function(cond) { - if(verbose) message("Error rates could not be estimated.") + if((verbose && selfConsist) || verbose >= 2) { + message("Error rates could not be estimated (this is usually because of very few reads).") + } return(NULL) }) }