Skip to content

Commit

Permalink
Warn error rates weren't estimated only when selfConsist=TRUE
Browse files Browse the repository at this point in the history
Not necessary otherwise. Closes benjjneb#469
  • Loading branch information
benjjneb committed Oct 10, 2018
1 parent 9d24992 commit c630b00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/dada.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit c630b00

Please sign in to comment.