CenterForMedicalGeneticsGhent / WisecondorX

WisecondorX — An evolved WISECONDOR
Other
94 stars 41 forks source link

newref error #115

Open ilya90906767 opened 6 months ago

ilya90906767 commented 6 months ago

I have files .npz format in refforwise folder. There were generated with WisecondorX convert commant (without optional arguments)

WisecondorX newref refforwise/*.npz ./ref.npz

There is an error

 File "/home/user/micromamba/envs/wisepackages/bin/WisecondorX", line 10, in <module>
    sys.exit(main())
  File "/home/user/micromamba/envs/wisepackages/lib/python3.9/site-packages/wisecondorx/main.py", line 487, in main
    args.func(args)
  File "/home/user/micromamba/envs/wisepackages/lib/python3.9/site-packages/wisecondorx/main.py", line 70, in tool_newref
    genders, trained_cutoff = train_gender_model(args, samples)
  File "/home/user/micromamba/envs/wisepackages/lib/python3.9/site-packages/wisecondorx/newref_tools.py", line 62, in train_gender_model
    cut_off = gmm_x[local_min_i][0]
IndexError: index 0 is out of bounds for axis 0 with size 0

I installed WisecondorX via conda. Version is 1.2.6

Martin-e-k commented 4 months ago

Hi @ilya90906767,

I am seeing the same error, did you manage to resolve your issue?

ilya90906767 commented 4 months ago

Hi @ilya90906767,

I am seeing the same error, did you manage to resolve your issue?

I think the problem is because there not enougth samples in your ref file. Try to include at least 10 samples where 5 male and 5 female

Martin-e-k commented 4 months ago

Yes, you are correct. I was testing my pipeline with just two samples.

Thanks for your reply