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

tb-profiler create_db error #48

Open
lihang598602 opened this issue Dec 9, 2022 · 0 comments
Open

tb-profiler create_db error #48

lihang598602 opened this issue Dec 9, 2022 · 0 comments

Comments

@lihang598602
Copy link

Describe the bug
I muanually installed the tb-profiler by
pip3 install git+https://github.com/jodyphelan/TBProfiler.git
pip3 install git+https://github.com/jodyphelan/pathogen-profiler.git

and git clone https://github.com/jodyphelan/tbdb.git

In the tbdb repo when run tb-profiler create_db, I got two errors:
The first was
_


File "/usr/local/bin/tb-profiler", line 671, in
args.func(args)
File "/usr/local/bin/tb-profiler", line 231, in main_create_db
pp.create_db(args,extra_files=extra_files)
File "/usr/local/lib/python3.8/dist-packages/pathogenprofiler/db.py", line 599, in create_db
genes = load_gff(gff_file)
File "/usr/local/lib/python3.8/dist-packages/pathogenprofiler/utils.py", line 500, in load_gff
p1 = int(fields[3])
ValueError: invalid literal for int() with base 10: 'Archive'

_
and was solved by replacing " " with "_" in geneome.gff

The second was

set -u pipefail; snpEff ann Mycobacterium_tuberculosis_h37rv 80f5eed4-eb3d-4bfc-b5db-473f3236d9a0
Traceback (most recent call last):
File "/usr/local/bin/tb-profiler", line 671, in
args.func(args)
File "/usr/local/bin/tb-profiler", line 231, in main_create_db
pp.create_db(args,extra_files=extra_files)
File "/usr/local/lib/python3.8/dist-packages/pathogenprofiler/db.py", line 610, in create_db
mut = mutation_lookup[(row["Gene"],row["Mutation"])]
KeyError: ('tlyA', 'c.100delA')
Cleaning up after failed run
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/bin/tb-profiler", line 32, in cleanup
del args.conf['json_db']
AttributeError: 'Namespace' object has no attribute 'conf'


I can't resove it ,could you please give some help

To Reproduce
Steps to reproduce the behavior:

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Linux]
  • Python version:

Additional context
Add any other context about the problem here.

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

1 participant