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