-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error when run quick start #103
Comments
It looks like the ITS database is either corrupt or not installed properly. What is the output of
|
I installed the data base, and the last problem was solved. But I wonder is it a correct solution for the first issue? |
Sorry I didn't notice the first issue -- the formatting was all blended together. Can you rephrase the first issue and include commands you used to generate those errors? |
I'm sorry for my confusing reply, and thank you for your help. Here is the first issue. I used commands below to filter: and error showed like[02:56:43 PM]: OS: Ubuntu 20.04, 8 cores, ~ 25 GB RAM. Python: 3.8.18 I tried to fix it by modifying "site-packages/amptk/filter.py" file at 300 line |
I am having this same issue in the filtering step with AMPtk ver 1.6.0, though I think it might be an M3 mac issue? (there seem to be a lot of those, I have to use a rosetta env to get most things to work) [Apr 03 12:01 PM]: OS: MacOSX 14.4.1, 16 cores, ~ 67 GB RAM. Python: 3.12.2 |
its probably just a pandas issue, try to downgrade to something less than v2.0 and see if that works, ie |
That worked - the future warnings are gone. It is funny, I double checked to make sure pandas was updated before posting - I was running pandas v2.2.1 before for reference, and am now down to v1.5.3 |
I was learning amptk, and ran AMPtk Quick Start guidling to process test data from and I got this error when filtering.
################
Traceback (most recent call last):
File "/home/user1/miniconda3/envs/amptk154/bin/amptk", line 10, in
sys.exit(main())
File "/home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/amptk.py", line 784, in main
mod.main(arguments)
File "/home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/filter.py", line 300, in main
filt2 = filtered.loc[(filtered != 0).any(1)]
TypeError: any() takes 1 positional argument but 2 were given
#################
Same error was recurrent when I re-install from pip or conda, or using different version of amptk, including V 1.5.4 and V 1.5.5, I also try different version of python, like 3.10 and 3.8, the error still occur.
I re-wrote the python script "site-packages/amptk/filter.py" at line 300.
change
filt2 = filtered.loc[(filtered != 0).any(1)]
to
filt2 = filtered.loc[(filtered != 0).any(axis=1)]
then the filter was run successfully.
but, when I ran amptk taxonomy after LULU, I get another problem,
#############
[03:51:57 PM]: OS: Ubuntu 20.04, 8 cores, ~ 25 GB RAM. Python: 3.8.18
[03:51:57 PM]: AMPtk v1.5.4, VSEARCH v2.24.0
[03:51:57 PM]: Loading FASTA Records
[03:51:57 PM]: 5 OTUs
[03:51:57 PM]: Global alignment OTUs with usearch_global (VSEARCH) against ITS.udb
[03:51:57 PM]: Classifying OTUs with SINTAX (VSEARCH)
[03:51:57 PM]: SINTAX results empty
[03:51:57 PM]: Parsing taxonomy failed -- see logfile
###################
there are no output result!!!
I checked log file. It shows below:
####################
[11/02/23 15:51:56]: /home/user1/miniconda3/envs/amptk154/bin/amptk taxonomy -f miseq.lulu.otus.fa -i miseq.lulu.otu_table.txt -m miseq.mapping_file.txt -d ITS2 -o miseq
[11/02/23 15:51:57]: OS: Ubuntu 20.04, 8 cores, ~ 25 GB RAM. Python: 3.8.18
[11/02/23 15:51:57]: Python Modules: numpy v1.24.4, pandas v2.0.3, matplotlib v3.4.3, psutil v5.9.5, natsort v8.4.0, biopython v1.81, edlib v1.3.9, biom-format v2.1.15
[11/02/23 15:51:57]: AMPtk v1.5.4, VSEARCH v2.24.0
[11/02/23 15:51:57]: Loading FASTA Records
[11/02/23 15:51:57]: 5 OTUs
[11/02/23 15:51:57]: Global alignment OTUs with usearch_global (VSEARCH) against ITS.udb
[11/02/23 15:51:57]: vsearch --usearch_global miseq.lulu.otus.fa --db /home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/DB/ITS.udb --userout miseq.usearch.txt --id 0.7 --strand both --output_no_hits --maxaccepts 500 --top_hits_only --userfields query+target+id --notrunclabels --threads 8
[11/02/23 15:51:57]: vsearch v2.24.0_linux_x86_64, 23.9GB RAM, 8 cores
https://github.com/torognes/vsearch
Fatal error: Unable to get status for input file (/home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/DB/ITS.udb)
[11/02/23 15:51:57]: Classifying OTUs with SINTAX (VSEARCH)
[11/02/23 15:51:57]: vsearch --sintax miseq.lulu.otus.fa --db /home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/DB/ITS2_SINTAX.udb --tabbedout miseq.sintax.txt -sintax_cutoff 0.8 --threads 8 --notrunclabels
[11/02/23 15:51:57]: vsearch v2.24.0_linux_x86_64, 23.9GB RAM, 8 cores
https://github.com/torognes/vsearch
Fatal error: Unable to get status for input file (/home/user1/miniconda3/envs/amptk154/lib/python3.8/site-packages/amptk/DB/ITS2_SINTAX.udb)
[11/02/23 15:51:57]: SINTAX results empty
[11/02/23 15:51:57]: Global alignment results parsed, resulting in 0 taxonomy predictions
[11/02/23 15:51:57]: Combined OTU taxonomy dictionary contains 0 taxonomy predictions
[11/02/23 15:51:57]: Parsing taxonomy failed -- see logfile`
################
sameerror was also occur when I ran with amptk V 1.5.5
The text was updated successfully, but these errors were encountered: