annotate macros.xml @ 3:01fdc6d10660 draft

planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit dd9e62bdb01d1252a90ce778103ce9b6b4a8cd52-dirty
author gbcs-embl-heidelberg
date Wed, 21 Jun 2017 05:22:53 -0400
parents 1f8df7e35393
children 7895e352c09b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
1 <macros>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
2
3
01fdc6d10660 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit dd9e62bdb01d1252a90ce778103ce9b6b4a8cd52-dirty
gbcs-embl-heidelberg
parents: 2
diff changeset
3 <token name="@VERSION_STRING@">1.1</token>
01fdc6d10660 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit dd9e62bdb01d1252a90ce778103ce9b6b4a8cd52-dirty
gbcs-embl-heidelberg
parents: 2
diff changeset
4
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
5 <token name="@single_or_paired_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
6 #if str( $library.type ) == "single":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
7 F1=${library.input_1}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
8 #elif str( $library.type ) == "paired":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
9 F1=${library.input_1}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
10 F2=${library.input_2}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
11 SAME_HEADERS=${library.SAME_HEADERS}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
12 #else
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
13 ## prepare paired-end collection
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
14 F1=${library.input_1.forward}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
15 F2=${library.input_1.reverse}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
16 SAME_HEADERS=${library.SAME_HEADERS}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
17 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
18 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
19
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
20 <xml name="paired_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
21 <when value="paired">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
22 <param name="input_1" format="fastq,gz" type="data" label="FASTQ file #1"/>
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
23 <param name="input_2" format="fastq,gz" type="data" label="FASTQ file #2"/>
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
24 <yield />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
25 <param name="SAME_HEADERS" type="boolean"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
26 label="Ensure headers of both reads of a pair are identical (SAME_HEADERS)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
27 help="Only applies if barcodes are added to the header (option ADD)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
28 truevalue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
29 falsevalue="false" checked="false"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
30 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
31 <when value="paired_collection">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
32 <param name="input_1" format="fastq,gz" type="data_collection" collection_type="paired"
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
33 label="FASTQ Paired Dataset"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
34 <yield />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
35 <param name="SAME_HEADERS" type="boolean"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
36 label="Ensure headers of both reads of a pair are identical (SAME_HEADERS)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
37 help="Only applies if barcodes are added to the header (option ADD)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
38 truevalue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
39 falsevalue="false" checked="false"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
40 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
41 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
42
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
43 <token name="@single_or_paired_illu_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
44 @single_or_paired_cmd@
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
45 I1=$library.I1
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
46 #if str( $library.type ) != "single":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
47 #if str( $library.I2_CONDITIONAL.I2_AVAILABLE ) == "true":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
48 I2=${library.I2_CONDITIONAL.I2}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
49 BRED=${library.I2_CONDITIONAL.BRED_CONDITIONAL.BRED}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
50 #if str( $library.I2_CONDITIONAL.BRED_CONDITIONAL.BRED ) == "true":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
51 STRICT=${library.I2_CONDITIONAL.BRED_CONDITIONAL.STRICT}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
52 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
53 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
54 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
55 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
56
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
57 <xml name="single_or_paired_illu">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
58 <conditional name="library">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
59 <param name="type" type="select" label="Is this single or paired library">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
60 <option value="single">Single-end</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
61 <option value="paired">Paired-end</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
62 <option value="paired_collection">Paired-end Dataset Collection</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
63 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
64 <when value="single">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
65 <param name="input_1" format="fastq,gz" type="data" label="FASTQ file"/>
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
66 <param name="I1" type="data" format="fastq,gz" label="First Index File"/>
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
67 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
68 <expand macro="paired_options">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
69 <param name="I1" type="data" format="fastq,gz" label="First Index File"/>
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
70 <conditional name="I2_CONDITIONAL">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
71 <param name="I2_AVAILABLE" type="select" label="Do you have a second index file?">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
72 <option value="true">Yes</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
73 <option value="false" selected="true">No</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
74 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
75 <when value="true">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
76 <param name="I2" type="data" format="fastq,gz" label="Second Index File"/>
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
77 <expand macro="bred_conditional"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
78 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
79 <when value="false"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
80 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
81 </expand>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
82 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
83 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
84
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
85 <xml name="single_or_paired_general">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
86 <conditional name="library">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
87 <param name="type" type="select" label="Is this single or paired library">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
88 <option value="single">Single-end</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
89 <option value="paired">Paired-end</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
90 <option value="paired_collection">Paired-end Dataset Collection</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
91 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
92 <when value="single">
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
93 <param name="input_1" format="fastq,gz" type="data" label="FASTQ file"/>
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
94 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
95 <expand macro="paired_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
96 <yield />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
97 </expand>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
98 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
99 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
100
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
101 <token name="@demultiplex_paired_end_cmd_options@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
102 BPOS=$library.BPOS_CONDITIONAL.BPOS
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
103 #if str( $library.BPOS_CONDITIONAL.BPOS ) == "BOTH":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
104 BM=${library.BPOS_CONDITIONAL.BM_CONDITIIONAL.BM}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
105 #if str( $library.BPOS_CONDITIONAL.BM_CONDITIIONAL.BM ) == "BOTH":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
106 BRED=${library.BPOS_CONDITIONAL.BM_CONDITIIONAL.BRED_CONDITIONAL.BRED}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
107 #if str( $library.BPOS_CONDITIONAL.BM_CONDITIIONAL.BRED_CONDITIONAL.BRED ) == "true":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
108 STRICT=${library.BPOS_CONDITIONAL.BM_CONDITIIONAL.BRED_CONDITIONAL.STRICT}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
109 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
110 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
111 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
112 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
113
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
114 <xml name="demultiplex_paired_end_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
115 <conditional name="BPOS_CONDITIONAL">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
116 <param name="BPOS" type="select" label="Barcode read position (BPOS)" help="where are the barcodes">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
117 <option value="READ_1" selected="true">READ_1 (beginning of read from the first fastq file)</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
118 <option value="READ_2">READ_2 (beginning of read from the second fastq file)</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
119 <option value="BOTH">BOTH (beginning of both reads)</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
120 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
121 <when value="READ_1"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
122 <when value="READ_2"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
123 <when value="BOTH">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
124 <conditional name="BM_CONDITIIONAL">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
125 <param name="BM" type="select" label="Barcode for sample matching (BM)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
126 help="which barcode should be used for sample look up (BM option)." >
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
127 <option value="READ_1" selected="true">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
128 READ_1 (beginning of read from the first fastq file)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
129 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
130 <option value="READ_2">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
131 READ_2 (beginning of read from the second fastq file)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
132 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
133 <option value="BOTH">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
134 BOTH (beginning of both reads)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
135 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
136 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
137 <when value="READ_1"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
138 <when value="READ_2"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
139 <when value="BOTH">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
140 <expand macro="bred_conditional"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
141 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
142 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
143 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
144 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
145 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
146
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
147 <xml name="bred_conditional">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
148 <conditional name="BRED_CONDITIONAL">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
149 <param name="BRED" type="select" label="Redundant barcodes (BRED)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
150 help="are the barcodes REDUNDANT i.e. do they both resolve to the same sample.">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
151 <option value="true" selected="true">Yes</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
152 <option value="false">No</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
153 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
154 <when value="true">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
155 <param name="STRICT" type="boolean" label="Strict (S)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
156 truevalue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
157 falsevalue="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
158 checked="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
159 />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
160 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
161 <when value="false"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
162 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
163 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
164
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
165 <token name="@barcode_option_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
166 #if str( $barcodes.barcode_list_type_con ) == "text":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
167 BARCODE_FILE=${barcode_file_from_text}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
168 #else if str( $barcodes.barcode_list_type_con ) == "file":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
169 BARCODE_FILE=${barcodes.BARCODE_FILE}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
170 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
171 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
172
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
173 <xml name="barcode_option">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
174 <conditional name="barcodes">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
175 <param name="barcode_list_type_con" type="select" label="Barcode list input type">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
176 <option value="file" selected="true">Use a tab-delimited file from the history</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
177 <option value="text">Paste the barcodes list in a text field within the form</option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
178 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
179
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
180 <when value="file">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
181 <param name="BARCODE_FILE" type="data" format="tabular,txt" label="Barcode List"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
182 help="Barcode list format: one sample per line. First column is sample name and second is the
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
183 barcode, separated by tab or space. A third and fourth column can be used to specify the resulting
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
184 file names. See help below."/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
185 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
186
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
187 <when value="text">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
188 <param name="barcode_text" type="text" area="True" size="10x30"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
189 value="sample_name\tbarcode\n" label="Barcode List"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
190 help="Barcode list format: one sample per line. First column is sample name and second is the
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
191 barcode, separated by tab or space. A third and fourth column can be used to specify the resulting
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
192 file names. See help below.">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
193 <sanitizer>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
194 <valid initial="string.printable"></valid>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
195 <mapping initial="none"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
196 </sanitizer>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
197 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
198 </when>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
199 </conditional>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
200 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
201
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
202 <xml name="barcode_config_file">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
203 <configfile name="barcode_file_from_text">#set from_text_area = ''
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
204 #if str( $barcodes.barcode_list_type_con ) == "text":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
205 #set from_text_area = $barcodes.barcode_text
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
206 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
207 ${from_text_area}</configfile>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
208 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
209
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
210 <token name="@barcode_len_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
211 #if str( $LEN ) != "":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
212 BCLEN=$LEN
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
213 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
214 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
215
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
216 <xml name="barcode_len_option">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
217 <param name="LEN" type="text" value="" label="Barcode Length (LEN)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
218 help="If 'Barcode read position'=BOTH and 'Redundant barcodes'=False, two distinct
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
219 lengths can be provided using the syntax LEN=X:Z where X and Z are 2 integers representing
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
220 the barcode length for read_1 and read_2 respectively. Default: empty"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
221 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
222 <xml name="clip_barcode">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
223 <param name="CLIP_BARCODE" type="boolean" label="Remove barcode sequence from read (C)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
224 truevalue="true" falsevalue="false" checked="true"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
225 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
226
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
227 <token name="@demultiplexer_common_options_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
228 ADD=${ADD}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
229 MM=$MM
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
230 MMD=$MMD
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
231 Q=$MIN_BASE_QUALITY
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
232 QUALITY_FORMAT=$QUALITY_FORMAT
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
233 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
234 <xml name="demultiplexer_common_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
235 <param name="ADD" type="boolean"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
236 label="Add matched barcode at the end of the read header (ADD)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
237 truevalue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
238 falsevalue="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
239 checked="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
240 />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
241 <param name="MM" type="text" value="1" label="Maximum Mismatches (MM)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
242 help="Maximum mismatches for a barcode to be considered a match." />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
243
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
244 <param name="MMD" type="text" value="1" label="Minimum mismatch difference (MMD)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
245 help="Minimum difference between number of mismatches in the best and second best barcodes for a barcode
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
246 to be considered a match." />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
247
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
248 <param name="MIN_BASE_QUALITY" type="text" value="10" label="Minimum base quality (Q)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
249 help="Any barcode bases falling below this quality will be
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
250 considered a mismatch even in the bases match." />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
251
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
252 <param name="QUALITY_FORMAT" type="select" label="Fastq Quality Format (V)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
253 help="How are the quality values encoded in the fastq. Either 'Solexa' for
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
254 pre-pipeline 1.3 style scores (solexa scaling + 66), 'Illumina' for pipeline 1.3 and
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
255 above (phred scaling + 64) or 'Standard' for phred scaled scores with a character shift
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
256 of 33.">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
257 <option value="Standard" selected="true">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
258 Fastq - Illumina Casava v1.8 with Sanger coding quality (phred scaling + 33)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
259 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
260 <option value="Illumina">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
261 Fastq - Illumina v1.3 or above coding of quality (phred scaling + 64)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
262 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
263 <option value="Solexa">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
264 Fastq - Solexa-style quality (solexa scaling + 66)
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
265 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
266 <option value="null">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
267 Detect automatically
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
268 </option>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
269 </param>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
270 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
271
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
272 <token name="@demultiplexer_common_output_options_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
273 KEEP_UNASSIGNED_READ=$KEEP_UNASSIGNED_READ
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
274 STATS_ONLY=${adv_options.STATS_ONLY}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
275 #if str( $adv_options.DIAG ) == "true":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
276 BARCODE_DIAG_FILE=$BARCODE_DIAG_FILE
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
277 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
278 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
279 <xml name="demultiplexer_common_output_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
280 <param name="KEEP_UNASSIGNED_READ" type="boolean" label="Keep unassigned reads (KEEP_UNASSIGNED_READ)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
281 truealue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
282 falsevalue="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
283 checked="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
284 />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
285 <section name="adv_options" title="Advanced Options" expanded="False">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
286 <param name="DIAG" type="boolean" label="Output barcode match reporting file (DIAG)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
287 truevalue="true" falsevalue="false" checked="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
288 help="This file will
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
289 contain a line per read pair with the barcode best matching the read subsequence or 'null' when no
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
290 match is found according to matching parameters. This file is useful for debugging or further
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
291 processing in case both ends are barcoded."/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
292 <param name="STATS_ONLY" type="boolean" label="Only produce metric and diagnostic reports (STATS_ONLY)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
293 truevalue="true" falsevalue="false" checked="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
294 help="do not demultiplex." />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
295 </section>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
296 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
297
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
298 <token name="@common_options_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
299 XT=${XT}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
300 ZT=${ZT}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
301 #if str( $RCHAR ) != "":
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
302 RCHAR=${RCHAR}
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
303 #else:
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
304 RCHAR=null
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
305 #end if
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
306 GZ=${GZ}
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
307 OUTPUT_DIR=results
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
308 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
309 <xml name="common_options">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
310 <param name="XT" type="text" value="0"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
311 label="Extra number of bases to be trimmed right after the barcode (XT)" />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
312 <param name="ZT" type="text" value="0"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
313 label="Extra number of bases to be trimmed from the read end (ZT)" />
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
314
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
315 <param name="RCHAR" type="text"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
316 label="Replace white space in the read name/header with speficied symbols (RCHAR)"
2
1f8df7e35393 planemo upload for repository https://git.embl.de/grp-gbcs/Je/tree/master/src/galaxy commit 62411561ae3bc65ea8762d27ec79a7d912503e5b
gbcs-embl-heidelberg
parents: 0
diff changeset
317 help="Set to empty or null for no replacement."
0
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
318 value=":"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
319
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
320 <param name="GZ" type="boolean" hidden="true" label="Compress output (GZ)"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
321 help="will result in fastq.gz files."
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
322 truevalue="true"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
323 falsevalue="false"
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
324 checked="false"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
325 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
326
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
327 <token name="@demultiplexer_common_outputs_cmd@">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
328 METRICS_FILE_NAME=$METRICS_FILE_NAME
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
329 </token>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
330 <xml name="demultiplexer_common_outputs">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
331 <data name="METRICS_FILE_NAME" format="tabular" label="Je-Demultiplex result">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
332 <!--<discover_datasets pattern="(?P&lt;name&gt;.*)\.txt" ext="fastqsanger"-->
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
333 <discover_datasets pattern="(?P&lt;name&gt;.*)\.txt" directory="results" visible="true" ext="fastqsanger"/>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
334 </data>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
335 <data name="BARCODE_DIAG_FILE" format="tabular" label="Barcode statistics">
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
336 <filter>(adv_options['DIAG'] == 'true')</filter>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
337 </data>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
338 </xml>
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
339
111ba1180318 Initial upload
gbcs-embl-heidelberg
parents:
diff changeset
340 </macros>