Closed xinyu-c9 closed 7 months ago
Hi Xinyu,
Thanks for reporting this bug. I've seen this issue reported before, however, I was not able to reproduce the error message on my end. Do you mind sharing more information about your system setup? Primarily, it would be great to know the python version, magenpy
version, and plink
version. It would also help if you could show how you set the plink
path (if at all) before running the script.
Thank you,
Shadi
Hi Shadi,
Thanks for your reply! The Python version I used is 3.7.12, the Magenpy version is 0.0.12, and the Plink version is v1.90b6.24. For the full plink path, I'll send an email to you. Do you still use shadi.zabad@mail.utoronto.ca?
Thanks again for your help.
Best, Xingyu
Hi Xingyu,
Thank you for following up on this. I think I figured out the source of the bug.
In my experimentation and code development, I was testing the LD computation functionality with plink
version v1.90b4.6 64-bit (15 Aug 2017)
and I believe if you use this version, you won't see this bug anymore. I think in later versions of plink
, such as the one you're using, the developers changed the default value for one of the LD-related flags, which meant that the output of the software is now different, which then breaks my code.
Specifically, the flag that was modified is --ld-window-r2
, which sets the threshold used to decide what LD values to include in the output file. In future versions of magenpy
, I will try to set this flag explicitly to be zero (i.e. --ld-window-r2 0
), but for now, if you want a quick solution to your problem, I recommend using the plink version that I mentioned above (or any plink 1.9 from before 2019, I believe?).
Hope this solves the problem. If it doesn't, please let me know.
Hi Shadi,
I'm sorry for not getting back to you sooner. I've tried Plink v1.90b6.7 64-bit (2 Dec 2018), but this error still persists. This is the earliest version of plink v1.90 I can find. Could you please send me your Plink software so that I can retry? This is my email address: chenxy@big.ac.cn
Thank you so much for your help!
Hi Xinyu, I pushed a large update to both magenpy
and viprs
that should fix these bugs that you reported.
If the issue still persists, feel free to open the issue again.
Sorry to disturb! I was trying to construct a shrinkage LD matrix using my genotype file. Here is my script:
I encountered the following error:
Do you know what caused this error, and how to fix it? If you need additional information, please feel free to ask me. Thank you so much in advance!