pwas
pwas copied to clipboard
ValueError: zero-size array to reduction operation maximum which has no identity
Hello,
I was running pwas for my own dataset, without providing a covariate file for the test run, and I have trouble solving it myself. I ran into this error, I wonder if it's because I didn't provide a covariate JSON file. Just for the convenience, since I'm not working on UKB data, can I just provide normal csv file for covariates if the covariate file is a must for the command? Thanks in advance for your help.
Traceback (most recent call last):
File "/usr/local/bin/pwas_test_genes", line 4, in
I used the solution from the other post and it seems working, by including covariates with json list. So pwas can't run without covariates?
I think it can be run without covariates, but it is really not recommended. Without at least including the ~5 first PCs of genetic variation, you are likely to get spurious associations driven by population structure (like in standard GWAS). If you run on a dataset of both males and females, then you probably also want to include sex as a covariate. And age as well.
What is the full command-line that you were running when it failed?