|
5 | 5 | </macros> |
6 | 6 | <expand macro="requirements"/> |
7 | 7 | <command detect_errors="exit_code"><![CDATA[ |
| 8 | + if [ -n "\$GALAXY_LOGAN_PROTEIN_SEARCH_FORCE_CPU" ]; then |
| 9 | + FORCE_CPU="--force_cpu"; |
| 10 | + else |
| 11 | + FORCE_CPU=""; |
| 12 | + fi && |
8 | 13 | mkdir results && |
9 | 14 | mkdir -p results/intermediate_files && |
10 | 15 | ln -s '$query_embeddings_npy' results/intermediate_files/query_embeddings.npy && |
11 | 16 | ln -s '$query_embeddings_names' results/intermediate_files/query_embeddings.names.txt && |
12 | 17 | ln -s '$query_sequences' query_sequences.fasta && |
13 | 18 | python /app/search_database.py |
14 | 19 | --database '$database.fields.path' |
| 20 | + --db-type '$database_type' |
15 | 21 | $deep_search |
16 | 22 | --output results/ |
17 | 23 | --query_sequences query_sequences.fasta |
18 | | - --num_threads \${GALAXY_SLOTS:-8} |
19 | | - --memory \${GALAXY_MEMORY_MB:-16000} |
| 24 | + --num_threads "\${GALAXY_SLOTS:-8}" |
| 25 | + --memory "\${GALAXY_MEMORY_MB:-16000}" |
20 | 26 | #if $outfmt: |
21 | 27 | --outfmt '$outfmt' |
22 | 28 | #end if |
| 29 | + \$FORCE_CPU |
23 | 30 | ]]></command> |
24 | 31 | <inputs> |
25 | 32 | <param name="query_sequences" type="data" format="fasta" label="Original query sequences (FASTA)" help="Same FASTA file used in the embedding step, needed for MMseqs2 alignment" /> |
26 | 33 | <param name="query_embeddings_npy" type="data" format="npy" label="Query embeddings (npy)" help="Output from the Embed Query tool" /> |
27 | 34 | <param name="query_embeddings_names" type="data" format="txt" label="Query embedding names" help="Output from the Embed Query tool" /> |
| 35 | + <param name="database_type" type="select" label="Database Type" help="Select the database type"> |
| 36 | + <option value="faiss" selected="true">FAISS</option> |
| 37 | + <option value="usearch">usearch</option> |
| 38 | + </param> |
28 | 39 | <param name="database" type="select" label="FAISS Database" help="Select FAISS database"> |
29 | 40 | <options from_data_table="faiss_protein_databases"> |
30 | 41 | <filter type="sort_by" column="3"/> |
|
43 | 54 | </inputs> |
44 | 55 |
|
45 | 56 | <outputs> |
| 57 | + <data name="diversified_hits" from_work_dir="results/diversified_hits.tsv" format="tsv" label="${tool.name} on ${on_string}: Diversified hits (TSV)"/> |
46 | 58 | <data name="matches_fasta" from_work_dir="results/matches.fasta" format="fasta" label="${tool.name} on ${on_string}: Matched proteins (FASTA)"/> |
47 | 59 | <data name="matches_mmseqs2" from_work_dir="results/matches.mmseqs2" format="tabular" label="${tool.name} on ${on_string}: MMseqs2 alignments"/> |
48 | 60 | <data name="all_results" from_work_dir="results/intermediate_files/all_results.fasta" format="fasta" label="${tool.name} on ${on_string}: All similar proteins (FASTA)"/> |
|
0 commit comments