annotate qcxms_getres.xml @ 1:af8839475b43 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 55c0154b9b6d7f97eefebf92d43bd0c5442247a6
author recetox
date Tue, 21 May 2024 11:48:35 +0000
parents ef51824f6d04
children 53dce0e49af7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
af8839475b43 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 55c0154b9b6d7f97eefebf92d43bd0c5442247a6
recetox
parents: 0
diff changeset
1 <tool id="qcxms_getres" name="QCxMS get results" version="@TOOL_VERSION@+galaxy1" profile="22.09">
0
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
2 <description>Get result of the Production run to obtain a QCxMS simulated mass spectrum</description>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
3
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
4 <macros>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
5 <import>macros.xml</import>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
6 </macros>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
7 <expand macro="edam"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
8 <expand macro="creator"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
9 <expand macro="requirements"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
10
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
12 python3 '${get_res}' &&
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
13 /plotms_bin/PlotMS.v.6.2.0/plotms &&
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
14 sh ${__tool_directory__}/msp_out.sh
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
15 ]]></command>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
16
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
17 <configfiles>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
18 <configfile name="get_res">
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
19 #set res_collection = str("', '").join([str($f) for $f in $res_files])
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
20
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
21 with open('$mol', 'r') as file:
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
22 lines = file.readlines()
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
23 molname = lines[1]
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
24
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
25 with open('molname.txt', 'w') as file:
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
26 file.write(molname)
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
27
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
28 input_files = '$res_collection'
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
29 output_file = 'tmpqcxms.res'
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
30
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
31 with open(output_file, 'w') as output:
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
32 for file_path in input_files:
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
33 with open(file_path, 'r') as input_file:
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
34 output.write(input_file.read())
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
35
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
36 </configfile>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
37 </configfiles>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
38
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
39 <inputs>
1
af8839475b43 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 55c0154b9b6d7f97eefebf92d43bd0c5442247a6
recetox
parents: 0
diff changeset
40 <param type="data" name="mol" label="Molecule 3D structure [.xyz]" format="xyz" />
0
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
41 <param type="data_collection" collection_type="list" name="res_files" label="res files [.res]" format="txt,text"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
42 </inputs>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
43
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
44 <outputs>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
45 <data name="msp_output" format="msp" from_work_dir="simulated_spectra.msp" label="simulated_spectra.msp generated by ${tool.name} on ${on_string}"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
46 </outputs>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
47
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
48 <tests>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
49 <test>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
50 <param name="mol" value="mol.xyz" ftype="xyz"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
51 <param name="res_files">
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
52 <collection type="list">
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
53 <element name="res_files_1" value="res_files/TMP.1_qcxms.txt" />
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
54 <element name="res_files_2" value="res_files/TMP.2_qcxms.txt" />
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
55 <element name="res_files_3" value="res_files/TMP.3_qcxms.txt" />
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
56 </collection>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
57 </param>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
58 <output name="msp_output" file="output.msp" ftype="msp"/>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
59 </test>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
60 </tests>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
61
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
62 <help><![CDATA[
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
63 The QCxMS getres tool is used to simulate mass spectra for a given molecule.
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
64 This tool take res and molecules files and generates simulated mass spectra.
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
65 ]]>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
66 </help>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
67
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
68 <citations>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
69 <citation type="doi">10.1002/anie.201300158</citation>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
70 <citation type="doi">10.1039/C4OB01668H</citation>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
71 <citation type="doi">10.1021/jp5096618</citation>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
72 <citation type="doi">10.1255/ejms.1313</citation>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
73 <citation type="doi">10.1021/acs.jpca.6b02907</citation>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
74 </citations>
ef51824f6d04 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 4018b84dd3c735d16f488094f001a19e634fe1a2
recetox
parents:
diff changeset
75 </tool>