Mercurial > repos > bgruening > deeptools
comparison deepTools_macros.xml @ 70:a4bbac56f046 draft
planemo upload for repository https://github.com/fidelram/deepTools/tree/master/galaxy/wrapper/ commit f720d773e34ad90d14d7cae77c1a0bb5d126102c-dirty
author | bgruening |
---|---|
date | Fri, 18 Sep 2015 06:17:07 -0400 |
parents | 0eb2441d1fcf |
children | 106cd88dc9da |
comparison
equal
deleted
inserted
replaced
69:0eb2441d1fcf | 70:a4bbac56f046 |
---|---|
190 <yield /> | 190 <yield /> |
191 </citations> | 191 </citations> |
192 </xml> | 192 </xml> |
193 | 193 |
194 <xml name="multiple_input_bams"> | 194 <xml name="multiple_input_bams"> |
195 <repeat name="input_files" title="BAM files" min="2"> | 195 <param name="bamfiles" type="data" format="bam" |
196 <param name="bamfile" type="data" format="bam" | 196 label="Bam file" multiple="true" |
197 label="Bam file" | 197 help="The BAM file must be sorted."/> |
198 help="The BAM file must be sorted."/> | |
199 <param name="label" type="text" size="30" optional="true" value="" | |
200 label="Label" | |
201 help="Label to use in the output. If not given the dataset name will be used instead."/> | |
202 </repeat> | |
203 </xml> | 198 </xml> |
204 | 199 |
205 <xml name="multiple_input_bigwigs"> | 200 <xml name="multiple_input_bigwigs"> |
206 <repeat name="input_files" title="BigWig files" min="2"> | 201 <repeat name="input_files" title="BigWig files" min="2"> |
207 <param name="bigwigfile" type="data" format="bigwig" | 202 <param name="bigwigfile" type="data" format="bigwig" |
222 <token name="@multiple_input_bams@"> | 217 <token name="@multiple_input_bams@"> |
223 #import tempfile | 218 #import tempfile |
224 #set $temp_dir = os.path.abspath(tempfile.mkdtemp()) | 219 #set $temp_dir = os.path.abspath(tempfile.mkdtemp()) |
225 #set files=[] | 220 #set files=[] |
226 #set labels=[] | 221 #set labels=[] |
227 #for $i in $input_files: | 222 #for $i in $bamfiles: |
228 #set $temp_input_handle = tempfile.NamedTemporaryFile( dir=$temp_dir ) | 223 #set $temp_input_handle = tempfile.NamedTemporaryFile( dir=$temp_dir ) |
229 #set $temp_input_path = $temp_input_handle.name | 224 #set $temp_input_path = $temp_input_handle.name |
230 #silent $temp_input_handle.close() | 225 #silent $temp_input_handle.close() |
231 #silent os.system("ln -s %s %s.bam" % (str($i.bamfile), $temp_input_path)) | 226 #silent os.system("ln -s %s %s.bam" % (str($i), $temp_input_path)) |
232 #silent os.system("ln -s %s %s.bam.bai" % (str($i.bamfile.metadata.bam_index), $temp_input_path)) | 227 #silent os.system("ln -s %s %s.bam.bai" % (str($i.metadata.bam_index), $temp_input_path)) |
233 #silent $files.append('%s.bam' % $temp_input_path) | 228 #silent $files.append('%s.bam' % $temp_input_path) |
234 | 229 |
235 ##set $files += [str($i.bamfile)] | 230 #silent $labels.append("\"%s\"" % ($i.name)) |
236 #if str($i.label.value) != "": | |
237 #set $labels += ["\"%s\"" % ($i.label.value)] | |
238 #else | |
239 #set $labels += ["\"%s\"" % ($i.bamfile.name)] | |
240 #end if | |
241 #end for | 231 #end for |
242 </token> | 232 </token> |
243 | 233 |
244 <token name="@multiple_input_bigwigs@"> | 234 <token name="@multiple_input_bigwigs@"> |
245 #import tempfile | 235 #import tempfile |