Closed KasperFischer closed 2 years ago
Hi Kasper,
I"m glad you advanced in your project!
The errror seems to indicate that there needs to be this file: '/home/users/me/GenNet/processed_data/genotype/1_clumped.h5'
What files do you have in the genotype folder (/home/users/me/GenNet/processed_data/genotype/)?
Maybe it is also good to check if there are not other older conversion files from your previous conversion there. Maybe that could cause some confusion.
Best,
Arno
Dear Kasper
I found the error https://github.com/ArnovanHilten/GenNet/blob/19ac2d061d2828f083947f4738679a6d9d40b23f/GenNet_utils/Convert.py#L61
Line should be:
g = h5py.File(filepath_hase.format(0), 'r')['genotype']
I fixed it in the dev branch https://github.com/ArnovanHilten/GenNet/blob/c3a30498707b152ec9c09a2ed1f8102d0ee5e2f0/GenNet_utils/Convert.py#L61
So the 1 should be a 0. You can simply change .format(1) to .format(0) on line 61 in GenNet_utils/Convert.py and it should work.
Thanks for spotting this bug.
Best,
Arno
Hi Arno
Thank you for your previous help. That was the cause of large advances in my project! I am now trying out some model specifications on a smaller dataset with 272 variants in plink format.
I use the same command to convert the plink data with my full dataset (in which case it worked):
I am now getting a new error message. I have checked with the larger dataset, and here the above command works fine. The error mesage I am getting is:
Do you know how I can convert a reduced dataset to a h5-format and work further with your tool?