|
0
|
1 <tool id="vl_import_seq_data_sample" name="VLI.seq_data_sample">
|
|
|
2 <description>
|
|
|
3 Import sequencing related DataSample definitions within OMERO>biobank
|
|
|
4 </description>
|
|
|
5 <command interpreter="bash">
|
|
|
6 launcher.sh
|
|
|
7 --interpreter=python
|
|
|
8 --runner=importer.py
|
|
|
9 #if $omero_configuration.level == 'advanced'
|
|
|
10 --host=$omero_configuration.vl_host
|
|
|
11 --user=$omero_configuration.vl_user
|
|
|
12 --passwd=$omero_configuration.vl_passwd
|
|
|
13 #else
|
|
|
14 --host=$__user_omero_host__
|
|
|
15 --user=$__user_omero_user__
|
|
|
16 --passwd=$__user_omero_password__
|
|
|
17 #end if
|
|
|
18 --operator=$__user_email__
|
|
|
19 --ifile=${input}
|
|
|
20 --ofile=${output}
|
|
|
21 --report_file=${report}
|
|
|
22 --logfile=${logfile}
|
|
|
23 #if $blocking_validation
|
|
|
24 --blocking-validator
|
|
|
25 #end if
|
|
|
26 seq_data_sample
|
|
|
27 #if str($study) != 'use_provided'
|
|
|
28 --study=${study}
|
|
|
29 #end if
|
|
|
30 #if str($source_type) != 'use_provided'
|
|
|
31 --source-type=${source_type}
|
|
|
32 #end if
|
|
|
33 #if str($seq_dsample_type) != 'use_provided'
|
|
|
34 --seq-dsample-type=${seq_dsample_type}
|
|
|
35 #end if
|
|
|
36 #if str($dsample_status) != 'use_provided'
|
|
|
37 --status=${dsample_status}
|
|
|
38 #end if
|
|
|
39 #if str($device) != 'use_provided'
|
|
|
40 --device=${device}
|
|
|
41 #end if
|
|
|
42 #if str($history) != 'None'
|
|
|
43 --history=${history}
|
|
|
44 #end if
|
|
|
45 </command>
|
|
|
46
|
|
|
47 <inputs>
|
|
|
48 <param format="tabular" name="input" type="data"
|
|
|
49 label="A tabular dataset with the following columns..."/>
|
|
|
50
|
|
|
51 <param name="study" type="select" label="Context study" ajax = "True" ajax-source = "galaxy/get/studies" sort="True"
|
|
|
52 help="Choose from the already defined studies. See below.">
|
|
|
53 <option value="use_provided" selected="true">Records provide study labels</option>
|
|
|
54 </param>
|
|
|
55
|
|
|
56 <param name="source_type" type="select"
|
|
|
57 label="Type of the source"
|
|
|
58 help="Choose from the following. See below.">
|
|
|
59 <option value="use_provided" selected="true">
|
|
|
60 Use record provided
|
|
|
61 </option>
|
|
|
62 <option value="FlowCell">FlowCell</option>
|
|
|
63 <option value="SequencerOutput">
|
|
|
64 SequencerOutput
|
|
|
65 </option>
|
|
|
66 <option value="RawSeqDataSample">
|
|
|
67 RawSeqDataSample
|
|
|
68 </option>
|
|
|
69
|
|
|
70 </param>
|
|
|
71
|
|
|
72 <!-- Choose the device after the type selection, SequencerOutput
|
|
|
73 will required an HardwareDevice, RawSeqDataSample and SeqDataSample
|
|
|
74 will required a SoftwareDevice. If the "use provided" is selected,
|
|
|
75 load a generic Device select list -->
|
|
|
76 <param name="seq_dsample_type" type="select"
|
|
|
77 label="Type of the DataSample"
|
|
|
78 help="Choose from the following. See below.">
|
|
|
79 <option value="use_provided" selected="true">
|
|
|
80 Use record provided
|
|
|
81 </option>
|
|
|
82 <option value="SequencerOutput">
|
|
|
83 SequencerOutput
|
|
|
84 </option>
|
|
|
85 <option value="RawSeqDataSample">
|
|
|
86 RawSeqDataSample
|
|
|
87 </option>
|
|
|
88 <option value="SeqDataSample">
|
|
|
89 SeqDataSample
|
|
|
90 </option>
|
|
|
91 <option value="AlignedSeqDataSample">AlignedSeqDataSample</option>
|
|
|
92 </param>
|
|
|
93
|
|
|
94 <param name="dsample_status" type="select" label="DataSample status" ajax = "True" ajax-source = "galaxy/get/data_sample_status" sort="True"
|
|
|
95 help="Choose from one of the available values. See below.">
|
|
|
96 <option value="use_provided" selected="true">Records provide status</option>
|
|
|
97 </param>
|
|
|
98
|
|
|
99 <param name="device" type="select" label="device" ajax = "True" ajax-source = "galaxy/get/devices" sort="True"
|
|
|
100 help="Choose from the already defined devices. See below.">
|
|
|
101 <option value="use_provided" selected="true">Records provide device ids</option>
|
|
|
102 </param>
|
|
|
103
|
|
|
104 <param format="txt" name="history" type="data" optional="true"
|
|
|
105 label="Objects history"
|
|
|
106 help="Galaxy history in JSON format, history will be shared among all objects"/>
|
|
|
107
|
|
|
108 <!-- ************************************************** -->
|
|
|
109 <param name="blocking_validation" type="boolean" checked="false"
|
|
|
110 label="Blocking validation"
|
|
|
111 help="When this check is enabled, if at least one record doesn't pass importer's validation, the entire import procedure will be blocked"/>
|
|
|
112
|
|
|
113 <conditional name="wait_for_trigger">
|
|
|
114 <param name="enable_trigger" type="boolean" checked="false"
|
|
|
115 label="Wait for another tool to end before running this tool"/>
|
|
|
116 <when value="true">
|
|
|
117 <param format="txt" name="trigger_file" type="data"
|
|
|
118 label="Select the LOG file that will be used as trigger"/>
|
|
|
119 </when>
|
|
|
120 </conditional>
|
|
|
121
|
|
|
122 <conditional name="omero_configuration">
|
|
|
123 <param name="level" type="select" label="Configuration level">
|
|
|
124 <option value="default" selected="true">Default: use Galaxy's preferences</option>
|
|
|
125 <option value="advanced">Advanced: specify different host, user
|
|
|
126 and password</option>
|
|
|
127 </param>
|
|
|
128 <when value="default"/>
|
|
|
129 <when value="advanced">
|
|
|
130 <param name="vl_host" size="40" type="text" value="hostname"
|
|
|
131 label="OMERO.biobank host"/>
|
|
|
132 <param name="vl_user" size="40" type="text" value="user"
|
|
|
133 label="OMERO.biobank user"/>
|
|
|
134 <param name="vl_passwd" size="40" type="text" value="password"
|
|
|
135 label="OMERO.biobank passwd"/>
|
|
|
136 </when>
|
|
|
137 </conditional>
|
|
|
138
|
|
|
139 </inputs>
|
|
|
140
|
|
|
141 <outputs>
|
|
|
142 <data format="tabular" name="output" label="${tool.name}.mapping"/>
|
|
|
143 <data format="tabular" name="report" label="${tool.name}.report"/>
|
|
|
144 <data format="txt" name="logfile" label="${tool.name}.logfile"/>
|
|
|
145 </outputs>
|
|
|
146
|
|
|
147 <help>
|
|
|
148 Will read a tsv file with the following columns::
|
|
|
149
|
|
|
150 study label source source_type seq_dsample_type status device
|
|
|
151 FOOBAR seq_out_1 V012141 FlowCell SequencerOutput USABLE V123141
|
|
|
152 FOOBAR seq_out_2 V012141 FlowCell SequencerOutput USABLE V123141
|
|
|
153 FOOBAR seq_out_3 V1AD124 FlowCell SequencerOutput USABLE V123141
|
|
|
154 ...
|
|
|
155
|
|
|
156 where
|
|
|
157 * seq_dsample_type can assume one of the following values: SequencerOutput, RawSeqDataSample, SeqDataSample
|
|
|
158 * source_type can assume one of the following values: FlowCell, SequencerOutput, RawSeqDataSample
|
|
|
159
|
|
|
160 study, source_type, seq_dsample_type, status and device columns can be
|
|
|
161 overwritten by using command line options.
|
|
|
162
|
|
|
163 A special case of the previous file is when seq_dsample_type is
|
|
|
164 SeqDataSample, in this case a mandatory sample column is required,
|
|
|
165 this column has to contain IDs of Tube objects.
|
|
|
166 The file will look like this
|
|
|
167
|
|
|
168 study label source source_type seq_dsample_type status device sample
|
|
|
169 FOOBAR seq_dsample_1 V041241 SequencerOutput SeqDataSample USABLE VBB2351 V124AA41
|
|
|
170 FOOBAR seq_dsample_2 V051561 SequencerOutput SeqDataSample USABLE VBB2351 V4151AAE
|
|
|
171 FOOBAR seq_dsample_3 V151561 SequencerOutput SeqDataSample USABLE VBB2351 V15199CD
|
|
|
172 ...
|
|
|
173
|
|
|
174 A file containing ax export of the Galaxy history that produced the
|
|
|
175 data that are going to be imported can be passed as input parameter,
|
|
|
176 history details must represented as a string serialized in JSON
|
|
|
177 format.
|
|
|
178 </help>
|
|
|
179
|
|
|
180 <stdio>
|
|
|
181 <exit_code range="1:" level="fatal" />
|
|
|
182 </stdio>
|
|
|
183
|
|
|
184 </tool>
|