annotate qcxms_prod_run.xml @ 0:bf836aaeca19 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
author recetox
date Thu, 22 Feb 2024 08:41:32 +0000
parents
children bc099c440016
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
1 <tool id="qcxms_production_run" name="QCxMS production run" version="@TOOL_VERSION@+galaxy0" profile="21.05">
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
2 <description>Production run to obtain a QCxMS simulated mass spectrum</description>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
3
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
4 <macros>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
5 <import>macros.xml</import>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
6 </macros>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
7 <expand macro="edam"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
8 <expand macro="creator"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
9 <expand macro="requirements"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
10
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
12 python3 '${create_folder_structure}' &&
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
13 find TMPQCXMS/*/ -type d | xargs -I {} -P ${GALAXY_SLOTS} sh -c 'cd {} && /qcxms_bin/qcxms --prod >> $log' &&
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
14 /qcxms_bin/getres &&
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
15 /plotms_bin/PlotMS.v.6.2.0/plotms &&
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
16 sh ${__tool_directory__}/msp_out.sh
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
17 ]]></command>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
18
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
19 <environment_variables>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
20 <environment_variable name="OMP_NUM_THREADS">1,2,1</environment_variable>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
21 </environment_variables>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
22
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
23 <configfiles>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
24 <configfile name="create_folder_structure">
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
25 import os
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
26 import shutil
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
27
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
28 #set in_collection = str("', '").join([str($f) for $f in $in_files])
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
29 #set start_collection = str("', '").join([str($f) for $f in $start_files])
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
30 #set xyz_collection = str("', '").join([str($f) for $f in $xyz_files])
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
31
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
32 #set names = str("', '").join([str($f.name) for $f in $xyz_files])
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
33 names = '$names'
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
34 folder_names = [x.split("_")[0] for x in names]
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
35
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
36 in_collection = '$in_collection'
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
37 start_collection = '$start_collection'
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
38 xyz_collection = '$xyz_collection'
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
39
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
40 # Create a new output folder to store the result
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
41 output_path = 'TMPQCXMS'
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
42 os.makedirs(output_path, exist_ok=True)
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
43
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
44 for folder_name, in_file, start_file, xyz_file in zip(folder_names, in_collection, start_collection, xyz_collection):
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
45 new_folder_path = os.path.join(output_path, folder_name)
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
46 os.makedirs(new_folder_path, exist_ok=True)
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
47
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
48 shutil.copy2(os.path.join(os.path.dirname(in_collection[0]), in_file), os.path.join(new_folder_path, 'qcxms.in'))
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
49 shutil.copy2(os.path.join(os.path.dirname(start_collection[0]), start_file), os.path.join(new_folder_path, 'qcxms.start'))
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
50 shutil.copy2(os.path.join(os.path.dirname(xyz_collection[0]), xyz_file), os.path.join(new_folder_path, 'start.xyz'))
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
51
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
52 </configfile>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
53 </configfiles>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
54
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
55 <inputs>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
56 <param type="data_collection" collection_type="list" name="in_files" label="in files [.in]" format="in,txt,text"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
57 <param type="data_collection" collection_type="list" name="start_files" label="start files [.start]" format="start,txt,text"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
58 <param type="data_collection" collection_type="list" name="xyz_files" label="xyz files [.xyz]" format="xyz,txt,text"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
59 <param name="store_extended_output" type="boolean" value="false" label="Store additional outputs" help="Output the logfile."/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
60 </inputs>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
61
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
62 <outputs>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
63 <data name="msp_output" format="msp" from_work_dir="simulated_spectra.msp" label="simulated_spectra.msp generated by ${tool.name} on ${on_string}"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
64 <data name="log" format="txt" label="logfile of ${tool.name} on ${on_string}">
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
65 <filter>store_extended_output</filter>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
66 </data>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
67 </outputs>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
68
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
69 <tests>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
70 <test expect_failure="true"/>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
71 </tests>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
72
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
73 <help><![CDATA[
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
74 The QCxMS production run tool is used to simulate mass spectra for a given molecule using the QCxMS (Quantum Chemistry by Mass Spectrometry) method.
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
75 This tool generates simulated mass spectra based on the equilibrium structure of a molecule and allows you to perform QCxMS production runs.
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
76 For detail information visit the documentation at https://xtb-docs.readthedocs.io/en/latest/qcxms_doc/qcxms_run.html#excecuting-the-production-runs
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
77 ]]>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
78 </help>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
79
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
80 <citations>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
81 <citation type="doi">10.1002/anie.201300158</citation>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
82 <citation type="doi">10.1039/C4OB01668H</citation>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
83 <citation type="doi">10.1021/jp5096618</citation>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
84 <citation type="doi">10.1255/ejms.1313</citation>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
85 <citation type="doi">10.1021/acs.jpca.6b02907</citation>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
86 </citations>
bf836aaeca19 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
recetox
parents:
diff changeset
87 </tool>