comparison PDAUG_Peptide_CD_Spectral_Analysis/PDAUG_Peptide_CD_Spectral_Analysis.xml @ 0:6cff147419ab draft

"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit a9bd83f6a1afa6338cb6e4358b63ebff5bed155e"
author jay
date Wed, 28 Oct 2020 02:34:15 +0000
parents
children 9bbad349f44c
comparison
equal deleted inserted replaced
-1:000000000000 0:6cff147419ab
1 <tool id="pdaug_peptide_cd_spectral_analysis" name="PDAUG Peptide CD Spectral Analysis" version="0.1.0" python_template_version="3.5">
2
3 <description>Circular dichroism data analysis</description>
4
5 <requirements>
6 <requirement version="0.24.2" type="package" >pandas </requirement>
7 <requirement version="4.2.1" type="package" >modlamp </requirement>
8 </requirements>
9 <command detect_errors="exit_code"><![CDATA[
10
11 mkdir temp
12
13 #for $i, $inp in enumerate($input1):
14 && ln -s '$inp' 'temp/${i}.csv'
15 #end for
16
17
18 &&
19
20 python $__tool_directory__/PDAUG_Peptide_CD_Spectral_Analysis.py '$SelMethods.Methods'
21
22 #if $SelMethods.Methods == 'calc_ellipticity'
23 -T $SelMethods.ellipticity
24 -H temp
25 -Wn $SelMethods.Wn
26 -Wx $SelMethods.Wx
27 -A $SelMethods.Amide
28 -P $SelMethods.Pathlen
29 -O $output2
30 #end if
31
32 #if $SelMethods.Methods == 'PlotData'
33 -T '$SelMethods.ellipticity'
34 -H temp
35 -Wn $SelMethods.Wn
36 -Wx $SelMethods.Wx
37 -A $SelMethods.Amide
38 -P $SelMethods.Pathlen
39 #end if
40
41 #if $SelMethods.Methods == 'Dichroweb'
42 -T '$SelMethods.ellipticity'
43 -H temp
44 -Wn '$SelMethods.Wn'
45 -Wx '$SelMethods.Wx'
46 -A '$SelMethods.Amide'
47 -P '$SelMethods.Pathlen'
48 #end if
49
50 #if $SelMethods.Methods == 'helicity'
51 -H temp
52 -Wn '$SelMethods.Wn'
53 -Wx '$SelMethods.Wx'
54 -A '$SelMethods.Amide'
55 -P '$SelMethods.Pathlen'
56 -t '$SelMethods.T'
57 -k '$SelMethods.K'
58 -I '$SelMethods.Induction'
59 -O $output1
60 #end if
61
62 ]]></command>
63
64
65 <inputs>
66
67 <param name="input1" label="Input file" type="data" format="csv" multiple="true" argument= "--TrainFile"/>
68
69 <conditional name='SelMethods' >
70
71 <param name="Methods" type="select" label="Circular dichroism data analysis options" help="Circular dichroism data analysis options" >
72 <option value="calc_ellipticity">Calculate Ellipticity</option>
73 <option value="PlotData">Plot Data</option>
74 <option value="Dichroweb">Save data in DichroWeb readable format</option>
75 <option value="helicity">Calculate the percentage of helicity</option>
76 </param>
77
78 <when value="calc_ellipticity">
79 <param name="ellipticity" type="select" label="Ellipticity type" argument="-T" help="Methods to calculate the molar ellipticity for all loaded data">
80 <option value="calc_molar_ellipticity">Calculate Molar Ellipticity</option>
81 <option value="calc_meanres_ellipticity">Calculate Mean Residue Ellipticity</option>
82 </param>
83 <param name="Wn" type="integer" value="180" label="Smallest wavelength" argument="-Wn" help="Smallest wavelength measured" />
84 <param name="Wx" type="integer" value="260" label="Highest wavelength" argument="-Wx" help="Highest wavelength measured" />
85 <param name="Amide" type="boolean" label="Amide" value="true" argument="-A" help="Specifies whether the sequences have amidated C-termini" />
86 <param name="Pathlen" type="float" label="Pathlen" value="1.0" argument="--P" help="Cuvette path length in mm"/>
87 </when>
88
89 <when value="PlotData">
90 <param name="ellipticity" type="select" label="Which data should be plotted " argument="">
91 <option value="mean residue ellipticity">Mean Residue Ellipticity</option>
92 <option value="molar ellipticity">Molar Ellipticity</option>
93 <option value="circular dichroism">Circular Dichroism</option>
94 </param>
95 <param name="Wn" type="integer" value="180" label="Smallest wavelength" argument="-Wn" help="Smallest wavelength measured" />
96 <param name="Wx" type="integer" value="260" label="Highest wavelength" argument="-Wx" help="Highest wavelength measured" />
97 <param name="Amide" type="boolean" label="Amide" value="true" argument="-A" help="Specifies whether the sequences have amidated C-termini" />
98 <param name="Pathlen" type="float" label="Pathlen" value="1.0" argument="--P" help="Cuvette path length in mm"/>
99 </when>
100
101 <when value="Dichroweb">
102 <param name="ellipticity" type="select" label="which data should be return" argument="">
103 <option value="mean residue ellipticity">Mean Residue Ellipticity</option>
104 <option value="molar ellipticity">Molar Ellipticity</option>
105 <option value="circular dichroism">Circular Dichroism</option>
106 </param>
107 <param name="Wn" type="integer" value="260" label="Smallest wavelength" argument="-Wn" help="Smallest wavelength measured" />
108 <param name="Wx" type="integer" value="260" label="Highest wavelength" argument="-Wx" help="Highest wavelength measured" />
109 <param name="Amide" type="boolean" label="Amide" value="true" argument="-A" help="Specifies whether the sequences have amidated C-termini" />
110 <param name="Pathlen" type="float" label="Pathlen" value="1.0" argument="--P" help="Cuvette path length in mm"/>
111 </when>
112
113 <when value="helicity">
114 <param name="Wn" type="integer" value="260" label="Smallest wavelength" argument="-Wn" help="Smallest wavelength measured" />
115 <param name="Wx" type="integer" value="260" label="Highest wavelength" argument="-Wx" help="Highest wavelength measured" />
116 <param name="Amide" type="boolean" label="Amide" value="true" argument="-A" help="Specifies whether the sequences have amidated C-termini" />
117 <param name="Pathlen" type="float" label="Pathlen" value="1.0" argument="--P" help="Cuvette path length in mm"/>
118 <param name="T" type="float" label="Temperature" value="24.0" help="Experiment temperature in C" argument="-T"/>
119 <param name="K" type="float" label="Finite length correction factor" value ="2.4" help="Finite length correction factor" argument="-k" />
120 <param name="Induction" type="boolean" label="Induction" value="true" help="Wether the helical induction upon changing from one solvent to another should be calculated" />
121 </when>
122
123 </conditional>
124 </inputs>
125
126 <outputs>
127
128 <data name="output1" format="tsv" label="${tool.name} on $on_string - ${SelMethods.Methods} (tabular)" >
129 <filter> SelMethods['Methods'] == 'helicity' </filter>
130 </data>
131
132 <data name="output2" format="tsv" label="${tool.name} on $on_string - ${SelMethods.Methods} (tabular)" >
133 <filter> SelMethods['Methods'] == 'calc_ellipticity' </filter>
134 </data>
135
136 <collection name="pdfout" type="list" label="${tool.name} on $on_string - ${SelMethods.Methods} (PDFs)">
137 <discover_datasets pattern="__name_and_ext__" format='pdf' directory="temp/PDF" />
138 <filter> SelMethods['Methods'] == 'PlotData' </filter>
139 </collection>
140
141
142 <collection name="dichroout" type="list" label="${tool.name} on $on_string - ${SelMethods.Methods} (Dichro)">
143 <discover_datasets pattern="__name_and_ext__" format='tsv' directory="temp/Dichro" />
144 <filter> SelMethods['Methods'] == 'Dichroweb' </filter>
145 </collection>
146
147 </outputs>
148
149 <tests>
150
151 <test>
152 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
153 <param name="Methods" value="calc_ellipticity"/>
154 <param name="ellipticity" value="calc_molar_ellipticity" />
155 <param name="Wn" value="180" />
156 <param name="Wx" value="260" />
157 <param name="Amide" value="true" />
158 <param name="Pathlen" value="1.0" />
159 <output name="output1" file="calc_molar_ellipticity.tsv" />
160 </test>
161
162 <test>
163 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
164 <param name="Methods" value="calc_ellipticity"/>
165 <param name="ellipticity" value="calc_meanres_ellipticity" />
166 <param name="Wn" value="180" />
167 <param name="Wx" value="260" />
168 <param name="Amide" value="true" />
169 <param name="Pathlen" value="1.0" />
170 <output name="output1" file="calc_meanres_ellipticity.tsv" />
171 </test>
172
173 <test>
174 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
175 <param name="Methods" value="PlotData"/>
176 <param name="ellipticity" value="mean residue ellipticity" />
177 <param name="Wn" value="180" />
178 <param name="Wx" value="260" />
179 <param name="Amide" value="false" />
180 <param name="Pathlen" value="1.0" />
181
182 <output_collection name="pdfout" count="3" >
183 </output_collection>
184
185 </test>
186
187 <test>
188 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
189 <param name="Methods" value="calc_ellipticity"/>
190 <param name="ellipticity" value="calc_molar_ellipticity" />
191 <param name="Wn" value="180" />
192 <param name="Wx" value="260" />
193 <param name="Amide" value="true" />
194 <param name="Pathlen" value="1.0" />
195 <output name="output1" file="calc_molar_ellipticity.tsv" />
196 </test>
197
198 <test>
199 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
200 <param name="Methods" value="calc_ellipticity"/>
201 <param name="ellipticity" value="calc_meanres_ellipticity" />
202 <param name="Wn" value="180" />
203 <param name="Wx" value="260" />
204 <param name="Amide" value="true" />
205 <param name="Pathlen" value="1.0" />
206 <output name="output1" file="calc_meanres_ellipticity.tsv" />
207 </test>
208
209
210
211 <test>
212 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
213 <param name="Methods" value="PlotData"/>
214 <param name="ellipticity" value="mean residue ellipticity" />
215 <param name="Wn" value="180" />
216 <param name="Wx" value="260" />
217 <param name="Amide" value="false" />
218 <param name="Pathlen" value="1.0" />
219 <output_collection name="pdfout" type="pdf" >
220 </output_collection>
221 </test>
222
223 <test>
224 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
225 <param name="Methods" value="PlotData"/>
226 <param name="ellipticity" value="molar ellipticity" />
227 <param name="Wn" value="180" />
228 <param name="Wx" value="260" />
229 <param name="Amide" value="false" />
230 <param name="Pathlen" value="1.0" />
231 <output_collection name="pdfout" type="pdf" >
232 </output_collection>
233 </test>
234
235 <test>
236 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
237 <param name="Methods" value="PlotData"/>
238 <param name="ellipticity" value="circular dichroism" />
239 <param name="Wn" value="180" />
240 <param name="Wx" value="260" />
241 <param name="Amide" value="false" />
242 <param name="Pathlen" value="1.0" />
243 <output_collection name="pdfout" type="pdf" >
244 </output_collection>
245 </test>
246 <test>
247 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
248 <param name="Methods" value="Dichroweb"/>
249 <param name="ellipticity" value="mean residue ellipticity" />
250 <param name="Wn" value="180" />
251 <param name="Wx" value="260" />
252 <param name="Amide" value="false" />
253 <param name="Pathlen" value="1.0" />
254 <output_collection name="dichroout" type="tabular">
255 </output_collection>
256 </test>
257
258 <test>
259 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
260 <param name="Methods" value="Dichroweb"/>
261 <param name="ellipticity" value="molar ellipticity" />
262 <param name="Wn" value="180" />
263 <param name="Wx" value="260" />
264 <param name="Amide" value="false" />
265 <param name="Pathlen" value="1.0" />
266 <output_collection name="dichroout" type="tabular" >
267 </output_collection>
268 </test>
269
270 <test>
271 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
272 <param name="Methods" value="Dichroweb"/>
273 <param name="ellipticity" value="circular dichroism" />
274 <param name="Wn" value="180" />
275 <param name="Wx" value="260" />
276 <param name="Amide" value="false" />
277 <param name="Pathlen" value="1.0" />
278 <output_collection name="dichroout" type="tabular">
279 </output_collection>
280 </test>
281
282 <test>
283 <param name="input1" value="Peptide1_T.csv,Peptide2_W.csv" />
284 <param name="Methods" value="helicity"/>
285 <param name="Wn" value="180" />
286 <param name="Wx" value="260" />
287 <param name="Amide" value="false" />
288 <param name="Pathlen" value="1.0" />
289 <param name="T" value="24" />
290 <param name="K" value="3.5" />
291 <param name="Induction" value="false" />
292 <output name="output1" value="helicity.tsv" />
293
294 </test>
295
296 </tests>
297
298 <help><![CDATA[
299 .. class:: infomark
300
301 **What it does**
302
303 This tool handles circular dichroism data files and calculates several ellipticity and helicity values. The class can handle data files of the Applied Photophysics type. For explanations of different units used in CD spectroscopy, visit https://www.photophysics.com/resources/7-cd-units-conversions. Provided with four different options.
304
305 * **Calculate Ellipticity** Calculates molar and mean residue ellipticity.
306 * **Plot Data** Generates circular_dichroism plots for all read data in the initial directory.
307 * **Save data in DichroWeb readable format** Method to save the calculated CD data into DichroWeb readable format (semi-colon separated). The produced files can then directly be uploaded to the DichroWeb analysis tool.
308 * **Calculate the percentage of helicity** Method to calculate the percentage of helicity out of the mean residue ellipticity data. The calculation is based on the formula by Fairlie and co-workers.
309
310 -----
311
312 **Inputs**
313
314 **1** calc_ellipticity
315 * **--Type**
316 * **--Wmin** smallest wavelength measured
317 * **--Wmax** highest wavelength measured
318 * **--Amide** specifies whether the sequences have amidated C-termini
319 * **--Pathlen** cuvette path length in mm
320
321 **2** PlotData
322 * **--Type**
323 * **--Wmin** smallest wavelength measured
324 * **--Wmax** highest wavelength measured
325 * **--Amide** specifies whether the sequences have amidated C-termini
326 * **--Pathlen** cuvette path length in mm
327
328 **3** Dicroweb
329 * **--Type**
330 * **--Wmin** smallest wavelength measured
331 * **--Wmax** highest wavelength measured
332 * **--Amide** specifies whether the sequences have amidated C-termini
333 * **--Pathlen** cuvette path length in mm
334
335 **4** helicity
336 * **--Type**
337 * **--Wmin** smallest wavelength measured
338 * **--Wmax** highest wavelength measured
339 * **--Amide** specifies whether the sequences have amidated C-termini
340 * **--Pathlen** cuvette path length in mm
341 * **--temperature** experiment temperature in °C
342 * **--k** {float, 2.4 - 4.5} finite length correction factor. Can be adapted to the helicity of a known peptide.
343 * **--Induction** whether the helical induction upon changing from one solvent to another should be calculated.
344
345
346 -----
347
348 **Outputs**
349 * **Calculate Ellipticity** Return molar or mean residue ellipticity as a tabular file.
350 * **Plot Data** Returns PDF files.
351 * **Save data in DichroWeb readable format** Returns tabular files.
352 * **Calculate the percentage of helicity** Returns approximate helicity for every sequence as a tabular file.]]></help>
353 <citations>
354 <citation type="bibtex">
355 @misc{PDAUGGITHUB,
356 author = {Joshi, Jayadev and Blankenberg, Daniel},
357 year = {2020},
358 title ={PDAUG - a Galaxy based toolset for peptide library analysis, visualization, and machine learning modeling},
359 publisher = {GitHub},
360 journal = {GitHub repository},
361 url =
362 {https://github.com/jaidevjoshi83/pdaug.git},
363 }
364 </citation>
365
366 <citation type="bibtex">
367 @article{müller_gabernet_hiss_schneider_2017,
368 title={modlAMP: Python for antimicrobial peptides},
369 volume={33},
370 DOI={10.1093/bioinformatics/btx285},
371 number={17},
372 journal={Bioinformatics},
373 author={Müller, Alex T and Gabernet, Gisela and Hiss, Jan A and Schneider, Gisbert},
374 year={2017},
375 pages={2753–2755}
376 }
377 </citation>
378 </citations>
379 </tool>