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