Closed zillurbmb51 closed 4 years ago
Looking at the code, it means that you have X2 statistics larger than 10^5, which is apparently not possible.
> pchisq(1e5, df = 100, lower.tail = FALSE, log.p = TRUE)
[1] -49614.4
Can you provide a reproducible example?
Thank you. I am not sure how to reproduce this error because with same data other plots work perfectly. Here is my original data. clinvar.maf5.indep0.1.bed.txt clinvar.maf5.indep0.1.bim.txt clinvar.maf5.indep0.1.fam.txt
I removed the .txt
extensions (why do you have them?)
This works for me:
library(pcadapt)
bed <- read.pcadapt("tmp-data/clinvar.maf5.indep0.1.bed", type = "bed")
xclinvar <- pcadapt(bed)
plot(xclinvar, option = "stat.distribution", threshold = 0.1) +
ggplot2::ggtitle('P_clinvar hg38 17076 SNPs')
Note that you might want to change K
and use LD clumping.
Thank you. The extensions are to upload here. Loading without K works. How can I use LD clumping? Best, ZIllur
There is a parameter for it. Also see the vignette.
Hello, I was trying make stats distribution plot for my snp data using pcadapt:
pl6=plot(xclinvar, option = "stat.distribution", threshold = 0.1)+ggtitle('P_clinvar hg38 17076 SNPs')
And getting this:error in hist_plot(x, 1) : can't display the histogram as the values are too high.
Other plots like pca, qq or manhattan works good for this data and stat.distribution also works for other data but error is only for this. Any help? Best, Zillur