annotate trim_galore_wrapper.xml @ 0:3c1664caa8e3 draft

Uploaded
author bgruening
date Sat, 06 Jul 2013 09:52:23 -0400
parents
children 898db63d2e84
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
1 <tool id="trim_galore" name="Trim Galore" version="0.2.4.1">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
2 <!-- Wrapper compatible with Trim Galore version 0.2.4.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
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
12
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
13 trim_galore
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
14
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
15 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
16 ## Input parameters
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
17 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
18
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
19
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
20 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
21
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
22 $params.fastqc
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
23 ## default 20
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
24 --quality $params.quality
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
25 ## default 'AGATCGGAAGAGC'
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
26 #if $params.adapter.strip() != '':
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
27 --adapter $params.adapter
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
28 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
29 ## default 1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
30 --stringency $params.stringency
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
31
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
32 ## default 0.1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
33 -e $params.error_rate
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
34
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
35 ## default 20
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
36 --length $params.min_length
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
37
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
38 #if $params.retain_unpaired.settingsType == "retain_unpaired_output":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
39 --retain_unpaired
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
40 --length_1 $params.retain_unpaired.length_1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
41 --length_2 $params.retain_unpaired.length_2
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
42 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
43
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
44 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
45
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
46 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
47 ## RBBS specific options.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
48 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
49
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
50 #if $rrbs.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
51
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
52 $rrbs.rrbs
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
53 $rrbs.non_directional
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
54
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
55 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
56
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
57 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
58 ## Creating a temporary directory where trim_galore will store all result files
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
59 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
60
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
61 #set $temp_dir = os.path.abspath(tempfile.mkdtemp())
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
62
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
63 --output_dir $temp_dir
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
64 --suppress_warn
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
65
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
66
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
67 #if $singlePaired.sPaired == "single":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
68
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
69 #if $singlePaired.input_singles.ext == "fastqillumina":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
70 --phred64
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
71 #elif $singlePaired.input_singles.ext == "fastqsanger":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
72 --phred33
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
73 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
74
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
75 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
76 #if not $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
77 --no_report_file
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
78 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
79 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
80
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
81 ## input sequence
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
82 $singlePaired.input_singles
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
83 #else:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
84 --paired
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
85 #if $singlePaired.input_mate1.ext == "fastqillumina":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
86 --phred64
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
87 #elif $singlePaired.input_mate1.ext == "fastqsanger":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
88 --phred33
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
89 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
90
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
91 $singlePaired.trim1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
92 #if $singlePaired.adapter2.strip() != '':
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
93 --adapter2 $singlePaired.adapter2
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
94 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
95
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
96 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
97 #if not $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
98 --no_report_file
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
99 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
100 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
101
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
102 ## input sequences
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
103 $singlePaired.input_mate1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
104 $singlePaired.input_mate2
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
105
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
106 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
107
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
108 &amp;&amp;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
109
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
110 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
111 ## Trim Galore! run is finished. Move the result files to the proper place
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
112 ##
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
113
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
114
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
115 #if $singlePaired.sPaired == "single":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
116 #set $single_end_path = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_singles)) + '_trimmed.fq')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
117 mv $single_end_path $trimmed_reads_single;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
118
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
119 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
120 #if $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
121 #set $report_path = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_singles)) + '_trimming_report.txt')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
122 mv $report_path $report_file;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
123 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
124 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
125
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
126 #else:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
127 #set $paired_end_path_1 = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_mate1)) + '_val_1.fq')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
128 #set $paired_end_path_2 = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_mate2)) + '_val_2.fq')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
129 mv $paired_end_path_1 $trimmed_reads_pair1;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
130 mv $paired_end_path_2 $trimmed_reads_pair2;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
131
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
132 #if $params.settingsType == "custom":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
133 #if $params.retain_unpaired.settingsType == "retain_unpaired_output":
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
134 #set $unpaired_path_1 = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_mate1)) + '_unpaired_1.fq')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
135 #set $unpaired_path_2 = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_mate2)) + '_unpaired_2.fq')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
136 mv $unpaired_path_1 $unpaired_reads_1;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
137 mv $unpaired_path_2 $unpaired_reads_2;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
138 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
139
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
140 #if $params.report:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
141 #set $report_path = os.path.join($temp_dir, os.path.basename(str($singlePaired.input_mate1)) + '_trimming_report.txt')
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
142 mv $report_path $report_file;
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
143 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
144
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
145 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
146 #end if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
147
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
148 ## delete the temp_dir
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
149 rm -rf $temp_dir
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
150
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
151 </command>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
152 <inputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
153
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
154 <!-- Input Parameters -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
155 <conditional name="singlePaired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
156 <param name="sPaired" type="select" label="Is this library mate-paired?">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
157 <option value="single">Single-end</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
158 <option value="paired">Paired-end</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
159 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
160 <when value="single">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
161 <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
162 </when>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
163 <when value="paired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
164 <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
165 <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
166 <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
167 <param name="adapter2" type="text" value="" label="Optional adapter sequence to be trimmed off read 2">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
168 <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
169 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
170 </when>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
171 </conditional>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
172
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
173
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
174 <conditional name="params">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
175 <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
176 <option value="default">Use Defaults</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
177 <option value="custom">Full parameter list</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
178 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
179 <when value="default" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
180 <!-- Full/advanced params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
181 <when value="custom">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
182 <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
183 <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
184 <param name="adapter" type="text" value="AGATCGGAAGAGC" label="Adapter sequence to be trimmed">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
185 <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
186 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
187 <param name="stringency" type="integer" value="1" label="Overlap with adapter sequence required to trim a sequence" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
188 <param name="error_rate" type="float" value="0.1" label="Maximum allowed error rate" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
189 <param name="min_length" type="integer" value="20" label="Discard reads that became shorter than length INT" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
190
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
191 <param name="report" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Generate a report file" help="" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
192
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
193 <conditional name="retain_unpaired">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
194 <param name="settingsType" type="select" label="specify if you would like to retain unpaired reads">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
195 <option value="no_output">Do not output unpaired reads</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
196 <option value="retain_unpaired_output">Output unpaired reads</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
197 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
198 <when value="no_output" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
199 <!-- Output params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
200 <when value="retain_unpaired_output">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
201 <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
202 <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
203 </when> <!-- output -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
204 </conditional> <!-- retain_unpaired -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
205
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
206 </when> <!-- full -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
207 </conditional> <!-- params -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
208
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
209 <conditional name="rrbs">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
210 <param name="settingsType" type="select" label="RRBS specific settings">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
211 <option value="default">Use Defaults (no RRBS)</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
212 <option value="custom">Full parameter list</option>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
213 </param>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
214 <when value="default" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
215 <!-- Full/advanced params. -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
216 <when value="custom">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
217 <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
218 <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
219 </when> <!-- full -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
220 </conditional> <!-- params -->
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
221
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
222 </inputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
223 <outputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
224
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
225 <data format="fastq" name="trimmed_reads_single" label="${tool.name} on ${on_string}: trimmed reads">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
226 <filter>singlePaired['sPaired'] == "single"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
227 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
228 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
229 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
230 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
231 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
232 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
233
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
234 <data format="fastq" name="trimmed_reads_pair1" label="${tool.name} on ${on_string}: trimmed reads pair 1">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
235 <filter>singlePaired['sPaired'] == "paired"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
236 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
237 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
238 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
239 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
240 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
241 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
242
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
243 <data format="fastq" name="trimmed_reads_pair2" label="${tool.name} on ${on_string}: trimmed reads pair 2">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
244 <filter>singlePaired['sPaired'] == "paired"</filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
245 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
246 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
247 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
248 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
249 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
250 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
251
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
252 <data format="fastq" name="unpaired_reads_1" label="${tool.name} on ${on_string}: unpaired reads (1)">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
253 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
254 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
255 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
256 params['retain_unpaired']['settingsType'] == "retain_unpaired_output"
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
257 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
258 </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_mate1" 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="unpaired_reads_2" label="${tool.name} on ${on_string}: unpaired reads (2)">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
267 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
268 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
269 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
270 params['retain_unpaired']['settingsType'] == "retain_unpaired_output"
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
271 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
272 </filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
273 <actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
274 <action type="format">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
275 <option type="from_param" name="singlePaired.input_mate1" param_attribute="ext" />
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
276 </action>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
277 </actions>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
278 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
279
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
280 <data format="txt" name="report_file" label="${tool.name} on ${on_string}: report file">
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
281 <filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
282 ((
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
283 params['settingsType'] == "custom" and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
284 params['report'] == True
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
285 ))
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
286 </filter>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
287 </data>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
288
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
289 </outputs>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
290 <tests>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
291 </tests>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
292
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
293 <help>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
294
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
295 **What it does**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
296
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
297 TrimGalore!_ is a wrapper script that makes use of the publically available
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
298 adapter trimming tool Cutadapt and FastQC for optional quality control once
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
299 the trimming process has completed.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
300
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
301
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
302 .. _TrimGalore!: http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
303
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
304
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
305 It is developed by Krueger F at the Babraham Institute.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
306
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
307 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
308
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
309 **Know what you are doing**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
310
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
311 .. class:: warningmark
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
312
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
313 There is no such thing (yet) as an automated gearshift in short read mapping. It is all like stick-shift driving in San Francisco. In other words = running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
314
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
315 .. __: http://www.bioinformatics.babraham.ac.uk/projects/bismark/
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
316
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
317 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
318
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
319 **Input formats**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
320
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
321 Bismark accepts files in either Sanger FASTQ format (galaxy type *fastqsanger*), Illumina FASTQ format (galaxy type *fastqillumina*) or FASTA format (galaxy type *fasta*). Use the FASTQ Groomer to prepare your files.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
322
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
323 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
324
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
325 **A Note on Built-in Reference Genomes**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
326
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
327 The default variant for all genomes is "Full", defined as all primary chromosomes (or scaffolds/contigs) including mitochondrial plus associated unmapped, plasmid, and other segments. When only one version of a genome is available in this tool, it represents the default "Full" variant. Some genomes will have more than one variant available. The "Canonical Male" or sometimes simply "Canonical" variant contains the primary chromosomes for a genome. For example a human "Canonical" variant contains chr1-chr22, chrX, chrY, and chrM. The "Canonical Female" variant contains the primary chromosomes excluding chrY.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
328
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
329 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
330
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
331 The final output of Bismark is in SAM format by default.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
332
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
333 **Outputs**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
334
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
335 The output is in SAM format, and has the following columns::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
336
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
337 Column Description
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
338 -------- --------------------------------------------------------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
339 1 QNAME seq-ID
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
340 2 FLAG this flag tries to take the strand a bisulfite read
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
341 originated from into account
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
342 (this is different from ordinary DNA alignment flags!)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
343 3 RNAME chromosome
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
344 4 POS start position
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
345 5 MAPQ always 255
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
346 6 CIGAR extended CIGAR string
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
347 7 MRNM Mate Reference sequence NaMe ('=' if same as RNAME)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
348 8 MPOS 1-based Mate POSition
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
349 9 ISIZE Inferred insert SIZE
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
350 10 SEQ query SEQuence on the same strand as the reference
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
351 11 QUAL Phred33 scale
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
352 12 NM-tag edit distance to the reference)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
353 13 XX-tag base-by-base mismatches to the reference.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
354 This does not include indels.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
355 14 XM-tag methylation call string
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
356 15 XR-tag read conversion state for the alignment
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
357 16 XG-tag genome conversion state for the alignment
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
358
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
359
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
360 Each read of paired-end alignments is written out in a separate line in the above format.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
361
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
362
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
363 It looks like this (scroll sideways to see the entire example)::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
364
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
365 QNAME FLAG RNAME POS MAPQ CIAGR MRNM MPOS ISIZE SEQ QUAL OPT
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
366 HWI-EAS91_1_30788AAXX:1:1:1761:343 4 * 0 0 * * 0 0 AAAAAAANNAAAAAAAAAAAAAAAAAAAAAAAAAAACNNANNGAGTNGNNNNNNNGCTTCCCACAGNNCTGG hhhhhhh;;hhhhhhhhhhh^hOhhhhghhhfhhhgh;;h;;hhhh;h;;;;;;;hhhhhhghhhh;;Phhh
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
367 HWI-EAS91_1_30788AAXX:1:1:1578:331 4 * 0 0 * * 0 0 GTATAGANNAATAAGAAAAAAAAAAATGAAGACTTTCNNANNTCTGNANNNNNNNTCTTTTTTCAGNNGTAG hhhhhhh;;hhhhhhhhhhhhhhhhhhhhhhhhhhhh;;h;;hhhh;h;;;;;;;hhhhhhhhhhh;;hhVh
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
368
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
369 -------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
370
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
371 **Bismark settings**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
372
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
373 All of the options have a default value. You can change any of them. If any Bismark function is missing please contact the tool author or your Galaxy admin.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
374
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
375 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
376
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
377 **Bismark parameter list**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
378
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
379 This is an exhaustive list of Bismark options:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
380
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
381 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
382
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
383 **OPTIONS**
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
384
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
385
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
386 Input::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
387
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
388 --singles A comma- or space-separated list of files containing the reads to be aligned (e.g.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
389 lane1.fq,lane2.fq lane3.fq). Reads may be a mix of different lengths. Bismark will
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
390 produce one mapping result and one report file per input file.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
391
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
392 -1 mates1 Comma-separated list of files containing the #1 mates (filename usually includes
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
393 "_1"), e.g. flyA_1.fq,flyB_1.fq). Sequences specified with this option must
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
394 correspond file-for-file and read-for-read with those specified in mates2.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
395 Reads may be a mix of different lengths. Bismark will produce one mapping result
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
396 and one report file per paired-end input file pair.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
397
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
398 -2 mates2 Comma-separated list of files containing the #2 mates (filename usually includes
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
399 "_2"), e.g. flyA_1.fq,flyB_1.fq). Sequences specified with this option must
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
400 correspond file-for-file and read-for-read with those specified in mates1.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
401 Reads may be a mix of different lengths.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
402
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
403 -q/--fastq The query input files (specified as mate1,mate2 or singles are FASTQ
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
404 files (usually having extension .fg or .fastq). This is the default. See also
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
405 --solexa-quals.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
406
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
407 -f/--fasta The query input files (specified as mate1,mate2 or singles are FASTA
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
408 files (usually havin extension .fa, .mfa, .fna or similar). All quality values
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
409 are assumed to be 40 on the Phred scale.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
410
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
411 -s/--skip INT Skip (i.e. do not align) the first INT reads or read pairs from the input.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
412
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
413 -u/--upto INT Only aligns the first INT reads or read pairs from the input. Default: no limit.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
414
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
415 --phred33-quals FASTQ qualities are ASCII chars equal to the Phred quality plus 33. Default: on.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
416
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
417 --phred64-quals FASTQ qualities are ASCII chars equal to the Phred quality plus 64. Default: off.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
418
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
419 --solexa-quals Convert FASTQ qualities from solexa-scaled (which can be negative) to phred-scaled
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
420 (which can't). The formula for conversion is:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
421 phred-qual = 10 * log(1 + 10 ** (solexa-qual/10.0)) / log(10). Used with -q. This
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
422 is usually the right option for use with (unconverted) reads emitted by the GA
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
423 Pipeline versions prior to 1.3. Works only for Bowtie 1. Default: off.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
424
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
425 --solexa1.3-quals Same as --phred64-quals. This is usually the right option for use with (unconverted)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
426 reads emitted by GA Pipeline version 1.3 or later. Default: off.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
427
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
428
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
429 Alignment::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
430
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
431 -n/--seedmms INT The maximum number of mismatches permitted in the "seed", i.e. the first L base pairs
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
432 of the read (where L is set with -l/--seedlen). This may be 0, 1, 2 or 3 and the
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
433 default is 1. This option is only available for Bowtie 1 (for Bowtie 2 see -N).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
434
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
435 -l/--seedlen The "seed length"; i.e., the number of bases of the high quality end of the read to
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
436 which the -n ceiling applies. The default is 28. Bowtie (and thus Bismark) is faster for
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
437 larger values of -l. This option is only available for Bowtie 1 (for Bowtie 2 see -L).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
438
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
439 -e/--maqerr INT Maximum permitted total of quality values at all mismatched read positions throughout
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
440 the entire alignment, not just in the "seed". The default is 70. Like Maq, bowtie rounds
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
441 quality values to the nearest 10 and saturates at 30. This value is not relevant for
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
442 Bowtie 2.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
443
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
444 --chunkmbs INT The number of megabytes of memory a given thread is given to store path descriptors in
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
445 --best mode. Best-first search must keep track of many paths at once to ensure it is
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
446 always extending the path with the lowest cumulative cost. Bowtie tries to minimize the
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
447 memory impact of the descriptors, but they can still grow very large in some cases. If
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
448 you receive an error message saying that chunk memory has been exhausted in --best mode,
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
449 try adjusting this parameter up to dedicate more memory to the descriptors. This value
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
450 is not relevant for Bowtie 2. Default: 512.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
451
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
452 -I/--minins INT The minimum insert size for valid paired-end alignments. E.g. if -I 60 is specified and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
453 a paired-end alignment consists of two 20-bp alignments in the appropriate orientation
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
454 with a 20-bp gap between them, that alignment is considered valid (as long as -X is also
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
455 satisfied). A 19-bp gap would not be valid in that case. Default: 0.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
456
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
457 -X/--maxins INT The maximum insert size for valid paired-end alignments. E.g. if -X 100 is specified and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
458 a paired-end alignment consists of two 20-bp alignments in the proper orientation with a
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
459 60-bp gap between them, that alignment is considered valid (as long as -I is also satisfied).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
460 A 61-bp gap would not be valid in that case. Default: 500.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
461
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
462
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
463
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
464 Output::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
465
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
466 --non_directional The sequencing library was constructed in a non strand-specific manner, alignments to all four
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
467 bisulfite strands will be reported. Default: OFF.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
468
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
469 (The current Illumina protocol for BS-Seq is directional, in which case the strands complementary
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
470 to the original strands are merely theoretical and should not exist in reality. Specifying directional
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
471 alignments (which is the default) will only run 2 alignment threads to the original top (OT)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
472 or bottom (OB) strands in parallel and report these alignments. This is the recommended option
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
473 for sprand-specific libraries).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
474
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
475 --sam-no-hd Suppress SAM header lines (starting with @). This might be useful when very large input files are
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
476 split up into several smaller files to run concurrently and the output files are to be merged.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
477
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
478 --quiet Print nothing besides alignments.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
479
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
480 --vanilla Performs bisulfite mapping with Bowtie 1 and prints the 'old' output (as in Bismark 0.5.X) instead
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
481 of SAM format output.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
482
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
483 -un/--unmapped Write all reads that could not be aligned to a file in the output directory. Written reads will
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
484 appear as they did in the input, without any translation of quality values that may have
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
485 taken place within Bowtie or Bismark. Paired-end reads will be written to two parallel files with _1
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
486 and _2 inserted in their filenames, i.e. _unmapped_reads_1.txt and unmapped_reads_2.txt. Reads
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
487 with more than one valid alignment with the same number of lowest mismatches (ambiguous mapping)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
488 are also written to _unmapped_reads.txt unless the option --ambiguous is specified as well.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
489
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
490 --ambiguous Write all reads which produce more than one valid alignment with the same number of lowest
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
491 mismatches or other reads that fail to align uniquely to a file in the output directory.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
492 Written reads will appear as they did in the input, without any of the translation of quality
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
493 values that may have taken place within Bowtie or Bismark. Paired-end reads will be written to two
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
494 parallel files with _1 and _2 inserted in theit filenames, i.e. _ambiguous_reads_1.txt and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
495 _ambiguous_reads_2.txt. These reads are not written to the file specified with --un.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
496
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
497 -o/--output_dir DIR Write all output files into this directory. By default the output files will be written into
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
498 the same folder as the input file(s). If the specified folder does not exist, Bismark will attempt
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
499 to create it first. The path to the output folder can be either relative or absolute.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
500
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
501 --temp_dir DIR Write temporary files to this directory instead of into the same directory as the input files. If
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
502 the specified folder does not exist, Bismark will attempt to create it first. The path to the
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
503 temporary folder can be either relative or absolute.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
504
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
505 ------
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
506
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
507 Bowtie 2 alignment options::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
508
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
509 -N INT Sets the number of mismatches to allowed in a seed alignment during multiseed alignment.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
510 Can be set to 0 or 1. Setting this higher makes alignment slower (often much slower)
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
511 but increases sensitivity. Default: 0. This option is only available for Bowtie 2 (for
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
512 Bowtie 1 see -n).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
513
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
514 -L INT Sets the length of the seed substrings to align during multiseed alignment. Smaller values
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
515 make alignment slower but more senstive. Default: the --sensitive preset of Bowtie 2 is
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
516 used by default, which sets -L to 20. This option is only available for Bowtie 2 (for
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
517 Bowtie 1 see -l).
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
518
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
519 --ignore-quals When calculating a mismatch penalty, always consider the quality value at the mismatched
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
520 position to be the highest possible, regardless of the actual value. I.e. input is treated
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
521 as though all quality values are high. This is also the default behavior when the input
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
522 doesn't specify quality values (e.g. in -f mode). This option is invariable and on by default.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
523
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
524
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
525 Bowtie 2 paired-end options::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
526
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
527 --no-mixed This option disables Bowtie 2's behavior to try to find alignments for the individual mates if
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
528 it cannot find a concordant or discordant alignment for a pair. This option is invariable and
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
529 and on by default.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
530
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
531 --no-discordant Normally, Bowtie 2 looks for discordant alignments if it cannot find any concordant alignments.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
532 A discordant alignment is an alignment where both mates align uniquely, but that does not
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
533 satisfy the paired-end constraints (--fr/--rf/--ff, -I, -X). This option disables that behavior
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
534 and it is on by default.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
535
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
536
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
537 Bowtie 2 effort options::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
538
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
539 -D INT Up to INT consecutive seed extension attempts can "fail" before Bowtie 2 moves on, using
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
540 the alignments found so far. A seed extension "fails" if it does not yield a new best or a
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
541 new second-best alignment. Default: 15.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
542
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
543 -R INT INT is the maximum number of times Bowtie 2 will "re-seed" reads with repetitive seeds.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
544 When "re-seeding," Bowtie 2 simply chooses a new set of reads (same length, same number of
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
545 mismatches allowed) at different offsets and searches for more alignments. A read is considered
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
546 to have repetitive seeds if the total number of seed hits divided by the number of seeds
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
547 that aligned at least once is greater than 300. Default: 2.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
548
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
549
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
550 Bowtie 2 Scoring options::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
551
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
552 --score_min "func" Sets a function governing the minimum alignment score needed for an alignment to be considered
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
553 "valid" (i.e. good enough to report). This is a function of read length. For instance, specifying
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
554 L,0,-0.2 sets the minimum-score function f to f(x) = 0 + -0.2 * x, where x is the read length.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
555 See also: setting function options at http://bowtie-bio.sourceforge.net/bowtie2. The default is
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
556 L,0,-0.2.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
557
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
558
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
559 Bowtie 2 Reporting options::
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
560
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
561 --most_valid_alignments INT This used to be the Bowtie 2 parameter -M. As of Bowtie 2 version 2.0.0 beta7 the option -M is
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
562 deprecated. It will be removed in subsequent versions. What used to be called -M mode is still the
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
563 default mode, but adjusting the -M setting is deprecated. Use the -D and -R options to adjust the
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
564 effort expended to find valid alignments.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
565
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
566 For reference, this used to be the old (now deprecated) description of -M:
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
567 Bowtie 2 searches for at most INT+1 distinct, valid alignments for each read. The search terminates when it
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
568 can't find more distinct valid alignments, or when it finds INT+1 distinct alignments, whichever
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
569 happens first. Only the best alignment is reported. Information from the other alignments is used to
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
570 estimate mapping quality and to set SAM optional fields, such as AS:i and XS:i. Increasing -M makes
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
571 Bowtie 2 slower, but increases the likelihood that it will pick the correct alignment for a read that
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
572 aligns many places. For reads that have more than INT+1 distinct, valid alignments, Bowtie 2 does not
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
573 guarantee that the alignment reported is the best possible in terms of alignment score. -M is
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
574 always used and its default value is set to 10.
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
575
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
576 </help>
3c1664caa8e3 Uploaded
bgruening
parents:
diff changeset
577 </tool>