comparison plates_designer.xml @ 0:92adc3382124 draft

planemo upload for repository https://github.com/brsynth/icfree-ml commit 7640e2163acff6c925cba16188eaa4ce54639180
author tduigou
date Tue, 23 Jul 2024 13:59:11 +0000
parents
children b3c862e8497f
comparison
equal deleted inserted replaced
-1:000000000000 0:92adc3382124
1 <tool id="icfree_plates_designer" name="iCFree plates designer" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="@LICENCE@">
2 <description>Prepare source and destination well-plate mappings with advanced options.</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <command detect_errors="exit_code"><![CDATA[
9 #set well_capacity = []
10 #set dead_volumes = []
11 #for $x in $adv.rep
12 #silent well_capacity.append(str($x.component_name) + "=" + str($x.well_capacity))
13 #silent dead_volumes.append(str($x.component_name) + "=" + str($x.dead_volumes))
14 #end for
15 #set swell_capacity = ','.join($well_capacity)
16 #set sdead_volumes = ','.join($dead_volumes)
17
18 python -m icfree.plate_designer
19 '$sampling_file'
20 '$sample_volume'
21 --start_well_src_plt '$adv.start_well_src_plt'
22 --start_well_dst_plt '$adv.start_well_dst_plt'
23 --plate_dims '$adv.plate_dims'
24 #if len($well_capacity) > 0
25 --well_capacity '$swell_capacity'
26 #end if
27 --default_well_capacity '$adv.default_well_capacity'
28 #if len($dead_volumes) > 0
29 --dead_volumes '$sdead_volumes'
30 #end if
31 --default_dead_volume '$adv.default_dead_volume'
32 --num_replicates '$adv.num_replicates' &&
33 mv source_plate.csv '$output_source_plate' &&
34 mv destination_plate.csv '$output_destination_plate'
35 ]]></command>
36 <inputs>
37 <param name="sampling_file" type="data" format="csv" label="Sampling file" />
38 <param name="sample_volume" type="integer" optional="false" label="Wanted sample volume in the destination plate" />
39 <section name="adv" title="Advanced Options" expanded="false">
40 <param name="start_well_src_plt" type="text" value="A1" label="Starting well for the source plate">
41 <validator type="empty_field" message="Not empty"/>
42 <validator type="regex" message="Some letters followed by a number">^(?:[A-K]{1}([1-9]|1[0-2]))$</validator>
43 </param>
44 <param name="start_well_dst_plt" type="text" value="A1" label="Starting well for the destination plate">
45 <validator type="empty_field" message="Not empty"/>
46 <validator type="regex" message="Some letters followed by a number">^(?:[A-K]{1}([1-9]|1[0-2]))$</validator>
47 </param>
48 <param name="plate_dims" type="text" value="16x24" label="Plate dimensions (Format: NxM)">
49 <validator type="empty_field" message="Not empty"/>
50 <validator type="regex" message="An 'x' separator is expected">^(?:\d+x\d+)$</validator>
51 </param>
52 <param name="default_well_capacity" type="integer" value="60000" min="1" max="250000" label="Default well capacity in nL for components not specified in well_capacity" />
53 <param name="default_dead_volume" type="integer" value="15000" min="1" max="250000" label="Default dead volume in nL for the source plate"/>
54 <param name="num_replicates" type="integer" value="1" min="1" max="10" label="Number of wanted replicates"/>
55 <repeat name="rep" title="Specific components">
56 <param name="component_name" type="text" value="" label="Component Name">
57 <validator type="empty_field" message="Not empty"/>
58 </param>
59 <param name="well_capacity" type="integer" value="60000" min="1" max="250000" label="Well capacity" />
60 <param name="dead_volumes" type="integer" value="15000" min="1" max="250000" label="Dead volumes" />
61 </repeat>
62 </section>
63 </inputs>
64 <outputs>
65 <data name="output_source_plate" format="csv" label="${tool.name} - Source" />
66 <data name="output_destination_plate" format="csv" label="${tool.name} - Destination" />
67 </outputs>
68 <tests>
69 <test>
70 <!-- python -m icfree.plate_designer sampling.test-1.csv 6000 -default_well_capacity 60000 -default_dead_volume 20000 -num_replicates 1 -->
71 <param name="sampling_file" value="sampling.test-1.csv" />
72 <param name="sample_volume" value="6000" />
73 <param name="default_well_capacity" value="60000" />
74 <param name="default_dead_volume" value="20000" />
75 <param name="num_replicates" value="1" />
76 <output name="output_source_plate" file="plates_designer.source_plate.test-1.csv" ftype="csv" compare="diff" />
77 <output name="output_destination_plate" file="plates_designer.destination_plate.test-1.csv" ftype="csv" compare="diff" />
78 </test>
79 <test>
80 <!-- python -m icfree.plate_designer sampling.test-1.csv '5000' -start_well_src_plt 'A1' -start_well_dst_plt 'A1' -plate_dims '16x24' -well_capacity 'Hela lysate=3000,Access prot 50X=4000,Reaction mix=3000,RNA 1ug/uL=2000' -default_well_capacity '60000' -dead_volumes 'Hela lysate=30,Access prot 50X=5,Reaction mix=10,RNA 1ug/uL=20' -default_dead_volume '20000' -num_replicates '2' -->
81 <param name="sampling_file" value="sampling.test-1.csv" />
82 <param name="sample_volume" value="5000" />
83 <param name="default_well_capacity" value="60000" />
84 <param name="default_dead_volume" value="20000" />
85 <param name="num_replicates" value="2" />
86 <repeat name="rep">
87 <param name="component_name" value="Hela lysate" />
88 <param name="well_capacity" value="3000" />
89 <param name="dead_volumes" value="30" />
90 </repeat>
91 <repeat name="rep">
92 <param name="component_name" value="Access prot 50%" />
93 <param name="well_capacity" value="4000" />
94 <param name="dead_volumes" value="5" />
95 </repeat>
96 <repeat name="rep">
97 <param name="component_name" value="Reaction mix" />
98 <param name="well_capacity" value="3000" />
99 <param name="dead_volumes" value="10" />
100 </repeat>
101 <repeat name="rep">
102 <param name="component_name" value="RNA 1ug/uL" />
103 <param name="well_capacity" value="2000" />
104 <param name="dead_volumes" value="20" />
105 </repeat>
106 <output name="output_source_plate" file="plates_designer.source_plate.test-2.csv" ftype="csv" compare="diff" />
107 <output name="output_destination_plate" file="plates_designer.destination_plate.test-2.csv" ftype="csv" compare="diff" />
108 </test>
109 </tests>
110 <help><![CDATA[
111 Plates Generator
112 ================
113
114 Prepare source and destination well-plate mappings with advanced options.
115 ]]></help>
116 <expand macro="creator"/>
117 <expand macro="citation"/>
118 </tool>