-
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
unoise3 clustering #96
Comments
What version of amptk? I think if it is latest you need to pass |
I can confirm this issue. Looking at the logfile, it appears more of a problem with de-replication, which is independent of whether VSEARCH or USEARCH are used for denoising.
|
This command will replace the problematic code as a workaround: sed -i "s/--derep_fulllength', filter_out, '--relabel', 'Read_', '--sizeout', '--output/--fastx_uniques', filter_out, '--relabel', 'Read_', '--sizeout', '--fastaout/g" "$CONDA_PREFIX/lib/python3.10/site-packages/amptk/unoise3.py" |
So it looks like So I can make this change, we'll just have to pin Otherwise, it seems you can downgrade |
According to the VSEARCH documentation, the only difference is that |
I am trying to cluster my data using unoise3 with the following command:
amptk unoise3 -i out_lr22.demux.fq.gz -o out_lr22 -p 98 -e 2.0 --usearch usearch10
I know usearch is no longer included with amptk, but I downloaded it and put it in my path by following the instructions from the amptk documents. However, I keep getting the error:
Traceback (most recent call last):
File "/opt/miniconda3/envs/amptk/bin/amptk", line 10, in
sys.exit(main())
File "/opt/miniconda3/envs/amptk/lib/python3.9/site-packages/amptk/amptk.py", line 784, in main
mod.main(arguments)
File "/opt/miniconda3/envs/amptk/lib/python3.9/site-packages/amptk/unoise3.py", line 111, in main
total = amptklib.countfasta(derep_out)
File "/opt/miniconda3/envs/amptk/lib/python3.9/site-packages/amptk/amptklib.py", line 445, in countfasta
with open(input, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'out_lr22_tmp/out_lr22.EE2.0.derep.fa'
and in the log file the error says:
Fatal error: FASTQ input is only allowed with the fastx_uniques command
I tried changing the command from derep_fulllength to fastx_uniques in the unoise3 script, but that also did not work and returned the same error. I cannot figure out why the dereplication continues to fail.
The text was updated successfully, but these errors were encountered: