annotate trim_galore_wrapper.xml @ 2:9109c2c3be1e draft

Uploaded
author bgruening
date Fri, 19 Jul 2013 09:37:45 -0400
parents 898db63d2e84
children eb546ac2aab2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
1 <tool id="trim_galore" name="Trim Galore" version="0.2.8">
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
2 <!-- Wrapper compatible with Trim Galore version 0.2.8 -->
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
3 <description>adaptive quality and adapter trimmer</description>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
4 <version_command interpreter="perl">trim_galore --version</version_command>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
5 <requirements>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
6 <requirement type="package" version="1.1">cutadapt</requirement>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
7 </requirements>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
8 <command interpreter="perl">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
9 #from glob import glob
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
10 #import tempfile, os
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
11
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
12 ##
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
13 ## Creating a temporary directory where trim_galore will store all result files
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
14 ##
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
15
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
16 #set $temp_dir = os.path.abspath(tempfile.mkdtemp())
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
17
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
18
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
19 ## trim_galore removes .fastq and .fq file extensions of input files.
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
20 ## That is essential if Galaxy provides links to files (these can have real extensions), but that behaviour is causing an inconsitency in output filenaming.
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
21 ## Fix: link every file to $TMP without file extension
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
22
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
23 #if $singlePaired.sPaired == "single":
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
24 #set $input_singles_tmp_handle = tempfile.NamedTemporaryFile( dir=$temp_dir )
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
25 #set $input_singles_tmp = $input_singles_tmp_handle.name
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
26 #silent $input_singles_tmp_handle.close()
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
27 #silent os.system("ln -s %s %s" % (str($singlePaired.input_singles), $input_singles_tmp))
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
28 #else:
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
29 #set $input_mate1_tmp_handle = tempfile.NamedTemporaryFile( dir=$temp_dir )
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
30 #set $input_mate2_tmp_handle = tempfile.NamedTemporaryFile( dir=$temp_dir )
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
31
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
32 #set $input_mate1_tmp = $input_mate1_tmp_handle.name
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
33 #silent $input_mate1_tmp_handle.close()
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
34
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
35 #set $input_mate2_tmp = $input_mate2_tmp_handle.name
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
36 #silent $input_mate2_tmp_handle.close()
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
37
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
38 #silent os.system("ln -s %s %s" % (str($singlePaired.input_mate1), $input_mate1_tmp))
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
39 #silent os.system("ln -s %s %s" % (str($singlePaired.input_mate2), $input_mate2_tmp))
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
40 #end if
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
41
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
42 trim_galore
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
43
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
44 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
45 ## Input parameters
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
46 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
47
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
48
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
49 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
50
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
51 ## default 20
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
52 --quality $params.quality
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
53 ## default 'AGATCGGAAGAGC'
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
54 #if $params.adapter.strip() != '':
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
55 --adapter $params.adapter
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
56 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
57 ## default 1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
58 --stringency $params.stringency
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
59
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
60 ## default 0.1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
61 -e $params.error_rate
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
62
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
63 ## default 20
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
64 --length $params.min_length
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
65
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
66 #if int($params.clip_R1) > 0:
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
67 --clip_R1 $params.clip_R1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
68 #end if
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
69
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
70 #if int($params.clip_R2) > 0:
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
71 --clip_R2 $params.clip_R2
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
72 #end if
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
73
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
74 #if $params.retain_unpaired.settingsType == "retain_unpaired_output":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
75 --retain_unpaired
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
76 --length_1 $params.retain_unpaired.length_1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
77 --length_2 $params.retain_unpaired.length_2
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
78 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
79
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
80 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
81
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
82 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
83 ## RBBS specific options.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
84 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
85
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
86 #if $rrbs.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
87
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
88 $rrbs.rrbs
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
89 $rrbs.non_directional
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
90
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
91 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
92
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
93 --output_dir $temp_dir
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
94 --suppress_warn
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
95
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
96
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
97 #if $singlePaired.sPaired == "single":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
98
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
99 #if $singlePaired.input_singles.ext == "fastqillumina":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
100 --phred64
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
101 #elif $singlePaired.input_singles.ext == "fastqsanger":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
102 --phred33
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
103 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
104
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
105 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
106 #if not $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
107 --no_report_file
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
108 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
109 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
110
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
111 ## input sequence
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
112 $input_singles_tmp
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
113 #else:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
114 --paired
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
115 #if $singlePaired.input_mate1.ext == "fastqillumina":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
116 --phred64
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
117 #elif $singlePaired.input_mate1.ext == "fastqsanger":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
118 --phred33
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
119 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
120
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
121 $singlePaired.trim1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
122 #if $singlePaired.adapter2.strip() != '':
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
123 --adapter2 $singlePaired.adapter2
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
124 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
125
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
126 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
127 #if not $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
128 --no_report_file
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
129 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
130 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
131
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
132 ## input sequences
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
133 $input_mate1_tmp
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
134 $input_mate2_tmp
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
135
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
136 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
137
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
138 &amp;&amp;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
139
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
140 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
141 ## Trim Galore! run is finished. Move the result files to the proper place
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
142 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
143
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
144
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
145 #if $singlePaired.sPaired == "single":
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
146 #set $single_end_path = os.path.join($temp_dir, os.path.basename(str($input_singles_tmp)) + '_trimmed.fq')
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
147 mv $single_end_path $trimmed_reads_single;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
148
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
149 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
150 #if $params.report:
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
151 #set $report_path = os.path.join($temp_dir, os.path.basename(str($input_singles_tmp)) + '_trimming_report.txt')
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
152 mv $report_path $report_file;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
153 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
154 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
155
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
156 #else:
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
157 #set $paired_end_path_1 = os.path.join($temp_dir, os.path.basename(str($input_mate1_tmp)) + '_val_1.fq')
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
158 #set $paired_end_path_2 = os.path.join($temp_dir, os.path.basename(str($input_mate2_tmp)) + '_val_2.fq')
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
159 mv $paired_end_path_1 $trimmed_reads_pair1;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
160 mv $paired_end_path_2 $trimmed_reads_pair2;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
161
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
162 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
163 #if $params.retain_unpaired.settingsType == "retain_unpaired_output":
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
164 #set $unpaired_path_1 = os.path.join($temp_dir, os.path.basename(str($input_mate1_tmp)) + '_unpaired_1.fq')
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
165 #set $unpaired_path_2 = os.path.join($temp_dir, os.path.basename(str($input_mate2_tmp)) + '_unpaired_2.fq')
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
166 mv $unpaired_path_1 $unpaired_reads_1;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
167 mv $unpaired_path_2 $unpaired_reads_2;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
168 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
169
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
170 #if $params.report:
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
171 #set $report_path = os.path.join($temp_dir, os.path.basename(str($input_mate1_tmp)) + '_trimming_report.txt')
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
172 mv $report_path $report_file;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
173 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
174
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
175 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
176 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
177
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
178 ## delete the temp_dir
2
9109c2c3be1e Uploaded
bgruening
parents: 1
diff changeset
179 rm -rf $temp_dir
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
180
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
181 </command>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
182 <inputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
183
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
184 <!-- Input Parameters -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
185 <conditional name="singlePaired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
186 <param name="sPaired" type="select" label="Is this library mate-paired?">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
187 <option value="single">Single-end</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
188 <option value="paired">Paired-end</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
189 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
190 <when value="single">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
191 <param name="input_singles" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="FASTQ/FASTA file" help="FASTQ or FASTA files." />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
192 </when>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
193 <when value="paired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
194 <param name="input_mate1" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="FASTQ/FASTA file" help="FASTQ or FASTA files." />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
195 <param name="input_mate2" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="FASTQ/FASTA file" help="FASTQ or FASTA files." />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
196 <param name="trim1" type="boolean" truevalue="--trim1" falsevalue="" checked="False" label="Trims 1 bp off every read from its 3' end." help="" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
197 <param name="adapter2" type="text" value="" label="Optional adapter sequence to be trimmed off read 2">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
198 <validator type="regex" message="Adapter sequence must contain DNA characters only (A,C,T,G or N)">^[ACTGNactgn]*$</validator>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
199 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
200 </when>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
201 </conditional>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
202
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
203
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
204 <conditional name="params">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
205 <param name="settingsType" type="select" label="Trim galore! advanced settings" help="You can use the default settings or set custom values for any of Trim Galore's parameters.">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
206 <option value="default">Use Defaults</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
207 <option value="custom">Full parameter list</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
208 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
209 <when value="default" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
210 <!-- Full/advanced params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
211 <when value="custom">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
212 <param name="quality" type="integer" value="20" label="Trim low-quality ends from reads in addition to adapter removal." help="For more information please see below." />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
213 <param name="adapter" type="text" value="AGATCGGAAGAGC" label="Adapter sequence to be trimmed">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
214 <validator type="regex" message="Adapter sequence must contain DNA characters only (A,C,T,G or N)">^[ACTGNactgn]*$</validator>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
215 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
216 <param name="stringency" type="integer" value="1" label="Overlap with adapter sequence required to trim a sequence" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
217 <param name="error_rate" type="float" value="0.1" label="Maximum allowed error rate" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
218 <param name="min_length" type="integer" value="20" label="Discard reads that became shorter than length INT" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
219
1
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
220 <param name="clip_R1" type="integer" value="0" label="nstructs Trim Galore to remove INT bp from the 5' end of read 1" />
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
221 <param name="clip_R2" type="integer" value="0" label="nstructs Trim Galore to remove INT bp from the 5' end of read 2" />
898db63d2e84 upgrade to new version
bgruening
parents: 0
diff changeset
222
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
223 <param name="report" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Generate a report file" help="" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
224
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
225 <conditional name="retain_unpaired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
226 <param name="settingsType" type="select" label="specify if you would like to retain unpaired reads">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
227 <option value="no_output">Do not output unpaired reads</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
228 <option value="retain_unpaired_output">Output unpaired reads</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
229 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
230 <when value="no_output" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
231 <!-- Output params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
232 <when value="retain_unpaired_output">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
233 <param name="length_1" type="integer" value="35" label="Unpaired single-end read length cutoff needed for read 1 to be written" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
234 <param name="length_2" type="integer" value="35" label="Unpaired single-end read length cutoff needed for read 2 to be written" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
235 </when> <!-- output -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
236 </conditional> <!-- retain_unpaired -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
237
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
238 </when> <!-- full -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
239 </conditional> <!-- params -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
240
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
241 <conditional name="rrbs">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
242 <param name="settingsType" type="select" label="RRBS specific settings">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
243 <option value="default">Use Defaults (no RRBS)</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
244 <option value="custom">Full parameter list</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
245 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
246 <when value="default" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
247 <!-- Full/advanced params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
248 <when value="custom">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
249 <param name="rrbs" type="boolean" truevalue="--rrbs" falsevalue="" checked="True" label="Specifies that the input file was an MspI digested RRBS sample" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
250 <param name="non_directional" type="boolean" truevalue="--non_directional" falsevalue="" checked="False" label="Selecting this option for non-directional RRBS libraries" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
251 </when> <!-- full -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
252 </conditional> <!-- params -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
253
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
254 </inputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
255 <outputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
256
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
257 <data format="fastq" name="trimmed_reads_single" label="${tool.name} on ${on_string}: trimmed reads">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
258 <filter>singlePaired['sPaired'] == "single"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
259 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
260 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
261 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
262 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
263 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
264 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
265
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
266 <data format="fastq" name="trimmed_reads_pair1" label="${tool.name} on ${on_string}: trimmed reads pair 1">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
267 <filter>singlePaired['sPaired'] == "paired"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
268 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
269 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
270 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
271 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
272 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
273 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
274
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
275 <data format="fastq" name="trimmed_reads_pair2" label="${tool.name} on ${on_string}: trimmed reads pair 2">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
276 <filter>singlePaired['sPaired'] == "paired"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
277 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
278 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
279 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
280 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
281 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
282 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
283
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
284 <data format="fastq" name="unpaired_reads_1" label="${tool.name} on ${on_string}: unpaired reads (1)">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
285 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
286 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
287 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
288 params['retain_unpaired']['settingsType'] == "retain_unpaired_output"
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
289 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
290 </filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
291 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
292 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
293 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
294 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
295 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
296 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
297
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
298 <data format="fastq" name="unpaired_reads_2" label="${tool.name} on ${on_string}: unpaired reads (2)">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
299 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
300 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
301 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
302 params['retain_unpaired']['settingsType'] == "retain_unpaired_output"
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
303 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
304 </filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
305 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
306 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
307 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
308 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
309 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
310 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
311
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
312 <data format="txt" name="report_file" label="${tool.name} on ${on_string}: report file">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
313 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
314 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
315 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
316 params['report'] == True
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
317 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
318 </filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
319 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
320
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
321 </outputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
322 <tests>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
323 </tests>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
324
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
325 <help>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
326
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
327 **What it does**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
328
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
329 TrimGalore!_ is a wrapper script that makes use of the publically available
2
9109c2c3be1e Uploaded
bgruening
parents: 1
diff changeset
330 adapter trimming tool Cutadapt.
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
331
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
332
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
333 .. _TrimGalore!: http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
334
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
335
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
336 It is developed by Krueger F at the Babraham Institute.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
337
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
338 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
339
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
340
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
341 </help>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
342 </tool>