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

KeyError:'24B' #53

Open
km-bit opened this issue Jul 13, 2020 · 3 comments
Open

KeyError:'24B' #53

km-bit opened this issue Jul 13, 2020 · 3 comments

Comments

@km-bit
Copy link

km-bit commented Jul 13, 2020

Hey everyone,

I am getting a KeyError when I am running seroba on my test data.

Traceback (most recent call last):
  File "/home/user/.local/bin/seroba", line 86, in <module>
    args.func(args)
  File "/home/user/.local/lib/python3.8/site-packages/seroba/tasks/sero_run.py", line 19, in run
    sero.run()
  File "/home/user/.local/lib/python3.8/site-packages/seroba/serotyping.py", line 479, in run
    cluster = self.serotype_cluster_dict[self.best_serotype]
KeyError: '24B'

I am not sure what it means or how to fix it. Maybe someone had the same or a similar problem ?

Thank you in advance!

@eppinglen
Copy link
Member

eppinglen commented Jul 13, 2020

Hi,

which Version of SeroBA are you using? Did you download the database from this git repository or did you use the build in function of SeroBA?

Best,
Lennard

@km-bit
Copy link
Author

km-bit commented Jul 15, 2020

Hey Lennard,

The version is 1.0.0 and I downloaded the database from the git repository. But I think the error handled itself, because yesterday my system crashed and after reinstalling seroba again from source it cannot find the command seroba. I guess I have to figure that out first.

But thank you for the quick response!

Karsten

@eppinglen
Copy link
Member

The latest version of ARIBA (prepareref) seems to create an odd output of the cdhit_cluster.tsv. This leads to problems with the prediction for some serotypes.
The current solution would be to downgrade ARIBA (e.g. version 2.11.1). Afterwards the database has to be rebuild.

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