gywns6287 / deepGBLUP

This is deepGBLUP
MIT License
4 stars 4 forks source link

ValueError: could not convert string to float: 'NA' #3

Open Siavash-cloud opened 9 months ago

Siavash-cloud commented 9 months ago

Hello, I installed your software as you mentioned on your github page. After that, I prepared genotypes using : plink1.9 --bfile QC8 --recodeA --out QC8 Also, I have a text file including ID and phenotypes (without headers) of my training set. I put addresses of my inputs in main.py and after executing python main.py command and then, I was faced with ValueError:

2706it [00:00, 2961.87it/s]
Traceback (most recent call last):
  File "/home/siavash/Downloads/deepGBLUP-main/main.py", line 39, in <module>
    train_dataset, test_dataset, num_snp, ymean = load_dataset(raw_path, phen_path, h2, device)
                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/siavash/Downloads/deepGBLUP-main/dataset.py", line 69, in load_dataset
    train_X = torch.from_numpy(np.array(train_X, dtype=np.float32))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'NA'

Would you please let me know how can I solve this error? Siavash, Regards