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

UnboundLocalError: local variable 'hit' referenced before assignment #55

Closed
atiweb opened this issue Jun 8, 2019 · 2 comments
Closed

Comments

@atiweb
Copy link

atiweb commented Jun 8, 2019

OS: debian buster/sid, 8 cores, ~ 16 GB RAM. Python: 3.7.3
AMPtk v1.4.0, USEARCH v10.0.240, VSEARCH v2.13.4
Loading FASTA Records
8,203 OTUs
Global alignment OTUs with usearch_global (VSEARCH) against ITS.udb
Classifying OTUs with UTAX (USEARCH)
Classifying OTUs with SINTAX (USEARCH)
UTAX results empty
SINTAX results empty
Traceback (most recent call last):
File "/amptk/bin/amptk", line 735, in
main()
File "/amptk/bin/amptk", line 726, in main
mod.main(arguments)
File "/amptk/lib/python3.7/site-packages/amptk/assign_taxonomy.py", line 320, in main
bestClassify = amptklib.bestclassifier(utaxDict, sintaxDict, otuList)
File "/amptk/lib/python3.7/site-packages/amptk/amptklib.py", line 1494, in bestclassifier
BestClassify[otu] = hit
UnboundLocalError: local variable 'hit' referenced before assignment

running:
amptk taxonomy -f .cluster.filtered.otus.fa -i .cluster.final.txt -m mapping_file.txt -d ITS2 -u usearch10

@nextgenusfs
Copy link
Owner

You need usearch9.

@atiweb
Copy link
Author

atiweb commented Jun 8, 2019

Thanks. We tried it later with usearch9 and it works beatifully

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