annotate parmconv.xml @ 9:6d0677a148fe draft default tip

"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit def3e8d4a983ab47ceedde678f585b54c79bb8d1"
author chemteam
date Thu, 27 Jan 2022 17:17:20 +0000
parents 5a97cb53a456
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
da2252f1ccab "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 4a3f58846bcad26240ccdc6b76e8f4d2cbe63631"
chemteam
parents: 0
diff changeset
1 <tool id="parmconv" name="Convert Parameters" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
2 <description>to AMBER prmtop in preparation for MMGBSA/MMPBSA</description>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
3 <macros>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
4 <import>macros.xml</import>
4
267a70416daf "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit fe0c452249565047df8ac0a6f5956fe8ea0cd60d"
chemteam
parents: 3
diff changeset
5 <token name="@GALAXY_VERSION@">0</token>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
6 </macros>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
7 <expand macro="requirements">
7
5a97cb53a456 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 27e76b3f6ed12955fd60609aad4043bc9c60cba2"
chemteam
parents: 4
diff changeset
8 <requirement type="package" version="3.4.3">parmed</requirement>
5a97cb53a456 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 27e76b3f6ed12955fd60609aad4043bc9c60cba2"
chemteam
parents: 4
diff changeset
9 <requirement type="package" version="2021.3">gromacs</requirement>
4
267a70416daf "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit fe0c452249565047df8ac0a6f5956fe8ea0cd60d"
chemteam
parents: 3
diff changeset
10 <requirement type="package" version="3.0.1">jinja2</requirement>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
11 </expand>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
12 <command detect_errors="exit_code">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
13 <![CDATA[
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
14 #if $param_inputs.fmt == "GROMACS":
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
15 python '$__tool_directory__/parmconv.py'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
16 --istr '$param_inputs.str_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
17 --itop '$param_inputs.top_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
18 $param_inputs.modbehaviour.removedihe
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
19 $param_inputs.modbehaviour.removebox
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
20 --iradii '$param_inputs.modbehaviour.radii'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
21 --istripmask '$stripmask_ligand'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
22 --o_prmtop '$prmtop_ligand'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
23 2>&1 &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
24 python '$__tool_directory__/parmconv.py'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
25 --istr '$param_inputs.str_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
26 --itop '$param_inputs.top_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
27 $param_inputs.modbehaviour.removedihe
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
28 $param_inputs.modbehaviour.removebox
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
29 --iradii '$param_inputs.modbehaviour.radii'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
30 --istripmask '$stripmask_receptor'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
31 --o_prmtop '$prmtop_receptor'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
32 2>&1 &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
33 python '$__tool_directory__/parmconv.py'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
34 --istr '$param_inputs.str_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
35 --itop '$param_inputs.top_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
36 $param_inputs.modbehaviour.removedihe
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
37 $param_inputs.modbehaviour.removebox
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
38 --iradii '$param_inputs.modbehaviour.radii'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
39 --istripmask '$stripmask_complex'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
40 --o_prmtop '$prmtop_complex'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
41 2>&1 &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
42 python '$__tool_directory__/parmconv.py'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
43 --istr '$param_inputs.str_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
44 --itop '$param_inputs.top_in'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
45 $param_inputs.modbehaviour.removedihe
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
46 $param_inputs.modbehaviour.removebox
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
47 --iradii '$param_inputs.modbehaviour.radii'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
48 --istripmask '$stripmask_solvatedcomplex'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
49 --o_prmtop '$prmtop_solvatedcomplex'
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
50 2>&1
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
51 #else
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
52 python '$templating_script' '$inputs' &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
53 PATH_TO_PARMED=\$(dirname `which parmed`) &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
54 export AMBERHOME=\$(dirname \$PATH_TO_PARMED) &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
55 export GMXDATA=\$AMBERHOME/share/gromacs/top/ &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
56 parmed -i ligand.script -O &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
57 parmed -i receptor.script -O &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
58 parmed -i complex.script -O &&
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
59 parmed -i solvatedcomplex.script -O
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
60 #end if
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
61 ]]>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
62 </command>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
63 <configfiles>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
64 <inputs name="inputs"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
65 <configfile name="templating_script">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
66 <![CDATA[
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
67
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
68 import os
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
69 import sys
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
70 import json
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
71
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
72 from jinja2 import Environment, FileSystemLoader
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
73 input_json_path = sys.argv[1]
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
74 params = json.load(open(input_json_path, "r"))
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
75 currentpath = "$__tool_directory__" # should work generally
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
76 template_environment = Environment(loader=FileSystemLoader(currentpath),lstrip_blocks=True, trim_blocks=True)
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
77 template = template_environment.get_template('template_parmconv.j2')
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
78 params['fmt'] = '$param_inputs.fmt'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
79 #if str($param_inputs.fmt) == 'AMBER':
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
80 params["top_in"] = '$param_inputs.top_in'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
81 #else:
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
82 params["top_in"] = '$param_inputs.top_in'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
83 params["str_in"] = '$param_inputs.str_in'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
84 #end if
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
85 params['prmtop_ligand'] = '$prmtop_ligand'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
86 params['prmtop_receptor'] = '$prmtop_receptor'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
87 params['prmtop_complex'] = '$prmtop_complex'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
88 params['prmtop_solvatedcomplex'] = '$prmtop_solvatedcomplex'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
89 print(params)
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
90
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
91
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
92 def unescape(cond_text):
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
93 """
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
94 # Unescape if input has been escaped - credit @bgruening //github.com/bgruening/galaxytools.git get_online_data.py
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
95 """
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
96 mapped_chars = { '>' :'__gt__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
97 '<' :'__lt__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
98 "'" :'__sq__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
99 '"' :'__dq__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
100 '[' :'__ob__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
101 ']' :'__cb__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
102 '{' :'__oc__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
103 '}' :'__cc__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
104 '@' : '__at__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
105 '\n' : '__cn__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
106 '\r' : '__cr__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
107 '\t' : '__tc__',
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
108 '&' : '__and__'
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
109 }
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
110 for key, value in mapped_chars.items():
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
111 cond_text = cond_text.replace( value, key )
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
112 return cond_text
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
113
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
114 def run_template(params=params, system="ligand"):
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
115 """
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
116 # Render template on a selected system using a local parameter copy
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
117 """
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
118 localparams=params.copy() # shallow copy ok for simple variables
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
119 localparams['stripmask']=unescape(localparams['stripmask_'+system])
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
120 localparams['prmtop_out']=localparams['prmtop_'+system]
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
121 print(localparams)
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
122 with open(system+'.script','w+') as f:
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
123 f.write(template.render(localparams))
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
124
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
125 systems = ['ligand', 'receptor', 'complex', 'solvatedcomplex']
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
126 for system in systems:
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
127 run_template(system=system)
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
128
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
129 ]]>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
130 </configfile>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
131 </configfiles>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
132 <inputs>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
133 <conditional name="param_inputs">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
134 <param name="fmt" type="select" label="Input format">
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
135 <option selected="True" value="AMBER">AMBER</option>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
136 <option value="GROMACS">GROMACS</option>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
137 </param>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
138 <when value="AMBER">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
139 <param name="top_in" type="data" label="Input topology (prmtop) file" format="txt"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
140 </when>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
141 <when value="GROMACS">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
142 <param name="top_in" type="data" label="Input topology (top) file" format="top"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
143 <param name="str_in" type="data" label="Input structure (gro) file" format="gro"/>
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
144 <section name="modbehaviour" title="Modify behaviour" expanded="false">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
145 <param name="removedihe" type="boolean" truevalue="--removedihe" falsevalue="" checked="false" label="Remove all zero period dihedrals" help="This will remove zero period dihedrals from the generated topology"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
146 <param name="removebox" type="boolean" truevalue="--removebox" falsevalue="" checked="false" label="Remove periodic box information" help="This will remove periodic information from the generated topology"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
147 <param name="radii" type="select" label="Radii to use" help="Select the radii to use. Default is mbondi.">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
148 <option selected="True" value="mbondi">mbondi</option>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
149 <option value="mbondi2">mbondi2</option>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
150 <option value="mbondi3">mbondi3</option>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
151 <option value="bondi">bondi</option>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
152 <option value="amber6">amber6</option>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
153 </param>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
154 </section>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
155 </when>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
156 </conditional>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
157 <param name="stripmask_ligand" type="text" label="Ligand selection" value="!:UNL" help="Define a valid AMBER stripmask that will select only the ligand">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
158 <sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
159 <valid initial="string.printable">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
160 <add value="&amp;"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
161 </valid>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
162 </sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
163 </param>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
164 <param name="stripmask_receptor" type="text" label="Receptor selection" value=":NA,SOL,UNL" help="Define a valid AMBER stripmask that will select only the receptor">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
165 <sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
166 <valid initial="string.printable">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
167 <add value="&amp;"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
168 </valid>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
169 </sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
170 </param>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
171 <param name="stripmask_complex" type="text" label="Complex selection" value=":NA,SOL" help="Define a valid AMBER stripmask that will select the complex (receptor with ligand)">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
172 <sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
173 <valid initial="string.printable">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
174 <add value="&amp;"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
175 </valid>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
176 </sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
177 </param>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
178 <param name="stripmask_solvatedcomplex" type="text" label="Solvated complex selection" help="Define a valid AMBER stripmask that will select the solvated complex (includes water and ions)">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
179 <sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
180 <valid initial="string.printable">
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
181 <add value="&amp;"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
182 </valid>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
183 </sanitizer>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
184 </param>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
185 </inputs>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
186 <outputs>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
187 <data format="txt" name="prmtop_ligand" label="ligand prmtop"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
188 <data format="txt" name="prmtop_receptor" label="receptor prmtop"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
189 <data format="txt" name="prmtop_complex" label="complex prmtop"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
190 <data format="txt" name="prmtop_solvatedcomplex" label="solvated complex prmtop"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
191 </outputs>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
192 <tests>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
193 <test>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
194 <!--example in this test is not solvated but sufficient -->
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
195 <param name="fmt" value="AMBER"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
196 <conditional name="param_inputs">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
197 <param name="top_in" value="complex.prmtop"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
198 </conditional>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
199 <param name="stripmask_ligand" value="!:RAL"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
200 <param name="stripmask_receptor" value=":NA,CL,SOL,WAT,RAL"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
201 <param name="stripmask_complex" value=":NA,CL,SOL,WAT"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
202 <output name="prmtop_ligand">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
203 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
204 <has_text text=" 61 15"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
205 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
206 <has_text text="RAL"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
207 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
208 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
209 <output name="prmtop_receptor">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
210 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
211 <has_text text=" 3880 15"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
212 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
213 <has_text text="ALA LEU"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
214 <not_has_text text="RAL "/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
215 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
216 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
217 <output name="prmtop_complex">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
218 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
219 <has_text text=" 3941 15"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
220 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
221 <has_text text="ALA LEU"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
222 <has_text text="RAL"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
223 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
224 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
225 </test>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
226 <test>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
227 <!--example in this test is from @sbrays' gromacs tests. It has no ligand but is sufficient and will not take extra space in the repo! -->
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
228 <param name="fmt" value="GROMACS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
229 <conditional name="param_inputs">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
230 <param name="top_in" value="topol_solv.top"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
231 <param name="str_in" value="solv_ions.gro"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
232 </conditional>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
233 <!-- pretending CL is a ligand -->
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
234 <param name="stripmask_ligand" value="!:CL"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
235 <param name="stripmask_receptor" value=":NA,CL,SOL,WAT"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
236 <!-- test a fairly complex selection. All backbone oxygens in residues 1-500 but not in water, lysine or arginine -->
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
237 <param name="stripmask_solvatedcomplex" value=":1-500@O&amp;!(:WAT|:LYS,ARG)"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
238 <output name="prmtop_ligand">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
239 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
240 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
241 <has_text text="CL"/>
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
242 <has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
243 <has_text text="BOX_DIMENSIONS"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
244 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
245 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
246 <output name="prmtop_receptor">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
247 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
248 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
249 <has_text text="LYS VAL PHE "/>
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
250 <has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
251 <has_text text="BOX_DIMENSIONS"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
252 <not_has_text text="CL "/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
253 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
254 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
255 <output name="prmtop_solvatedcomplex">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
256 <assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
257 <has_text text="%FLAG MASS"/>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
258 <has_text text="LYS VAL PHE"/>
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
259 <has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
260 <has_text text="BOX_DIMENSIONS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
261 </assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
262 </output>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
263 </test>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
264 <test>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
265 <!-- test with removing dihedrals and periodicity -->
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
266 <param name="fmt" value="GROMACS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
267 <conditional name="param_inputs">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
268 <param name="top_in" value="topol_solv.top"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
269 <param name="str_in" value="solv_ions.gro"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
270 </conditional>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
271 <!-- dihedrals and periodicity -->
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
272 <param name="removedihe" value="--removedihe"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
273 <param name="removebox" value="--removebox"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
274 <!-- pretending CL is a ligand -->
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
275 <param name="stripmask_ligand" value="!:CL"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
276 <param name="stripmask_receptor" value=":NA,CL,SOL,WAT"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
277 <!-- test a fairly complex selection. All backbone oxygens in residues 1-500 but not in water, lysine or arginine -->
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
278 <param name="stripmask_solvatedcomplex" value=":1-500@O&amp;!(:WAT|:LYS,ARG)"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
279 <output name="prmtop_ligand">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
280 <assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
281 <has_text text="%FLAG MASS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
282 <has_text text="CL"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
283 <not_has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
284 <not_has_text text="BOX_DIMENSIONS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
285 </assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
286 </output>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
287 <output name="prmtop_receptor">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
288 <assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
289 <has_text text="%FLAG MASS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
290 <has_text text="LYS VAL PHE "/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
291 <not_has_text text="CL "/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
292 <not_has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
293 <not_has_text text="BOX_DIMENSIONS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
294 </assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
295 </output>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
296 <output name="prmtop_solvatedcomplex">
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
297 <assert_contents>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
298 <has_text text="%FLAG MASS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
299 <has_text text="LYS VAL PHE"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
300 <not_has_text text="SOLVENT_POINTERS"/>
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
301 <not_has_text text="BOX_DIMENSIONS"/>
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
302 </assert_contents>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
303 </output>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
304 </test>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
305 </tests>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
306 <help>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
307 <![CDATA[
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
308 .. class:: infomark
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
309
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
310 **What it does**
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
311
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
312 This tool converts parameter and topology files that represent a solvated complex into parameter files for the ligand, receptor, complex and solvated complex in AMBER prmtop format. These files are needed for MMGBSA/MMPBSA calculations.
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
313
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
314 .. class:: infomark
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
315
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
316 **How it works**
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
317
3
2b82fc7bec67 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit cc13bd32ef2d80b01dc197a3ca120a4ff9f0dacc"
chemteam
parents: 1
diff changeset
318 AmberTools' ParmEd is used to strip unneeded atoms and save the parameter files. The stripmasks are defined by the user.
0
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
319
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
320 .. class:: infomark
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
321
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
322 **Outputs created**
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
323
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
324 prmtop files for the ligand, receptor, complex and solvated complex.
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
325
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
326 .. class:: infomark
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
327
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
328 **User guide and documentation**
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
329
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
330 - The `AmberTools Manual`_
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
331 - The `Parmed Documentation`_
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
332
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
333
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
334 .. _`AmberTools Manual`: https://ambermd.org/doc12/Amber18.pdf
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
335 .. _`Parmed Documentation`: https://parmed.github.io/ParmEd/html/index.html
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
336
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
337
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
338 ]]>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
339 </help>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
340 <expand macro="citations">
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
341 <citation type="bibtex">@misc{parmed_2020, author = {ParmEd}, title = {ParmEd/ParmEd}, url={https://github.com/ParmEd/ParmEd}, abstract = {Parameter/topology editor and molecular simulator. Contribute to ParmEd/ParmEd development by creating an
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
342 account on GitHub.}, urldate = {2020-04-03}, publisher = {GitHub}, year = {2020}, month = mar, }</citation>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
343 </expand>
6c6cecf51bd0 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 3664d8011044773cc3250ce15d712d97b0b91373"
chemteam
parents:
diff changeset
344 </tool>