Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ssieub opened this issue Oct 22, 2023 · 6 comments
Open

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

ssieub opened this issue Oct 22, 2023 · 6 comments

Comments

@ssieub
Copy link

ssieub commented Oct 22, 2023

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

@YinLiLin
Copy link
Owner

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

@ssieub
Copy link
Author

ssieub commented Oct 22, 2023

It's version 4.3.3 now.

@ssieub
Copy link
Author

ssieub commented Oct 22, 2023

图片

@YinLiLin
Copy link
Owner

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

@ssieub ssieub closed this as completed Oct 22, 2023
@ssieub ssieub reopened this Oct 22, 2023
@ssieub
Copy link
Author

ssieub commented Oct 22, 2023

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).

@YinLiLin
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants