annotate traj_select_and_merge.xml @ 0:f4a1e92ca3d2 draft

"planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
author chemteam
date Thu, 11 Mar 2021 19:54:32 +0000
parents
children 8740338fdff4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
1 <tool id="traj_selections_and_merge" name="Trajectory select and merge" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
2 <description>- select specific molecules and merge multiple trajectories.</description>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
3 <macros>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
4 <import>macros.xml</import>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
5 <token name="@GALAXY_VERSION@">0</token>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
6 </macros>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
7 <expand macro="requirements" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
9 ln -s '$strin' str.${strin.ext} &&
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
10 #for $trj in $trajs:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
11 ln -s '$trj' `basename '$trj'`.${select.traj_fmt} &&
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
12 #end for
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
13 python '$mdtraj_script'
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
14 --istr str.${strin.ext}
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
15 --itraj *.${select.traj_fmt}
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
16 --isele '$selection'
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
17 --o_str output.${strin.ext}
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
18 --o_trj output.${select.traj_fmt} &&
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
19 mv output.${strin.ext} '$outputstr' &&
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
20 mv output.${select.traj_fmt} '$outputtraj'
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
21 ]]></command>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
22 <configfiles>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
23 <configfile name="mdtraj_script"><![CDATA[
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
24 import mdtraj as md
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
25 import sys
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
26 import argparse
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
27
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
28 def parse_command_line(argv):
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
29 parser = argparse.ArgumentParser()
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
30 parser.add_argument('--istr', help='input str')
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
31 parser.add_argument('--itraj', nargs='+', help='input traj')
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
32 parser.add_argument('--isele', help='selection')
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
33 parser.add_argument('--o_str', help='MDA Ramachandran plot')
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
34 parser.add_argument('--o_trj', help='Seaborn Ramachandran plot')
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
35 return parser.parse_args()
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
36
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
37 args = parse_command_line(sys.argv)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
38 list_of_traj = []
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
39 if args.itraj is not None:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
40 list_of_traj.extend(args.itraj)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
41
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
42 try:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
43 traj = md.load(list_of_traj, top=args.istr)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
44 except Exception as einstance:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
45 print(type(einstance))
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
46 print(einstance.args)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
47 print(einstance)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
48 topology = traj.topology
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
49 try:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
50 atoms_to_keep = topology.select(str(args.isele))
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
51 except Exception as einstance:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
52 print("Error: Check the selection is valid for the dataset chosen")
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
53 print(type(einstance))
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
54 print(einstance.args)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
55 print(einstance)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
56 traj.restrict_atoms(atoms_to_keep)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
57 newstruct = traj.slice(1)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
58 newstruct.save(args.o_str)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
59 traj.save(args.o_trj)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
60 ]]></configfile>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
61 </configfiles>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
62 <inputs>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
63 <param format="pdb,gro" name="strin" type="data" label="PDB/GRO input" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
64 <conditional name="select">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
65 <param name="traj_fmt" type="select" label="Trajectory format" help="Select the trajectory format to filter by">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
66 <option selected="True" value="dcd">dcd</option>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
67 <option value="xtc">xtc</option>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
68 <option value="netcdf">netcdf</option>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
69 <option value="trr">trr</option>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
70 </param>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
71 <when value="dcd">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
72 <param name="trajs" multiple="True" type="data" format="dcd" label="trajectory file(s) input" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
73 </when>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
74 <when value="xtc">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
75 <param name="trajs" multiple="True" type="data" format="xtc" label="trajectory file(s) input" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
76 </when>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
77 <when value="netcdf">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
78 <param name="trajs" multiple="True" type="data" format="netcdf" label="trajectory file(s) input" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
79 </when>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
80 <when value="trr">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
81 <param name="trajs" multiple="True" type="data" format="trr" label="trajectory file(s) input" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
82 </when>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
83 </conditional>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
84 <param name="selection" type="text" value="not water and not segname POT and not segname CLA" label="selection to keep" help="A valid mdtraj style selection string that selects atoms to keep in structure and trajectory file output">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
85 <validator type="regex" message="Maximum of 60 characters and space allowed.">^[a-zA-Z0-9 ]{1,60}$</validator>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
86 </param>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
87 </inputs>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
88 <outputs>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
89 <data name="outputstr" format_source="strin" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
90 <data name="outputtraj" format_source="trajs" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
91 </outputs>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
92 <tests>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
93 <test>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
94 <param name="strin" value="test.pdb" ftype="pdb" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
95 <conditional name="select">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
96 <param name="traj_fmt" value="dcd" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
97 <param name="trajs" value="test.dcd" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
98 </conditional>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
99 <param name="selection" value="not water and not segname SOD and not segname CLA" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
100 <output name="outputstr">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
101 <assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
102 <has_text text="ATOM 1 C1 BGL A 1 " />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
103 <has_text text="ATOM 24 HO6 BGL A 1" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
104 </assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
105 </output>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
106 <output name="outputtraj">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
107 <assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
108 <has_size value="4000" delta="100" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
109 </assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
110 </output>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
111 </test>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
112 <test>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
113 <param name="strin" value="test.gro" ftype="gro" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
114 <conditional name="select">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
115 <param name="traj_fmt" value="xtc" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
116 <param name="trajs" value="test.xtc" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
117 </conditional>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
118 <param name="selection" value="resname BGLC" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
119 <output name="outputstr">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
120 <assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
121 <has_text text=" 1BGLC C1 1" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
122 <has_text text=" 1BGLC HO6 24" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
123 </assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
124 </output>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
125 <output name="outputtraj">
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
126 <assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
127 <has_size value="1940" delta="100" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
128 </assert_contents>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
129 </output>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
130 </test>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
131 </tests>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
132 <help><![CDATA[
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
133 .. class:: infomark
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
134
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
135 **What it does**
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
136
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
137 This tool is a filter and multijoin for trajectory files. You can select specific molecules (or atoms) and save out a new structure and trajectory file. If there are multiple trajectories selected, then these will all be combined into a single trajectory output.
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
138
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
139 Use this tool to:
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
140 - reduce the size of trajectories for later analysis and help with selections where analysis tools may not have selection features that you need.
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
141 - combine trajectories for analysis, this is imperative for proper molecular dynamics analysis.
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
142
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
143 _____
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
144
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
145
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
146 .. class:: infomark
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
147
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
148 **Input**
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
149
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
150 - Structure file (pdb,gro)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
151 - Choose a format of trajectory file (trr,xtc, dcd, netcdf)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
152 - Trajectory file(s) (the files displayed are filtered by the trajectory type chosen).
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
153 - A valid mdtraj selection for the system under consideration. For example: not water and segname CARA and not type H
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
154
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
155 _____
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
156
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
157
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
158 .. class:: infomark
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
159
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
160 **Output**
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
161
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
162 - Structure file (same as input format)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
163 - Trajectory file (same as input format)
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
164 ]]></help>
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
165 <expand macro="citations" />
f4a1e92ca3d2 "planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/ commit 7d8024bb5f0c425b5a2b37e389802ac250b73c60"
chemteam
parents:
diff changeset
166 </tool>