You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in t.test.default((values)/sigma[indLargeSeg], mu = 0) : not enough 'x' observations Calls: t.test -> t.test.default In addition: There were 50 or more warnings (use warnings() to see the first 50) Execution halted
#12
Open
ruochenj opened this issue
Jun 23, 2021
· 1 comment
This error occurs during multiple runs of the latest version (V7.0) of ONCOCNV:
Error in t.test.default((values)/sigma[indLargeSeg], mu = 0) :
not enough 'x' observations
Calls: t.test -> t.test.default
In addition: There were 50 or more warnings (use warnings() to see the first 50)
Execution halted
I figured out that this is due to the following code in line 774:
tt <- which(predValeu==0 & ratio< -magicThreshold)
Sometimes, the output of the predictClust function (predValeu variable) involves no "0" class, but "-1", "1", and "NA". In this case, the tt will have length 0 and cause the bug I mentioned. How would you advice to redefine the tt? I want to use "tt <- which(predValeu==1 & ratio< -magicThreshold)" instead for the function to bypass this problem, but I am wondering if you have any suggestions. Would you update your package to address this bug?
Best,
Ruochen
The text was updated successfully, but these errors were encountered:
I am having the same issue. It seems like a random error, as when I run it on the same samples, sometimes the same issue occurs and sometimes it doesn't.
It would be great if @valeu could help solving this issue. Thanks!
Dear authors,
This error occurs during multiple runs of the latest version (V7.0) of ONCOCNV:
Error in t.test.default((values)/sigma[indLargeSeg], mu = 0) :
not enough 'x' observations
Calls: t.test -> t.test.default
In addition: There were 50 or more warnings (use warnings() to see the first 50)
Execution halted
I figured out that this is due to the following code in line 774:
tt <- which(predValeu==0 & ratio< -magicThreshold)
Sometimes, the output of the predictClust function (predValeu variable) involves no "0" class, but "-1", "1", and "NA". In this case, the tt will have length 0 and cause the bug I mentioned. How would you advice to redefine the tt? I want to use "tt <- which(predValeu==1 & ratio< -magicThreshold)" instead for the function to bypass this problem, but I am wondering if you have any suggestions. Would you update your package to address this bug?
Best,
Ruochen
The text was updated successfully, but these errors were encountered: