Skip to content

Commit 91e7d8d

Browse files
committed
Update logan search_proteins to 2.10.1
1 parent 6ba31ee commit 91e7d8d

5 files changed

Lines changed: 22 additions & 5 deletions

File tree

tools/logan_proteins/macros.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<macros>
2-
<token name="@TOOL_VERSION@">1.2.2</token>
2+
<token name="@TOOL_VERSION@">2.10.1</token>
33
<token name="@VERSION_SUFFIX@">0</token>
44
<token name="@PROFILE@">25.0</token>
55
<xml name="requirements">
66
<requirements>
7-
<container type="docker">quay.io/bgruening/logan-protein:1.2.2</container>
7+
<container type="docker">quay.io/bgruening/logan-protein:@TOOL_VERSION@</container>
88
</requirements>
99
</xml>
1010
<xml name="citations">

tools/logan_proteins/search_database.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,37 @@
55
</macros>
66
<expand macro="requirements"/>
77
<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 &&
813
mkdir results &&
914
mkdir -p results/intermediate_files &&
1015
ln -s '$query_embeddings_npy' results/intermediate_files/query_embeddings.npy &&
1116
ln -s '$query_embeddings_names' results/intermediate_files/query_embeddings.names.txt &&
1217
ln -s '$query_sequences' query_sequences.fasta &&
1318
python /app/search_database.py
1419
--database '$database.fields.path'
20+
--db-type '$database_type'
1521
$deep_search
1622
--output results/
1723
--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}"
2026
#if $outfmt:
2127
--outfmt '$outfmt'
2228
#end if
29+
\$FORCE_CPU
2330
]]></command>
2431
<inputs>
2532
<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" />
2633
<param name="query_embeddings_npy" type="data" format="npy" label="Query embeddings (npy)" help="Output from the Embed Query tool" />
2734
<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>
2839
<param name="database" type="select" label="FAISS Database" help="Select FAISS database">
2940
<options from_data_table="faiss_protein_databases">
3041
<filter type="sort_by" column="3"/>
@@ -43,6 +54,7 @@
4354
</inputs>
4455

4556
<outputs>
57+
<data name="diversified_hits" from_work_dir="results/diversified_hits.tsv" format="tsv" label="${tool.name} on ${on_string}: Diversified hits (TSV)"/>
4658
<data name="matches_fasta" from_work_dir="results/matches.fasta" format="fasta" label="${tool.name} on ${on_string}: Matched proteins (FASTA)"/>
4759
<data name="matches_mmseqs2" from_work_dir="results/matches.mmseqs2" format="tabular" label="${tool.name} on ${on_string}: MMseqs2 alignments"/>
4860
<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)"/>

tools/logan_proteins/test-data/faiss_database.loc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# - db-name
44
# - version
55
# - /path/to/data
6-
faiss-demo-db-20260203 FAISS Test Database 1.2.2 ${__HERE__}/test-db/
6+
faiss-demo-db-20260203 FAISS Test Database 1.2.2 ${__HERE__}/test-db/
7+
faiss-demo-db-20260203 FAISS Test Database 2.10.1 ${__HERE__}/test-db/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
>centroid_0
2+
MKTAYIAKQR
3+
>centroid_1
4+
MSEQNNTEMT
16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)