EBSeqHMM Error in if (max(PI.up) > PIBound) { : missing value where TRUE/FALSE needed
2
2
Entering edit mode
4.1 years ago
xinyunie ▴ 20

I am working with RNA-seq count data.

When I am using EBSeqHMM::EBSeqHMMTest function, I got an error when UpdateRd is larger than a number.

Do you know how to fix it or why it generates an error like this? Thank you!

This is the function:

EBSeqHMMTest(Data=GeneExampleData, sizeFactors=Sizes, Conditions=Conditions, UpdateRd=5)

Here is the error:

Error in if (max(PI.up) > PIBound) { : missing value where TRUE/FALSE needed

software error bioconductor R • 891 views
ADD COMMENT
0
Entering edit mode
4.1 years ago
Mensur Dlakic ★ 27k

Error in if (max(PI.up) > PIBound) { : missing value where TRUE/FALSE needed

I don't use this program, but the meaning of error should not be too difficult to interpret. It tells you that the expression (max(PI.up) > PIBound) does not yield TRUE/FALSE as expected. That likely means that at least one of the two variables that are compared (max(PI.up) and PIBound) is not a number. That may be because PI.up contains a non-numerical value.

ADD COMMENT
0
Entering edit mode
4.1 years ago
zx8754 11k

We can reproduce this error with this simple example, when we try to compare NA:

if(1 > NA) {"it is TRUE"} else {"it is FALSE"}

Error in if (1 > NA) { : missing value where TRUE/FALSE needed

As this if statement is within EBHMMNBMultiEM_2chain.R#L239, it is best submit an issue at GitHub.

ADD COMMENT

Login before adding your answer.

Traffic: 2576 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6