comparison apoc.xml @ 0:67d2a6f3b4e3 draft

planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/apoc/ commit d25418e6fe5eddd1a1cc68979e5898fb224feffe
author earlhaminst
date Fri, 07 Jul 2017 11:35:29 -0400
parents
children 451f90534945
comparison
equal deleted inserted replaced
-1:000000000000 0:67d2a6f3b4e3
1 <tool id="apoc" name="APoc" version="1.0">
2 <description>Large-scale identification of similar protein pockets</description>
3 <requirements>
4 <requirement type="package" version="1b16">apoc</requirement>
5 </requirements>
6 <command detect_errors="exit_code"><![CDATA[
7 #if $templates_source.template_source_select == 'list'
8 #for $i, $s in enumerate( $templates_source.template )
9 echo '${s.input.file_name}' >> templates_path &&
10 #end for#
11 paste -d "\t" templates_path '$templates_source.lt' | awk '{print $1"\t"$3}' > templates_list &&
12 #end if#
13
14 #if $query_source.query_source_select == 'list'
15 #for $i, $s in enumerate( $query_source.query )
16 echo '${s.input.file_name}' >> queries_path &&
17 #end for#
18 paste -d "\t" queries_path '$query_source.lq' | awk '{print $1"\t"$3}' > queries_list &&
19 #end if#
20
21 apoc
22 -fa $fa
23 -pvol $pvol
24 -plen $plen
25 $alignment_option.sod
26 -v $alignment_option.v
27 -m $scoring_option.m
28 #if str($scoring_option.L)
29 -L $scoring_option.L
30 #end if
31 $scoring_option.a
32 $scoring_option.b
33 $scoring_option.c
34
35 #if $templates_source.template_source_select == 'list'
36 -lt templates_list
37 #else
38 #if $templates_source.pt
39 -pt '$templates_source.pt'
40 #end if
41 '$templates_source.pdbfile1'
42 #end if
43
44 #if $query_source.query_source_select == 'list'
45 -lq queries_list
46 #else
47 #if $query_source.pq
48 -pq '$query_source.pq'
49 #end if
50 '$query_source.pdbfile2'
51 #end if
52 > $output_apoc
53 ]]></command>
54 <inputs>
55 <conditional name="templates_source">
56 <param name="template_source_select" type="select" label="Chose template source: pdb file or file with list of templates">
57 <option value="pdbfile">pdb file</option>
58 <option value="list">file with list of templates</option>
59 </param>
60 <when value="pdbfile">
61 <param name="pdbfile1" type="data" format="pdb" label="First (template) structure for comparison" />
62 <param argument="-pt" type="text" label="Names of pockets in the first (template) structure for comparison" optional="true" />
63 </when>
64 <when value="list">
65 <param argument="-lt" type="data" format="data" label="List of templates to compare in a file" />
66 <repeat name="template" title="pdb file from list of templates">
67 <param name="input" type="data" format="pdb" label="pdbfile" help="Load all pdb files in the same order as in the list of templates" />
68 </repeat>
69 </when>
70 </conditional>
71 <conditional name="query_source">
72 <param name="query_source_select" type="select" label="Chose query source: pdb file or file with list of queries">
73 <option value="pdbfile">pdb file </option>
74 <option value="list">file with list of queries</option>
75 </param>
76 <when value="pdbfile">
77 <param name="pdbfile2" type="data" format="pdb" label="Second (query) structure for comparison" />
78 <param argument="-pq" type="text" optional="true" label="Names of pockets in the second (query) structure for comparison" />
79 </when>
80 <when value="list">
81 <param argument="-lq" type="data" format="data" label="List of queries (targets) to compare in a file." />
82 <repeat name="query" title="pdb file from list of queries">
83 <param name="input" type="data" format="pdb" label="pdbfile" help="Load all pdb files in the same order as in the list of queries" />
84 </repeat>
85 </when>
86 </conditional>
87 <param argument="-fa" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Global structure alignment" />
88 <param argument="-pvol" type="integer" value="1000" label="Minimal pocket volume in grid points" />
89 <param argument="-plen" type="integer" value="10" label="Minimal number of pocket residues" />
90 <section name="alignment_option" title="Alignment option">
91 <param argument="-sod" type="boolean" truevalue="-sod" falsevalue="" label="Restrict to sequence-order-dependent alignment" />
92 <param argument="-v" type="select" label="Restrict to sequence-order-dependent alignment" >
93 <option value="0">None</option>
94 <option value="1">Concise</option>
95 <option value="2" selected="true">Detailed</option>
96 </param>
97 </section>
98 <section name="scoring_option" title="Scoring option">
99 <param argument="-m" type="select" label="Similarity scoring metric" >
100 <option value="tm">TM-score</option>
101 <option value="ps" selected="true">PS-score</option>
102 </param>
103 <param argument="-L" type="integer" optional="true" label="Normalize the score with this fixed length" />
104 <param argument="-a" type="boolean" truevalue="-a" falsevalue="" label="Normalize the score by the average size of two structures" />
105 <param argument="-b" type="boolean" truevalue="-b" falsevalue="" label="Normalize the score by the minimum size of two structures" />
106 <param argument="-c" type="boolean" truevalue="-c" falsevalue="" label="Normalize the score by the maximum size of two structures" />
107 </section>
108 </inputs>
109 <outputs>
110 <data name="output_apoc" format="txt" />
111 </outputs>
112 <tests>
113 <test>
114 <param name="template_source_select" value="pdbfile" />
115 <param name="pdbfile1" value="apoc/1ha3A.pdb" ftype="pdb" />
116 <param name="query_source_select" value="pdbfile" />
117 <param name="pdbfile2" value="apoc/3ec1A.pdb" ftype="pdb" />
118 <output name="output_apoc">
119 <assert_contents>
120 <has_text_matching expression="PDB\s*files\s*loaded" />
121 </assert_contents>
122 </output>
123 </test>
124 <test>
125 <param name="template_source_select" value="list" />
126 <param name="lt" value="apoc/templ.lst" />
127 <param name="template_0|input" value="apoc/1ha3A.pdb" ftype="pdb" />
128 <param name="template_1|input" value="apoc/3ec1A.pdb" ftype="pdb" />
129 <param name="template_2|input" value="apoc/1yr8A.pdb" ftype="pdb" />
130 <param name="query_source_select" value="pdbfile" />
131 <param name="pdbfile2" value="apoc/1yr8A.pdb" ftype="pdb" />
132 <output name="output_apoc">
133 <assert_contents>
134 <has_text_matching expression="PDB\s*files\s*loaded" />
135 </assert_contents>
136 </output>
137 </test>
138 <test>
139 <param name="template_source_select" value="list" />
140 <param name="lt" value="apoc/templ.lst" />
141 <param name="template_0|input" value="apoc/1ha3A.pdb" ftype="pdb" />
142 <param name="template_1|input" value="apoc/3ec1A.pdb" ftype="pdb" />
143 <param name="template_2|input" value="apoc/1yr8A.pdb" ftype="pdb" />
144 <param name="query_source_select" value="pdbfile" />
145 <param name="pdbfile2" value="apoc/1ha3A.pdb" ftype="pdb" />
146 <param name="pq" value="1ha3_GDP_A_406" />
147 <output name="output_apoc">
148 <assert_contents>
149 <has_text_matching expression="PDB\s*files\s*loaded" />
150 </assert_contents>
151 </output>
152 </test>
153 <test>
154 <param name="template_source_select" value="list" />
155 <param name="lt" value="apoc/templ.lst" />
156 <param name="template_0|input" value="apoc/1ha3A.pdb" ftype="pdb" />
157 <param name="template_1|input" value="apoc/3ec1A.pdb" ftype="pdb" />
158 <param name="template_2|input" value="apoc/1yr8A.pdb" ftype="pdb" />
159 <param name="query_source_select" value="list" />
160 <param name="lq" value="apoc/query.lst" />
161 <param name="query_0|input" value="apoc/3ec1A.pdb" ftype="pdb" />
162 <output name="output_apoc">
163 <assert_contents>
164 <has_text_matching expression="PDB\s*files\s*loaded" />
165 </assert_contents>
166 </output>
167 </test>
168 </tests>
169 <help><![CDATA[
170 ***********
171 Description
172 ***********
173
174 APoc may be used to compare two pockets, a pocket against a set of pockets, or
175 all-against-all between two sets of pockets. If you supply two structures to compare,
176 the first structure is the template and the second structure is the query (or target).
177
178 For each pair of structures, the program first performs a global structural comparison in
179 sequential order using a standard TM-align algoritm. One may elect to bypass the global alignment
180 to accelerate comparison. If no pocket found in the pdb structures, the program becomes a normal
181 TM-align or stop if one chooses to bypass the global alignment. If there are pockets detected
182 in the input files, it will compare pockets in sequential-order-independent manner by default.
183
184 The ouput is arranged in pairs of structures compared. For each pair, the first alignment is the
185 global alignment, followed by all-againat-all alignment of selected pockets. If you want a concise
186 output without detailed alignment, add the "-v 0" option.
187 ]]></help>
188 <citations>
189 <citation type="doi">10.1093/bioinformatics/btt024</citation>
190 </citations>
191 </tool>