Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newref error #115

Open
ilya90906767 opened this issue Apr 23, 2024 · 3 comments
Open

newref error #115

ilya90906767 opened this issue Apr 23, 2024 · 3 comments

Comments

@ilya90906767
Copy link

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
Copy link

Hi @ilya90906767,

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

@ilya90906767
Copy link
Author

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
Copy link

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

Thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants