vsearch v1.11.1_linux_x86_64, 16.0GB RAM, 8 cores
module load python-2.7.10 module load qiime/1.9.1
Alias is not expanded in a non-interactive shell script, in this case, the batch script. To make it work, you need to change the shell option.
add a line above the alias definition: "shopt -s
expand_aliases
“
That should get you the right command vsearch.
:)
It seems to work by doing this, I get the vsearch version to come up after I run usearch61 --version!
alias 'usearch61=~/../lab/tools/vsearch/1.11.1/bin/vsearch'
+ /gpfs0/home/resgoodman/vav002/../lab/tools/vsearch/1.11.1/bin/vsearch --version
vsearch v1.11.1_linux_x86_64, 125.9GB RAM, 20 cores
https://github.com/torognes/vsearch
However, I am still not 100% sure it's running vsearch during pick_open_reference_otus.py!! I put in -m as usearch61 when I submit the SBATCH for this script, but if you see below (from the log file) it has -m as usearch61_ref during pick_otus.py. Is it not going to use the alias because it's not usearch61, it's technically running usearch61_ref??
However, I am still not 100% sure it's running vsearch during pick_open_reference_otus.py!! I put in -m as usearch61 when I submit the SBATCH for this script, but if you see below (from the log file) it has -m as usearch61_ref during pick_otus.py. Is it not going to use the alias because it's not usearch61, it's technically running usearch61_ref??
I get the vsearch version to come up after I run usearch61 --version!
alias 'usearch61=~/../lab/tools/vsearch/1.11.1/bin/vsearch'+ /gpfs0/home/resgoodman/vav002/../lab/tools/vsearch/1.11.1/bin/vsearch --version
vsearch v1.11.1_linux_x86_64, 125.9GB RAM, 20 cores
I think it might be running a vsearch and usearch61_ref combo??!! Is there another alias that we can use? Can you explain why vsearch is the best way to go? :)
we wouldn't expect the results from usearch and vsearch to be exactly identical, right?
I was using this to vet the pipeline to use for my actual samples (I wanted to run through the pipelines/clustering algorithms quickly and see which gave me the best representation of the mock community).
Do you think vsearch will eventually be implemented as an otu picking method in any of the newer versions of QIIME?
How do these cluster the data (Swarm or dada2) without OTUs?? Interesting!
MacQIIME Todds-Mac-Pro:Soil $ pick_open_reference_otus.py -m usearch61 -i soil_seqs_final/combined_seqs.fna -o vsearch_picked_otus -f -a -O 6
Traceback (most recent call last):
File "/macqiime/anaconda/bin/pick_open_reference_otus.py", line 453, in <module>
main()
File "/macqiime/anaconda/bin/pick_open_reference_otus.py", line 432, in main
minimum_failure_threshold=minimum_failure_threshold)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/workflow/pick_open_reference_otus.py", line 713, in pick_subsampled_open_reference_otus
close_logger_on_success=False)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/workflow/util.py", line 122, in call_commands_serially
raise WorkflowError(msg)
qiime.workflow.util.WorkflowError:
*** ERROR RAISED DURING STEP: Pick Reference OTUs
Command run was:
pick_otus.py -i soil_seqs_final/combined_seqs.fna -o vsearch_picked_otus/step1_otus -r /macqiime/anaconda/lib/python2.7/site-packages/qiime_default_reference/gg_13_8_otus/rep_set/97_otus.fasta -m usearch61_ref --suppress_new_clusters
Command returned exit status: 1
Stdout:
Stderr
Traceback (most recent call last):
File "/macqiime/anaconda/bin/pick_otus.py", line 1004, in <module>
main()
File "/macqiime/anaconda/bin/pick_otus.py", line 897, in main
otu_prefix=otu_prefix, HALT_EXEC=False)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/pick_otus.py", line 1800, in __call__
HALT_EXEC=HALT_EXEC
File "/macqiime/anaconda/lib/python2.7/site-packages/bfillings/usearch.py", line 1844, in usearch61_ref_cluster
raise ApplicationError('Error running usearch61. Possible causes are '
burrito.util.ApplicationError: Error running usearch61. Possible causes are unsupported version (current supported version is usearch v6.1.544) is installed or improperly formatted input file was provided
however it seems to disappear once I start a new terminal session