Entering edit mode
2.4 years ago
sunnykevin97
▴
990
setwd("/home/sun/Documents/genesite/pvalues/")
library(qvalue)
p <- scan("/home/sun/Documents/genesite/pvalues
/pvalues.txt",na.strings=T)
hist(p, breaks = 20, main = paste("Distribution of p-values"), xlab="Value")
aa <- is.na(p)
aa
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[20] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[39] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[58] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
qobj <- qvalue(p, pi0.meth="bootstrap", fdr.level=0.05,na.rm=TRUE)
Error in quantile.default(pi0, prob = 0.1) :
missing values and NaN's not allowed if 'na.rm' is FALSE
write.qvalue(qobj, file="qvalues.list")
You should share the values with
dput
instead of just the results ofis.na
so we can check they are valid finite numeric values.Any suggestions ?