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

AttributeError: 'Namespace' object has no attribute 'database_dir' #14

Closed
tseemann opened this issue Aug 23, 2017 · 3 comments
Closed
Assignees

Comments

@tseemann
Copy link

% seroba getPneumocat db

Traceback (most recent call last):
  File "/home/linuxbrew/.linuxbrew/bin/seroba", line 4, in <module>
    __import__('pkg_resources').run_script('seroba==0.1.4', 'seroba')
  File "/home/linuxbrew/.linuxbrew/opt/python3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 742, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/linuxbrew/.linuxbrew/opt/python3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1510, in run_script
    exec(script_code, namespace, namespace)
  File "/home/linuxbrew/.linuxbrew/opt/python3/lib/python3.6/site-packages/seroba-0.1.4-py3.6.egg/EGG-INFO/scripts/seroba", line 86, in <module>
  File "/home/linuxbrew/.linuxbrew/opt/python3/lib/python3.6/site-packages/seroba-0.1.4-py3.6.egg/seroba/tasks/getPneumocat.py", line 6, in run
AttributeError: 'Namespace' object has no attribute 'database_dir'
@eppinglen eppinglen self-assigned this Aug 23, 2017
@eppinglen
Copy link
Member

eppinglen commented Aug 23, 2017

Thank you for reporting. The error has been fixed.
However, I would recommend you to use the database, thats provided in this repository.
It includes a couple of recently discovered serotypes.

@tseemann
Copy link
Author

I wasn't aware a database was included?

The docs seem to tell me about getPneuomoCat as the first thing.

How do we use it?
Could you add some example command lines and an example contigs file to run it on?

@eppinglen
Copy link
Member

Since version 0.1.3 we includes an extended database with novel serotypes.
(added serotypes: 6G, 6F, 11E, 10X, 39X and two NT references)
For a practical exercise with SeroBA, please have look here: https://github.com/sanger-pathogens/pathogen-informatics-training

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