comparison distance_finder.xml @ 0:c066b5accacf draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 6c84abdd07f292048bf2194073e2e938e94158c4"
author bgruening
date Wed, 25 Mar 2020 16:47:13 -0400
parents
children 4c9d6b47045c
comparison
equal deleted inserted replaced
-1:000000000000 0:c066b5accacf
1 <tool id="openbabel_structure_distance_finder" name="Determine distance to defined points" version="0.1.0">
2 <description>- determine the minimum distances between a molecule and a set of 3D points</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <requirements>
7 <!-- does not run with obabel 2.4.1 -->
8 <requirement type="package" version="3.0.0">openbabel</requirement>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[
11 python '$__tool_directory__/distance_finder.py'
12 -i '$input'
13 -p $points_file
14 -o '$output'
15 ]]></command>
16
17 <configfiles>
18 <configfile name="points_file">$points</configfile>
19 </configfiles>
20
21 <inputs>
22 <param type="data" name="input" format="sdf" label="Ligands to be analysed" help="Input in SDF format" />
23 <param type="text" name="points" area="true" label="3D points to consider" help="Points as X, Y, Z coordinates, one point per line">
24 <sanitizer invalid_char="">
25 <valid initial="string.printable">
26 <remove value="&apos;" />
27 </valid>
28 </sanitizer>
29 </param>
30 </inputs>
31 <outputs>
32 <data format="sdf" name="output" label="The measured ligands"/>
33 </outputs>
34 <tests>
35 <test>
36 <param name="input" ftype="sdf" value="ligands.sdf"/>
37 <!-- TODO - work out how to specify multi-line text -->
38 <param name="points" value="5.655 1.497 18.223" />
39 <output name="output" ftype="sdf">
40 <assert_contents>
41 <has_text text="distance1" />
42 </assert_contents>
43 </output>
44 </test>
45 </tests>
46 <help><![CDATA[
47 .. class:: infomark
48
49 **What it does**
50
51 This tool reports distances of ligands to reference points provided as atoms in a PDB file.
52 It is useful for finding out to what extent a ligand occupies an active site.
53
54 .. class:: infomark
55
56 **Input**
57
58 An SD-file containing 3D molecules.
59
60 The points parameter contains the points to compare to as X, Y and Z coordinates, one point per line.
61 An example is:
62
63 5.655 1.497 18.223
64 1.494 -8.367 18.574
65 13.034 6.306 25.232
66
67 This would encode 3 points.
68
69 Each record in the SDF input is read and the closest heavy atom to each of the points is recorded as
70 properties in the output SDF.
71
72 .. class:: infomark
73
74 **Output**
75
76 The same SD file as the input but with a series of "distance?" properties added where ? is the index of the points
77 being compared to. In the example there would be properties for distance1, distance2 and distance3.
78
79
80 ]]></help>
81 <expand macro="citations"/>
82 </tool>
83