Mercurial > repos > recetox > matchms_convert
annotate matchms_convert.xml @ 21:9e83636da9d3 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 129488bfd91735fc55fe32edb1079c24eee7b2d3
author | recetox |
---|---|
date | Thu, 14 Nov 2024 15:12:29 +0000 |
parents | c5ed6bfcd806 |
children |
rev | line source |
---|---|
5
c5ed6bfcd806
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit a493624c962d820d962bd81c14aceede5d5be5b4
recetox
parents:
4
diff
changeset
|
1 <tool id="matchms_convert" name="matchms convert" version="@TOOL_VERSION@+galaxy0" profile="21.05"> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
2 <description>convert between mass spectral library formats (.mgf/.msp/.json) using matchms</description> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
3 |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
4 <macros> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
5 <import>macros.xml</import> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
6 <import>help.xml</import> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
7 </macros> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
8 |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
9 <expand macro="creator"/> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
10 |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
11 <edam_operations> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
12 <edam_operation>operation_3434</edam_operation> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
13 </edam_operations> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
14 <expand macro="bio.tools"/> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
15 |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
16 <requirements> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
17 <requirement type="package" version="@TOOL_VERSION@">matchms</requirement> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
18 </requirements> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
19 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
20 <command detect_errors='aggressive'><![CDATA[ |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
21 python ${matchms_python_cli} |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
22 #if $output_file.output_format == "msp": |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
23 #if $output_file.export_style == "ms_lima": |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
24 && |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
25 sh ${ms_lima_output} |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
26 #end if |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
27 #end if |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
28 ]]></command> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
29 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
30 <configfiles> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
31 <configfile name="matchms_python_cli"> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
32 @init_logger@ |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
33 |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
34 from matchms.importing import load_from_msp, load_from_mgf, load_from_json |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
35 from matchms.exporting import save_as_msp, save_as_mgf, save_as_json |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
36 spectra = list(load_from_${spectral_library.ext}("${spectral_library}", ${harmonization_metadata})) |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
37 #if $output_file.output_format == "msp" |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
38 #if $output_file.export_style == "ms_lima" |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
39 save_as_msp(spectra, "${converted_library}", write_peak_comments = ${output_file.export_peak_comments}, style = "riken") |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
40 #else |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
41 save_as_msp(spectra, "${converted_library}", write_peak_comments = ${output_file.export_peak_comments}, style = "${output_file.export_style}") |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
42 #end if |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
43 #else |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
44 save_as_${output_file.output_format}(spectra, "${converted_library}") |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
45 #end if |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
46 </configfile> |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
47 <configfile name="ms_lima_output"> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
48 sed -E "s,[[:space:]]+, ,g" ${converted_library} > ${converted_library}.tmp |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
49 |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
50 grep -rl 'IONMODE' . | xargs sed '/IONMODE/d' ${converted_library}.tmp > ${converted_library}.tmp1 |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
51 grep -rl 'CHARGE' . | xargs sed '/CHARGE/d' ${converted_library}.tmp1 > ${converted_library}.tmp2 |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
52 grep -rl 'COMPOUND_NAME' . | xargs sed 's/COMPOUND_NAME/NAME/g' ${converted_library}.tmp2 > ${converted_library}.tmp3 |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
53 |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
54 mv ${converted_library}.tmp3 ${converted_library} |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
55 rm -f ${converted_library}.tmp1 ${converted_library}.tmp2 ${converted_library}.tmp3 ${converted_library}.tmp |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
56 </configfile> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
57 </configfiles> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
58 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
59 <inputs> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
60 <param label="Spectra file" name="spectral_library" type="data" format="msp,mgf,json" |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
61 help="Mass spectral library file to convert." /> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
62 |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
63 <param label="Harmonization metadata" name="harmonization_metadata" type="boolean" truevalue="True" falsevalue="False" |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
64 checked="true" |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
65 help="Apply metadata harmonization, parsing certain keys required by additional filters or initializing other attributes. The default is True." /> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
66 |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
67 <conditional name="output_file"> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
68 <param label="Spectral library format" name="output_format" type="select" |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
69 help="Output format to convert the spectral library into."> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
70 <option value="msp" selected="true">msp</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
71 <option value="mgf">mgf</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
72 <option value="json">json</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
73 </param> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
74 <when value="msp"> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
75 <param label="Export peak comments" name="export_peak_comments" type="boolean" |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
76 truevalue="True" falsevalue="False" checked="true" |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
77 help="Retain peak comments from individual peaks after the respective mz and intensity pairs when selected." /> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
78 <param label="Export style" name="export_style" type="select" |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
79 help="Converts the keys to a specific style - see [1] for details.. One of ['matchms', 'massbank', 'nist', 'riken', 'gnps']. Default is 'matchms'."> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
80 <option value="matchms" selected="true">matchms</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
81 <option value="massbank">massbank</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
82 <option value="nist">nist</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
83 <option value="riken">riken</option> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
84 <option value="gnps">gnps</option> |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
85 <option value="ms_lima">ms-lima</option> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
86 </param> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
87 </when> |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
88 <when value="mgf" /> |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
89 <when value="json" /> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
90 </conditional> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
91 </inputs> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
92 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
93 <outputs> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
94 <data label="${tool.name} from ${spectral_library.ext} to ${output_file.output_format} on ${on_string}" name="converted_library" format="msp"> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
95 <change_format> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
96 <when input="output_file.output_format" value="mgf" format="mgf" /> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
97 <when input="output_file.output_format" value="json" format="json" /> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
98 </change_format> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
99 </data> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
100 </outputs> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
101 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
102 <tests> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
103 <test> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
104 <param name="spectral_library" value="similarity/RECETOX_Exposome_pesticides_HR_MS_20220323.msp" ftype="msp"/> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
105 <param name="harmonization_metadata" value="False"/> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
106 <param name="output_format" value="mgf"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
107 <output name="converted_library" file="convert/mgf_out.mgf" ftype="mgf"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
108 </test> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
109 <test> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
110 <param name="spectral_library" value="similarity/RECETOX_Exposome_pesticides_HR_MS_20220323.msp" ftype="msp"/> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
111 <param name="harmonization_metadata" value="False"/> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
112 <param name="output_format" value="json"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
113 <output name="converted_library" file="convert/json_out.json" ftype="json"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
114 </test> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
115 <test> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
116 <param name="spectral_library" value="convert/mgf_out.mgf" ftype="mgf"/> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
117 <param name="harmonization_metadata" value="False"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
118 <param name="export_peak_comments" value="False"/> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
119 <param name="output_format" value="msp"/> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
120 <param name="export_style" value="matchms"/> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
121 <output name="converted_library" file="convert/msp_out.msp" ftype="msp"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
122 </test> |
2
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
123 <test> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
124 <param name="spectral_library" value="convert/mgf_out.mgf" ftype="mgf"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
125 <param name="harmonization_metadata" value="True"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
126 <param name="export_peak_comments" value="False"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
127 <param name="output_format" value="msp"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
128 <param name="export_style" value="matchms"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
129 <output name="converted_library" file="convert/harmonized_msp_out.msp" ftype="msp"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
130 </test> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
131 <test> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
132 <param name="spectral_library" value="convert/mgf_out.mgf" ftype="mgf"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
133 <param name="harmonization_metadata" value="True"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
134 <param name="export_peak_comments" value="True"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
135 <param name="output_format" value="msp"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
136 <param name="export_style" value="matchms"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
137 <output name="converted_library" file="convert/harmonized_msp_peakcomments_out.msp" ftype="msp"/> |
49ef4455b0c2
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 41db9f6295985e278fd23b61955bbaecd1f32c32
recetox
parents:
0
diff
changeset
|
138 </test> |
4
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
139 <test> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
140 <param name="spectral_library" value="convert/mgf_out.mgf" ftype="mgf"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
141 <param name="harmonization_metadata" value="True"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
142 <param name="export_peak_comments" value="False"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
143 <param name="output_format" value="msp"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
144 <param name="export_style" value="ms_lima"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
145 <output name="converted_library" file="convert/ms_lima_output.msp" ftype="msp"/> |
d4609fbf8ca3
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b1cc1aebf796f170d93e3dd46ffcdefdc7b8018a
recetox
parents:
3
diff
changeset
|
146 </test> |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
147 </tests> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
148 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
149 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
150 <help><![CDATA[ |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
151 Description |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
152 Mass spectral libraries are often stored in various formats, such as `msp`, `mgf` or `json`. |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
153 This tool can be used to convert from one library format to another. |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
154 Some of the metadata keywords might change during the conversion process, as they are harmonized internally with matchms. |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
155 |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
156 .. rubric:: **Footnotes** |
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
157 .. [1] Export styles - see this `table <https://github.com/matchms/matchms/blob/master/matchms/data/export_key_conversions.csv>`_ for supported key conversions and detailed description of the export styles. |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
158 |
3
b9cc12600553
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit f79a5b51599254817727bc9028b9797ea994cb4e
recetox
parents:
2
diff
changeset
|
159 @HELP_matchms@ |
0
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
160 ]]></help> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
161 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
162 |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
163 <expand macro="citations"/> |
f0ad1b8685fd
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 8989605190816b606fd0bf5be101c6d385a4ce52
recetox
parents:
diff
changeset
|
164 </tool> |