Skip to content

Commit

Permalink
returning min valid abund_thresh to 0 instead of 1
Browse files Browse the repository at this point in the history
Initially changed as an idea towards fixing the filtering bug, but
additional explicit checks have been put in place since then, thus
changed range of valid values no longer needed.
  • Loading branch information
fruce-ki committed Mar 13, 2018
1 parent f1adf02 commit e997a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/func.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ parameters_are_good <- function(annot, count_data_A, count_data_B, boot_data_A,
return(list("error"=TRUE, "message"="Invalid p-value threshold!"))
if ((!is.numeric(dprop_thresh)) || dprop_thresh < 0 || dprop_thresh > 1)
return(list("error"=TRUE, "message"="Invalid proportion difference threshold! Must be between 0 and 1."))
if ((!is.numeric(abund_thresh)) || abund_thresh < 1)
return(list("error"=TRUE, "message"="Invalid abundance threshold! Must be a count >= 1."))
if ((!is.numeric(abund_thresh)) || abund_thresh < 0)
return(list("error"=TRUE, "message"="Invalid abundance threshold! Must be a count >= 0."))
if ((!is.numeric(qbootnum)) || qbootnum < 0)
return(list("error"=TRUE, "message"="Invalid number of bootstraps! Must be a positive integer number."))
if (!is.logical(qboot))
Expand Down

0 comments on commit e997a79

Please sign in to comment.