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

Error in carrying out autosubs #6

Open
cjnaylor opened this issue Aug 20, 2019 · 1 comment
Open

Error in carrying out autosubs #6

cjnaylor opened this issue Aug 20, 2019 · 1 comment

Comments

@cjnaylor
Copy link
Collaborator

***Error: failed to carry out auto subs due to unknown error. File a bug report, please!
https://github.com/supertree-toolkit/stk/issues
Traceback (most recent call last):
File "/home/stk/supertree_toolkit.py", line 1648, in autoprocess
phyml = generate_species_level_data(phyml,taxonomy,verbose=verbose)
File "/home/stk/supertree_toolkit.py", line 770, in generate_species_level_data
if ('species' in taxonomy[taxon]):
KeyError: 'Acangaobitermes krishnai'

@jhill1
Copy link
Member

jhill1 commented Aug 21, 2019

Looks like the key "Acangaobitermes krishnai" is missing the _ (i.e. should be a "_" not a space).
Have a look at the taonxomy file generated in the previous step (in Excel or similar) and check the OTU column has _ not spaces.
Then look around line 770 in supertree_toolkit.py and check where the taxa list comes from, i.e. there'll be a line that is:
taxa = stk.get...blah
There might need to be a line in the loop that goes over taxa to do a replace:
taxon = taxon.replace(" ","_")
at the start of that loop.

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