annotate matchms_formatter.xml @ 11:803a430e9f0b draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f7bab98744e338dcdbdc9cf6f9de287632c76ea2
author recetox
date Tue, 18 Oct 2022 13:20:25 +0000
parents 5c0e5344edf3
children 2f0545b02020
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
4ca9807c56e6 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 38a5028a7abe99794086e9b1374ab4bb8bfa68de
recetox
parents: 6
diff changeset
1 <tool id="matchms_formatter" name="matchms output formatter" version="0.1.4" python_template_version="3.5">
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
2 <description>reformat output tables of matchms</description>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
3
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
4 <macros>
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
5 <import>macros.xml</import>
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
6 </macros>
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
7 <expand macro="creator"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
8
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
9 <requirements>
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
10 <requirement type="package" version="@TOOL_VERSION@">matchms</requirement>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
11 <requirement type="package" version="1.1.4">pandas</requirement>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
12 <requirement type="package" version="8.0.1">click</requirement>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
13 </requirements>
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
14
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
15 <environment_variables>
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
16 <environment_variable name="MPLCONFIGDIR">\$_GALAXY_JOB_TMP_DIR</environment_variable>
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
17 <environment_variable name="XDG_CACHE_HOME">\$_GALAXY_JOB_TMP_DIR</environment_variable>
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
18 </environment_variables>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
19
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
20 <command detect_errors="aggressive"><![CDATA[
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
21 sh ${matchms_formatter_cli}
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
22 ]]></command>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
23
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
24 <configfiles>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
25 <configfile name="matchms_formatter_cli">
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
26 python3 ${__tool_directory__}/formatter.py \
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
27 --sf "$scores" \
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
28 --o "$output" \
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
29 $method.selection \
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
30 #if $method.selection == "get-thresholded-data"
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
31 --st $method.scores_threshold \
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
32 --mt $method.matches_threshold
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
33 #else
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
34 --k $method.k
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
35 #end if
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
36 </configfile>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
37 </configfiles>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
38
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
39 <inputs>
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
40 <param label="Scores object" name="scores" type="data" format="json" help="MatchMS Scores json file." />
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
41
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
42 <conditional name="method">
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
43 <param name="selection" type="select" label="Formatting method">
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
44 <option value="get-thresholded-data" selected="true">Thresholding</option>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
45 <option value="get-top-k-data">Top K Matches</option>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
46 </param>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
47 <when value="get-thresholded-data">
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
48 <param label="Scores Threshold" name="scores_threshold" type="float" value="0.6" min="0.0" max="1.0"
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
49 help="Threshold for matching score."/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
50 <param label="Matches Threshold" name="matches_threshold" type="integer" value="3" min="0"
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
51 help="Threshold for number of matches ions."/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
52 </when>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
53 <when value="get-top-k-data">
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
54 <param label="Top K" name="k" type="integer" value="5" help="K for top k match selection."/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
55 </when>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
56 </conditional>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
57
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
58 </inputs>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
59 <outputs>
9
4ca9807c56e6 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 38a5028a7abe99794086e9b1374ab4bb8bfa68de
recetox
parents: 6
diff changeset
60 <data label="${tool.name} (${method.selection}) on ${on_string}" name="output" format="tsv"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
61 </outputs>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
62
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
63 <tests>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
64 <test>
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
65 <param name="scores" value="similarity/scores_test2_out.json" ftype="json"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
66 <param name="selection" value="get-thresholded-data"/>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
67 <param name="scores_threshold" value="0.4"/>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
68 <param name="matches_threshold" value="2"/>
6
97c61213a872 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 4d2ac914c951166e386a94d8ebb8cb1becfac122"
recetox
parents: 4
diff changeset
69 <output name="output" file="formatter/test2_threshold_formatting.tsv" ftype="tsv"
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
70 checksum="md5$db18b3f3dd5d8dea4db0fc1d59d3db3b"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
71 </test>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
72 <test>
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
73 <param name="scores" value="similarity/scores_test2_out.json" ftype="json"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
74 <param name="selection" value="get-top-k-data"/>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
75 <param name="k" value="3"/>
3
e2a1dbeba196 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 9bc547872c98a9c13c561d15e8990fe82bdc0e72"
recetox
parents: 2
diff changeset
76 <output name="output" file="formatter/test2_topk_formatting.tsv" ftype="tsv"
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
77 checksum="md5$ff827ec7413acac3d2394330935ace99"/>
0
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
78 </test>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
79 </tests>
0a08bed94964 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 85f60c94ccb3cb7706694cbb7ff6d59dcb41c0c9"
recetox
parents:
diff changeset
80
4
da32f57b4f88 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5b13d8883fe18bee3aa992c2e34aa1fa79419442"
recetox
parents: 3
diff changeset
81 <help><![CDATA[
10
5c0e5344edf3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5661cf2406e0616d7b2f4bee1b57ec43716088de
recetox
parents: 9
diff changeset
82 @HELP_formatter@
4
da32f57b4f88 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 5b13d8883fe18bee3aa992c2e34aa1fa79419442"
recetox
parents: 3
diff changeset
83 ]]></help>
2
52abfe76c25b "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 46191b39a711f92418f1d412065bbb3648dbf42d"
recetox
parents: 1
diff changeset
84 </tool>