A user recently tried to create an NG-CHM with input data (inadvertently) having the same values for every column of one row. The code crashed in chmDefaultRowOrder() from the line:
Error in stats::hclust(dd, method = chm@rowAgglom) :
NA/NaN/Inf in foreign function call (arg 10)
In addition: Warning message:
In cor(t(mat), use = "pairwise") : the standard deviation is zero
It would have been more helpful to the user if the error message provided a little more information to help them diagnose the input data problem.
A user recently tried to create an NG-CHM with input data (inadvertently) having the same values for every column of one row. The code crashed in
chmDefaultRowOrder()
from the line:with errors and warnings:
It would have been more helpful to the user if the error message provided a little more information to help them diagnose the input data problem.