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

AssertionError when running sourmash-lca #597

Closed
JiaZhong28 opened this issue Jan 4, 2019 · 15 comments
Closed

AssertionError when running sourmash-lca #597

JiaZhong28 opened this issue Jan 4, 2019 · 15 comments

Comments

@JiaZhong28
Copy link

When I was running sourmash lca classify,I got this problem:

Traceback (most recent call last):ca.json.gz File "/home/lizongjun/miniconda3/bin/sourmash", line 11, in <module> sys.exit(main()) File "/home/lizongjun/miniconda3/lib/python2.7/site-packages/sourmash/__main__.py", line 77, in main cmd(sys.argv[2:]) File "/home/lizongjun/miniconda3/lib/python2.7/site-packages/sourmash/lca/__main__.py", line 54, in main cmd(sysv_args[1:]) File "/home/lizongjun/miniconda3/lib/python2.7/site-packages/sourmash/lca/command_summarize.py", line 99, in summarize_main dblist, ksize, scaled = lca_utils.load_databases(args.db, args.scaled) File "/home/lizongjun/miniconda3/lib/python2.7/site-packages/sourmash/lca/lca_utils.py", line 282, in load_databases lca_db.load(db_name) File "/home/lizongjun/miniconda3/lib/python2.7/site-packages/sourmash/lca/lca_utils.py", line 162, in load assert version == '1.0' AssertionError
This is my command:
sourmash lca summarize --db genbank-k51.lca.json.gz --query SB5.bin.9.orig.b.fa.sig

Can you help me solve this problem?

Thank you very much!

@JiaZhong28
Copy link
Author

I install again this software used conda,and the same problem appear:

Traceback (most recent call last):ca.json.gz
File "/home/lizongjun/miniconda3/bin/sourmash", line 11, in
sys.exit(main())
File "/home/lizongjun/miniconda3/lib/python3.6/site-packages/sourmash/main.py", line 77, in main
cmd(sys.argv[2:])
File "/home/lizongjun/miniconda3/lib/python3.6/site-packages/sourmash/lca/main.py", line 54, in main
cmd(sysv_args[1:])
File "/home/lizongjun/miniconda3/lib/python3.6/site-packages/sourmash/lca/command_summarize.py", line 99, in summarize_main
dblist, ksize, scaled = lca_utils.load_databases(args.db, args.scaled)
File "/home/lizongjun/miniconda3/lib/python3.6/site-packages/sourmash/lca/lca_utils.py", line 282, in load_databases
lca_db.load(db_name)
File "/home/lizongjun/miniconda3/lib/python3.6/site-packages/sourmash/lca/lca_utils.py", line 162, in load
assert version == '1.0'
AssertionError

@ctb
Copy link
Contributor

ctb commented Jan 4, 2019 via email

@JiaZhong28
Copy link
Author

Thank you very much!Jsut now I use the rigrt databases by the command curl -L -o genbank-k31.lca.json.gz https://osf.io/zskb9/download and the results of most of mine bins are "nomatch".
Because I want to use the the latest updated database to do taxonomic classification,I downloaded these database at https://osf.io/vk4fa/files/.sourmash-lca-mark3

So if I want to use the latest updated database,I must download the new version of sourmash on github?
And how to solve the problem of "nomatch"?

@ctb
Copy link
Contributor

ctb commented Jan 4, 2019

yes, that's the right database!

The new database will not change your matches in this case.

if you get a lot of 'nomatch' that should mean that most of your bins are unknown at the species/genus level. You can try using a k-mer size of 21, but your best bet is probably to switch to something that does tax classification at the protein level, such as CheckM.

@JiaZhong28
Copy link
Author

I am so grateful that you replied to my message.Thank you very much!

Best wishes to you .

@ctb
Copy link
Contributor

ctb commented Jan 4, 2019

thank YOU for touching base over this problem! I'm sure others are having it too.

@ctb
Copy link
Contributor

ctb commented Jan 4, 2019

(I will close this when we have dealt with the database issue :)

@Brian-No
Copy link

Brian-No commented Jan 4, 2019

So I am having the same issue originally posted (assertion error). The software was installed with conda and can generate signatures but all of the commands to classify the signatures throws an assertion error. It doesn't seem to work for either database. Do I need to install a different version of sourmash?

Thank you.

@ctb
Copy link
Contributor

ctb commented Jan 4, 2019 via email

@luizirber
Copy link
Member

luizirber commented Jan 4, 2019 via email

@Brian-No
Copy link

Brian-No commented Jan 4, 2019

Thank you, the mark2 database worked. Looking forward to the update.

@luizirber
Copy link
Member

PR submitted to bioconda bioconda/bioconda-recipes#12919
should be available tomorrow (maybe even today, let's see =] )

@luizirber
Copy link
Member

2.0.0a11 available on PyPI and bioconda:

pip install --pre sourmash==2.0.0a11

or

conda install sourmash==2.0.0a11

@JiaZhong28
Copy link
Author

2.0.0a11 available on PyPI and bioconda:

pip install --pre sourmash==2.0.0a11

or

conda install sourmash==2.0.0a11

Thank you !

@ctb
Copy link
Contributor

ctb commented Jan 6, 2019

thx @luizirber !

@ctb ctb closed this as completed Jan 6, 2019
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

4 participants