platetools icon indicating copy to clipboard operation
platetools copied to clipboard

bhit_map fails when plates contain missing data

Open Swarchal opened this issue 1 year ago • 0 comments

Error in if (platemap[row, "values"] > threshold) { : 
  missing value where TRUE/FALSE needed

https://github.com/Swarchal/platetools/blob/2934bd8df4bcfea1c07c1b7f47ca0ff3c1487508/R/bhit_map.R#L102-L111

This can be fixed with an initial if statement, checking if the value is NaN, and if so, return an NaN.

Swarchal avatar Mar 22 '23 09:03 Swarchal