comparison conformers.xml @ 0:b6cdd73f0c14 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/im-pipelines commit 598dd288a384481b7602a0f6322c5081dc8da5d9"
author bgruening
date Tue, 21 Jul 2020 05:25:54 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b6cdd73f0c14
1 <tool id="ctb_im_conformers" name="Generate conformers" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
2 <description>using RDKit</description>
3 <macros>
4 <import>macros.xml</import>
5 <token name="@GALAXY_VERSION@">0</token>
6 </macros>
7 <expand macro="requirements" />
8 <command detect_errors="exit_code"><![CDATA[
9 conformers
10 -i '$infile'
11 -if sdf
12 -n '$num'
13 -a '$attempts'
14 -r '$rmsd'
15 #if $conditional_cluster.cluster_method_opts != 'none'
16 -c '$conditional_cluster.cluster_method_opts'
17 -t '$conditional_cluster.threshold'
18 #end if
19 -e '$emin'
20 -if sdf
21 --meta
22 -of sdf
23 -o outp &>> $logfile &&
24 cat outp_metrics.txt &>> $logfile &&
25 gzip -d outp.sdf.gz
26 ]]></command>
27 <inputs>
28 <param name="infile" type="data" format="sdf" label="Input file" help="Input file in SDF format"/>
29 <param name="num" type="integer" label="Number of conformers to generate" value="1"/>
30 <param name="rmsd" type="float" value="1.0" min="0" label="RMSD threshold" help="If a conformer is too similar to those already generated (below the RMSD threshold), it is discarded and regenerated."/>
31 <param name="attempts" type="integer" value="0" min="0" label="Number of attempts" help="Conformers which are below the RMSD threshold are regenerated. This parameter controls how many times this regeneration should be attempted before giving up. "/>
32 <conditional name="conditional_cluster">
33 <param name="cluster_method_opts" type="select" label="Cluster method" help="RMSD, TFD (torsion fingerprint deviation) or no clustering.">
34 <option value="none" selected="true">None</option>
35 <option value="rmsd">RMSD</option>
36 <option value="tfd">TFD</option>
37 </param>
38 <when value="rmsd">
39 <param name="threshold" type="float" label="Cluster threshold" value="2.0" min="0" help="Default of 2.0 for RMSD"/>
40 </when>
41 <when value="tfd">
42 <param name="threshold" type="float" label="Cluster threshold" value="0.3" min="0" help="Default of 0.3 for TFD"/>
43 </when>
44 <when value="none">
45 </when>
46 </conditional>
47 <param name="emin" type="integer" value="0" min="0" label="Energy minimisation iterations" help="Number of EM iterations using the MMFF force field. Default is 0 (i.e. no EM)."/>
48 </inputs>
49
50 <expand macro="outputs" />
51
52 <tests>
53 <test>
54 <param name="infile" ftype='sdf' value="Kinase_inhibs.sdf"/>
55 <param name="num" value="2"/>
56 <param name="cluster_method_opts" value="rmsd"/>
57 <output name="outfile" ftype="sdf">
58 <!-- contents may vary -->
59 <assert_contents>
60 <has_text text="ConformerNum"/>
61 <has_size value="207000" delta="10000"/>
62 <has_text_matching expression="^([^\$]+?\$\$\$\$){65,72}?$"/>
63 </assert_contents>
64 </output>
65 <output name="logfile">
66 <assert_contents>
67 <has_text text="__InputCount__"/>
68 <has_text text="__OutputCount__"/>
69 <has_n_lines n="40" />
70 </assert_contents>
71 </output>
72 </test>
73 </tests>
74 <help><![CDATA[
75
76 .. class:: infomark
77
78 **What this tool does**
79
80 This tool generates conformers for a set of input molecules, using the chemistry toolkit RDKit.
81
82
83 -----
84
85 .. class:: infomark
86
87 **Input**
88
89 | - Molecules in `SDF format`_
90 | - A number of other parameters can be set; the most important include the number of conformers to generate and the minimum RMSD difference between them.
91
92 .. _SDF format: http://en.wikipedia.org/wiki/Chemical_table_file
93
94
95 -----
96
97 .. class:: infomark
98
99 **Output**
100
101 SD-file containing generated conformers.
102
103 ]]></help>
104 <expand macro="citations" />
105 </tool>