CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

p values should be at range of (0, 1).

Open ssieub opened this issue 2 years ago • 6 comments

CMplot(x,plot.type="q",threshold=0.05) Error in CMplot(x, plot.type = "q", threshold = 0.05) : p values should be at range of (0, 1). The p-values of my data are all between 0 and 1, but the code runs with an error

ssieub avatar Oct 22 '23 02:10 ssieub

Please update to the latest version and have a try again.

YinLiLin avatar Oct 22 '23 02:10 YinLiLin

It's version 4.3.3 now.

ssieub avatar Oct 22 '23 02:10 ssieub

图片

ssieub avatar Oct 22 '23 02:10 ssieub

Could you please provide a screenshot for a head of your data? Thanks.

YinLiLin avatar Oct 22 '23 02:10 YinLiLin

X-芽期相对盐害率.txt Thanks
I've removed the blank lines at runtime x=fread("X-芽期相对盐害率.txt") x=x %>% drop_na(p) CMplot(x,plot.type = "q",threshold = 0.05) Error in CMplot(x, plot.type = "q", threshold = 0.05) : p values should be at range of (0, 1).

ssieub avatar Oct 22 '23 03:10 ssieub

the structure of your data doesn't fully meet the requirements. As the same with example datasets (see the README.md on GitHub), the first three columns are names, chromosome, position of SNPs respectively, the rest of columns are the pvalues of GWAS or effects of GS/GP for traits. Please adjust your data to be fully consistent with the example data prior plotting.

YinLiLin avatar Oct 22 '23 03:10 YinLiLin