annotate trim_galore_wrapper.xml @ 1:898db63d2e84 draft

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