Skip to content

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

Description

@ruochenj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions