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

[BUG] IndexError: list index out of range #13

Closed
Jwebster89 opened this issue Jan 28, 2021 · 1 comment
Closed

[BUG] IndexError: list index out of range #13

Jwebster89 opened this issue Jan 28, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Jwebster89
Copy link

When running referenceseeker 1.6.3 (installed with conda) with a custom database I received an "IndexError: list index out of range".

Traceback (most recent call last):
File "/home/user/miniconda3/envs/ref_seeker/bin/referenceseeker", line 10, in
sys.exit(main())
File "/home/user/miniconda3/envs/ref_seeker/lib/python3.9/site-packages/referenceseeker/referenceseeker.py", line 96, in main
ref_genomes = util.read_reference_genomes(config)
File "/home/user/miniconda3/envs/ref_seeker/lib/python3.9/site-packages/referenceseeker/util.py", line 24, in read_reference_genomes
'name': cols[3]

I imported my genomes into the database without using the optional --organism flag and received this error. After checking the custom db.tsv and the util.py, it looks like I might have needed something in the name column other than the default "". Re-ran the database import with the --organism flag and it appears to be working now.

@Jwebster89 Jwebster89 added the bug Something isn't working label Jan 28, 2021
@oschwengers oschwengers self-assigned this Jan 29, 2021
@oschwengers
Copy link
Owner

oschwengers commented Jan 29, 2021

Hello @Jwebster89 , thanks for reporting!
The issue should be fixed. ReferenceSeeker now sets a default organism strings to 'NA' if no organism name is provided.
A patch release is out - it should make its way through the CD (PyPI/Docker/BioConda) soon.

I close the issue for now - please do not hesitate to reopen it, if the issue should somehow remain.
Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants