0
|
1
|
|
2 <!--
|
|
3 Copyright (C) 2011-2014 CRS4.
|
|
4
|
|
5 This file is part of Seal.
|
|
6
|
|
7 Seal is free software: you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the Free
|
|
9 Software Foundation, either version 3 of the License, or (at your option)
|
|
10 any later version.
|
|
11
|
|
12 Seal is distributed in the hope that it will be useful, but
|
|
13 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License along
|
|
18 with Seal. If not, see <http://www.gnu.org/licenses/>.
|
|
19 -->
|
|
20
|
|
21
|
|
22 <tool id="seal_demux" name="Demux" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4" force_history_refresh="True">
|
|
23 <description>Demultiplex Illumina runs on Hadoop</description>
|
|
24 <requirements>
|
|
25 <requirement type="package" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4">seal</requirement>
|
|
26 <requirement type="package" version="0.11">pydoop</requirement>
|
|
27 <requirement type="package" version="0.1.3">hadoop-galaxy</requirement>
|
|
28 </requirements>
|
|
29
|
|
30 <command interpreter="python">
|
|
31 demux_galaxy.py
|
|
32 $input_data
|
|
33 $mismatches
|
|
34 $__new_file_path__
|
|
35 #if $num_reducers
|
|
36 $num_reducers
|
|
37 #else
|
|
38 null
|
|
39 #end if
|
|
40 $output1
|
|
41 $output1.id
|
|
42 $sample_sheet
|
|
43 $input_format
|
|
44 $output_format
|
|
45 $output_compression
|
|
46 #if $index.specify_index == 'present'
|
|
47 true
|
|
48 #else if $index.specify_index == 'not_present'
|
|
49 false
|
|
50 #else if $index.specify_index == 'dynamic'
|
|
51 $index_present
|
|
52 #else
|
|
53 #raise ValueError('Invalid index value!')
|
|
54 #end if
|
|
55 $separate_reads
|
|
56 </command>
|
|
57
|
|
58 <inputs>
|
|
59 <param name="input_data" type="data" format="pathset" label="Source data set"/>
|
|
60 <param name="sample_sheet" type="data" format="csv" label="Sample sheet" />
|
|
61
|
|
62 <conditional name="index">
|
|
63 <param name="specify_index" type="select" label="Index read" default="present">
|
|
64 <option value="present">Present</option>
|
|
65 <option value="not_present">Not present</option>
|
|
66 <option value="dynamic">Determine at runtime</option>
|
|
67 </param>
|
|
68 <when value="dynamic">
|
|
69 <param name="index_present" type="data" />
|
|
70 </when>
|
|
71 </conditional>
|
|
72
|
|
73 <param name="mismatches"
|
|
74 label="Barcode base mismatch limit"
|
|
75 type="integer"
|
|
76 value="0"
|
|
77 min="0"
|
|
78 max="3" />
|
|
79 <param name="num_reducers"
|
|
80 label="Number of reduce tasks"
|
|
81 type="integer"
|
|
82 value="90"
|
|
83 min="1"
|
|
84 optional="true"
|
|
85 />
|
|
86 <param name="input_format" type="select" label="Input data format" default="qseq">
|
|
87 <option value="qseq">Qseq</option>
|
|
88 <option value="fastq">Fastq</option>
|
|
89 </param>
|
|
90 <param name="output_format" type="select" label="Output data format" default="qseq">
|
|
91 <option value="qseq">Qseq</option>
|
|
92 <option value="fastq">Fastq</option>
|
|
93 </param>
|
|
94 <param name="output_compression" type="select" label="Output compression" default="none">
|
|
95 <option value="none">None</option>
|
|
96 <option value="gzip">Gzip</option>
|
|
97 <option value="bzip2">Bzip2</option>
|
|
98 </param>
|
|
99
|
|
100 <param name="separate_reads" type="boolean"
|
|
101 label="Separate reads by read number"
|
|
102 default="false"
|
|
103 truevalue="separate-reads"
|
|
104 />
|
|
105 </inputs>
|
|
106
|
|
107 <outputs>
|
|
108 <data name="output1" format="pathset" label="Demuxed" />
|
|
109 </outputs>
|
|
110
|
|
111 <stdio>
|
|
112 <exit_code range="1:" level="fatal" />
|
|
113 </stdio>
|
|
114
|
|
115 <help>
|
|
116 Demux is a Hadoop utility to demultiplex data from multiplexed Illumina runs.
|
|
117 </help>
|
|
118 </tool>
|