Skip to content

Commit

Permalink
Merge pull request #452 from RECETOX/hechth-patch-7
Browse files Browse the repository at this point in the history
Update matchms_formatter.xml with OPENBLAS_NUM_THREADS=1
  • Loading branch information
hechth authored Dec 1, 2023
2 parents ad60bf8 + cbfe659 commit ad718c9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tools/matchms/matchms_formatter.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="matchms_formatter" name="matchms scores formatter" version="@TOOL_VERSION@+galaxy0" profile="21.09">
<tool id="matchms_formatter" name="matchms scores formatter" version="@TOOL_VERSION@+galaxy1" profile="21.09">
<description>reformat scores object of matchms to long format table</description>

<macros>
Expand All @@ -24,6 +24,7 @@
<environment_variables>
<environment_variable name="MPLCONFIGDIR">\$_GALAXY_JOB_TMP_DIR</environment_variable>
<environment_variable name="XDG_CACHE_HOME">\$_GALAXY_JOB_TMP_DIR</environment_variable>
<environment_variable name="OPENBLAS_NUM_THREADS">1</environment_variable>
</environment_variables>

<configfiles>
Expand Down
8 changes: 6 additions & 2 deletions tools/matchms/matchms_metadata_merge.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="matchms_metadata_merge" name="matchms metadata merge" version="@TOOL_VERSION@+galaxy1" profile="21.09">
<tool id="matchms_metadata_merge" name="matchms metadata merge" version="@TOOL_VERSION@+galaxy2" profile="21.09">
<description>Merge metadata csv into MSP by a specified column</description>

<macros>
Expand All @@ -16,11 +16,15 @@
<requirements>
<requirement type="package" version="@TOOL_VERSION@">matchms</requirement>
</requirements>

<command detect_errors='aggressive'><![CDATA[
python3 '${matchms_python_cli}'
]]></command>

<environment_variables>
<environment_variable name="OPENBLAS_NUM_THREADS">1</environment_variable>
</environment_variables>

<configfiles>
<configfile name="matchms_python_cli">
import pandas
Expand Down
8 changes: 6 additions & 2 deletions tools/matchms/matchms_subsetting.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="matchms_subsetting" name="matchms subsetting" version="@TOOL_VERSION@+galaxy1" profile="21.09">
<tool id="matchms_subsetting" name="matchms subsetting" version="@TOOL_VERSION@+galaxy2" profile="21.09">
<description>Extract spectra from a library given unique metadata identifier</description>

<macros>
Expand All @@ -21,6 +21,10 @@
python3 '${matchms_python_cli}'
]]></command>

<environment_variables>
<environment_variable name="OPENBLAS_NUM_THREADS">1</environment_variable>
</environment_variables>

<configfiles>
<configfile name="matchms_python_cli">
import pandas
Expand Down Expand Up @@ -104,4 +108,4 @@ matchms.exporting.save_as_msp(filtered_spectra.tolist(), '${output}')
<citations>
<citation type="doi">https://doi.org/10.5281/zenodo.8083373</citation>
</citations>
</tool>
</tool>
8 changes: 7 additions & 1 deletion tools/rem_complex/rem_complex.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="rem_complex" name="Remove coordination complexes" version="@TOOL_VERSION@+galaxy0" profile="21.09">
<tool id="rem_complex" name="Remove coordination complexes" version="@TOOL_VERSION@+galaxy1" profile="21.09">
<description>Remove molecular coordination complexes from a list of structure representations</description>
<macros>
<import>macros.xml</import>
Expand All @@ -7,12 +7,18 @@
<requirement type="package" version="1.5.3">pandas</requirement>
<requirement type="package" version="3.1.1">openbabel</requirement>
</requirements>

<command detect_errors="exit_code"><![CDATA[
python $__tool_directory__/rem_complex.py
-i '${input}'
-iformat '${input.ext}'
-o '${output}'
]]></command>

<environment_variables>
<environment_variable name="OPENBLAS_NUM_THREADS">1</environment_variable>
</environment_variables>

<inputs>
<param name="input" format="inchi,smi,csv" type="data" help="Accepted input formats: CSV, SMI, and InChI."/>
</inputs>
Expand Down

0 comments on commit ad718c9

Please sign in to comment.