qvalue package throws error when used on any p-values but hedenfalk example
1
4
Entering edit mode
@ilikescience1-14947
Last seen 6.8 years ago

I've been trying to get the qvalue package to work for me. However, when I put in a vector of p-values I get the following error:

Error in smooth.spline(lambda, pi0, df = smooth.df) : missing or infinite values in inputs are not allowed

I have tried inputting the p-values in various ways. 

Consider a vector of p-values such as .0009, .02, .423, .012, .003 ... I create a list called p.values containing a numeric vector named V1 of these values.

Error in smooth.spline(lambda, pi0, df = smooth.df) : missing or infinite values in inputs are not allowed

I try qvalue(c(.0009, .02, .423, .012, .003), fdr.level=.05) and obtain the same error. 

the same happens if I leave out fdr.level=.05 and just run qvalue(p.values$V1) or qvalue(c(.0009, .02, .423, .012, .003)).

I however run the example qvalue(hedenfalk$p) and it works no problem... I've tried reloading the package as well as uninstalling-reinstalling it. 

There are no missing or infinite values, so I don't know what the problem could be.

Anyone have an idea what's going on?

qvalue • 5.7k views
ADD COMMENT
0
Entering edit mode

I also had this problem. I have 816 P-values, seems that there are many p-values that are close to 0, and this causes the error too.

ADD REPLY
4
Entering edit mode
@storey-john-d-6576
Last seen 4.9 years ago
United States

You don't have enough p-values to warrant estimating pi0, so include the argument lambda=0.

ADD COMMENT

Login before adding your answer.

Traffic: 574 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