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

IndexError: child index out of range #55

Closed
AbatwahelQuitol opened this issue Sep 2, 2020 · 4 comments
Closed

IndexError: child index out of range #55

AbatwahelQuitol opened this issue Sep 2, 2020 · 4 comments

Comments

@AbatwahelQuitol
Copy link

If I use the next line:
stringMLST.py --getMLST -P Listeria --species Listeria monocytogenes

I get the following error:

Preparing: Listeria
Traceback (most recent call last):
File "/mnt/disk1/bin/miniconda3/bin/stringMLST.py", line 1562, in
profileURL, loci = get_links(dbRoot, filePrefix, species)
File "/mnt/disk1/bin/miniconda3/bin/stringMLST.py", line 268, in get_links
profileURL = child[1].text
IndexError: child index out of range

@ar0ch
Copy link
Member

ar0ch commented Sep 2, 2020

Pubmlst appears to have changed their XML schema, so just pushed a small point update to stringMLST. Also, do note that you should use quotes around your species to make sure you're getting the scheme you think you are; stringMLST.py --getMLST -P Listeria --species "Listeria monocytogenes"

$ ./stringMLST.py -v
 stringMLST v0.6.3 (updated : September 02, 2020)

$ ./stringMLST.py --getMLST -P Listeria --species "Listeria monocytogenes"
Preparing: Listeria monocytogenes
        INFO: normalizing name to: Listeria_monocytogenes
        Database ready for Listeria monocytogenes
        Listeria/Listeria_monocytogenes

@ar0ch ar0ch closed this as completed Sep 2, 2020
@AbatwahelQuitol
Copy link
Author

AbatwahelQuitol commented Sep 2, 2020 via email

@ar0ch
Copy link
Member

ar0ch commented Sep 2, 2020

Either by pip or cloning the repo and installing from there. I still need to submit an updated conda package and that'll take some time to process on their side.

@ar0ch
Copy link
Member

ar0ch commented Sep 3, 2020

The new conda package should be available shortly

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