annotate instructor.xml @ 0:f93749376fe5 draft

planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
author tduigou
date Tue, 28 Mar 2023 12:35:26 +0000
parents
children a4022782b0fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
1 <tool id="icfree_instructor" name="iCFree instructor" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="@LICENCE@">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
2 <description>Generates a list of Echo-compatible instructions to prepare samples</description>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
3 <macros>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
4 <import>macros.xml</import>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
5 </macros>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
6 <expand macro="requirements"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
7 <expand macro="stdio"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
9 #set sps = []
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
10 #set sws = []
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
11 #set dps = []
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
12 #set dws = []
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
13 #for $x in $plates_generator:
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
14 #set $fname = str($x.element_identifier)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
15 echo "$fname " &&
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
16 ln -sfn '$x' '$fname' &&
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
17 #if $fname.startswith('source') and $fname.endswith('json'):
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
18 #silent sps.append($fname)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
19 #else if $fname.startswith('source') and $fname.endswith('tsv'):
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
20 #silent sws.append($fname)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
21 #else if $fname.startswith('destination') and $fname.endswith('json'):
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
22 #silent dps.append($fname)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
23 #else if $fname.startswith('destination') and $fname.endswith('tsv'):
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
24 #silent dws.append($fname)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
25 #end if
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
26 #end for
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
27 #set s_sps = '" "'.join($sps)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
28 #set s_sws = '" "'.join($sws)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
29 #set s_dps = '" "'.join($dps)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
30 #set s_dws = '" "'.join($dws)
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
31 python -m icfree.instructor
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
32 --source_plates $s_sps
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
33 --source_wells $s_sws
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
34 --dest_plates $s_dps
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
35 --dest_wells $s_dws
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
36 -spt '$source_plate'
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
37 --robot '$robot'
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
38 --output-folder '.' &&
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
39 mv instructions.csv '$output_instruction' &&
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
40 #if not os.path.isfile('volume_warning.tsv')
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
41 touch volume_warning.tsv &&
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
42 #end if
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
43 mv volume_warning.tsv '$output_warning'
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
44 ]]></command>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
45 <inputs>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
46 <param name="plates_generator" type="data_collection" collection_type="list" format="json,tabular" label="Source/Destination corresponding to plate/wells" help="Output from iCFree plates generator"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
47 <param name="robot" type="select" label="Robot name">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
48 <option value="ECHO" selected="true">ECHO</option>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
49 </param>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
50 <param name="source_plate" type="select" label="Source plate type">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
51 <option value="384PP_AQ_GP3" selected="true">384PP_AQ_GP3</option>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
52 <option value="384_AQ_CP">384_AQ_CP</option>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
53 </param>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
54 </inputs>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
55 <outputs>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
56 <data name="output_warning" format="tsv" label="${tool.name} - Warning" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
57 <data name="output_instruction" format="csv" label="${tool.name} - Instruction" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
58 </outputs>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
59 <tests>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
60 <test>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
61 <!-- test 1: check if identical outputs are produced with default parameters -->
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
62 <param name="plates_generator">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
63 <collection type="list">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
64 <element name="plates_generator_source_plate_1" value="plates_generator_source_plate_1.test-1.json" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
65 <element name="plates_generator_source_plate_1.test-1.tsv" value="plates_generator_source_plate_1.test-1.tsv" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
66 <element name="plates_generator_destination_plate_1.test-1.json" value="plates_generator_destination_plate_1.test-1.json" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
67 <element name="plates_generator_destination_plate_1.test-1.tsv" value="plates_generator_destination_plate_1.test-1.tsv" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
68 </collection>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
69 </param>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
70 <output name="output_warning" ftype="tabular">
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
71 <assert_contents>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
72 <has_n_lines n="12"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
73 <has_line_matching expression="^Parameter\tMin\tMax\tPlate$"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
74 </assert_contents>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
75 </output>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
76 <output name="output_instruction" file="instructor_instructions.csv" ftype="csv" compare="diff" />
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
77 </test>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
78 </tests>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
79 <help><![CDATA[
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
80 Instructor
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
81 ==========
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
82
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
83 The module generates a list of instructions to perform the experiment.
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
84
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
85 Input
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
86 -----
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
87 Required:
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
88 * **A collection**: a collection with source/destination plates/wells, coming from iCFree plates generator tool.
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
89
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
90 Advanced options:
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
91 -----------------
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
92 * **Robot name**: name of the robot to generate instructions for (default: "ECHO")
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
93 * **Source plate type**: type of plate used (default: "384PP_AQ_GP3")
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
94
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
95 Output
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
96 ------
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
97 * **instructions**: contains the instructions to perform the experiment
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
98 * **volumes_warning**: contains the volumes that may cause issues with the chosen robot
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
99 ]]></help>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
100 <expand macro="creator"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
101 <expand macro="citation"/>
f93749376fe5 planemo upload for repository https://github.com/brsynth/icfree-ml commit e908694368c306390bc9253f81a9249ad988970d
tduigou
parents:
diff changeset
102 </tool>