Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@ruochenj
Copy link

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

@FrankFeng2022
Copy link

FrankFeng2022 commented Jan 13, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants