1
|
1 <tool id="bs_seeker_wrapper" name="BS-Seeker2" version="2.0.0">
|
|
2 <requirements><requirement type='package'>bs_seeker2</requirement></requirements>
|
|
3 <description>Versatile aligner for bisulfite sequencing data</description>
|
|
4 <command interpreter="python">
|
|
5 bs_seeker2_wrapper.py
|
|
6 ### define exec path
|
|
7 ### --exec-path "/u/home/galaxy/galaxy/GalaxyTools/bin"
|
|
8 ### [Please change the following path to your local directory]
|
|
9 --exec-path "/Users/weilong/Documents/program/BSseeker2"
|
|
10 ### output
|
|
11 --align--output $align_output
|
|
12 --call_methylation--wig $call_methylation_wig
|
|
13 --call_methylation--CGmap $call_methylation_CGmap
|
|
14 --call_methylation--ATCGmap $call_methylation_ATCGmap
|
|
15 --call_methylation--txt
|
|
16
|
|
17 #if $singlePaired.sPaired == "paired"
|
|
18 --align--input_1 $input1
|
|
19 --align--input_2 $singlePaired.input2
|
|
20 #end if
|
|
21
|
|
22
|
|
23 ### aligner
|
|
24 --align--aligner ${choosealigner.aligner}
|
|
25 #if $choosealigner.aligner == "bowtie2"
|
|
26 #if $choosealigner.mode_type == "local"
|
|
27 --align--bt2--local
|
|
28 #else
|
|
29 --align--bt2--end-to-end
|
|
30 #end if
|
|
31 #end if
|
|
32
|
|
33 ### Index from history or built-in
|
|
34 #if $choosealigner.rrbsFragments.refGenomeSource.genomeSource == "history"
|
|
35 --build--file ${choosealigner.rrbsFragments.refGenomeSource.ownFile}
|
|
36 --build--aligner ${choosealigner.aligner}
|
|
37 --align-g ${choosealigner.rrbsFragments.refGenomeSource.ownFile}
|
|
38 --align--db ${choosealigner.rrbsFragments.refGenomeSource.ownFile}
|
|
39 #else if $choosealigner.rrbsFragments.refGenomeSource.genomeSource == "indexed"
|
|
40 --align--db ${choosealigner.rrbsFragments.refGenomeSource.index.fields.path}
|
|
41 --align-g ${choosealigner.rrbsFragments.refGenomeSource.index.fields.path}/${choosealigner.rrbsFragments.refGenomeSource.index.fields.dbkey}.fa
|
|
42
|
|
43 #end if
|
|
44
|
|
45 ### RRBS or WGBS
|
|
46 #if $choosealigner.rrbsFragments.Fragmented == "Yes"
|
|
47 #if $choosealigner.rrbsFragments.refGenomeSource.genomeSource == "history"
|
|
48 --build--rrbs
|
|
49 --build--low ${choosealigner.rrbsFragments.lowerBound}
|
|
50 --build--up ${choosealigner.rrbsFragments.upperBound}
|
|
51 #end if
|
|
52 --align--rrbs
|
|
53 --align--low ${choosealigner.rrbsFragments.lowerBound}
|
|
54 --align--up ${choosealigner.rrbsFragments.upperBound}
|
|
55 #end if
|
|
56
|
|
57
|
|
58
|
|
59 ### Inputs
|
|
60 #if $singlePaired.sPaired == "single"
|
|
61 --align-i $input1
|
|
62 #end if
|
|
63
|
|
64 ### Library type
|
|
65 --align-t $tag
|
|
66
|
|
67 ### other general options
|
|
68 #if $sParams.sSettingsType == "preSet"
|
|
69 --align--start_base 1
|
|
70 --align--end_base 200
|
|
71 --align--mis 4
|
|
72 #end if
|
|
73
|
|
74 ### adapter information
|
|
75 #if $adapterInfo.useAdapter == "Yes"
|
|
76 --align--adapter ${adapterInfo.adapter_file}
|
|
77 #end if
|
|
78
|
|
79 #if $sParams.sSettingsType == "full"
|
|
80 --align--start_base ${sParams.start_base}
|
|
81 --align--end_base ${sParams.end_base}
|
|
82 --align--mis ${sParams.num_mismatch}
|
|
83 #end if
|
|
84
|
|
85 </command>
|
|
86 <inputs>
|
|
87 <param format="fastq,fasta,qseq" name="input1" type="data" label="Input your read file" help="reads file in fastq, qseq or fasta format" />
|
|
88 <conditional name="singlePaired">
|
|
89 <param name="sPaired" type="select" label="Is this library mate-paired?">
|
|
90 <option value="single">Single-end</option>
|
|
91 <option value="paired">Paired-end</option>
|
|
92 </param>
|
|
93 <when value="paired">
|
|
94 <param format="fastq,fasta,qseq" name="input2" type="data" label="Input your read file 2" help="reads in fastq, qseq or fasta format" />
|
|
95 <param name="min_ins_distance" type="integer" value="-1" label=" Minimum insert size for valid paired-end alignments" />
|
|
96 <param name="max_ins_distance" type="integer" value="400" label="Maximum insert size for valid paired-end alignments" />
|
|
97 </when>
|
|
98 </conditional>
|
|
99 <param name="tag" type="select" label="Type of libraries">
|
|
100 <option value="N">directional libraries</option>
|
|
101 <option value="Y">undirectional libraries</option>
|
|
102 </param>
|
|
103 <conditional name="choosealigner">
|
|
104 <param name="aligner" type="select" label="Short reads aligner">
|
|
105 <option value="bowtie">bowtie</option>
|
|
106 <option value="bowtie2">bowtie2</option>
|
|
107 </param>
|
|
108 <when value="bowtie">
|
|
109 <conditional name="rrbsFragments">
|
|
110 <param name="Fragmented" type="select" label="RRBS-seq reads" help="">
|
|
111 <option value="No">No</option>
|
|
112 <option value="Yes">Yes</option>
|
|
113 </param>
|
|
114 <when value="Yes">
|
|
115 <param name="lowerBound" type="integer" value="40" label="The lower bound for RRBS fragments" help="Default: 40" />
|
|
116 <param name="upperBound" type="integer" value="500" label="The upper bound for RRBS fragments" help="Default: 500" />
|
|
117 <conditional name="refGenomeSource">
|
|
118 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="">
|
|
119 <option value="indexed">Use a built-in index</option>
|
|
120 <option value="history">Use one from the history</option>
|
|
121 </param>
|
|
122 <when value="indexed">
|
|
123 <param name="index" type="select" label="Select a reference genome (RRBS, bowtie)">
|
|
124 <options from_data_table="bs_seeker2_indexes_RRBS_bowtie">
|
|
125 <filter type="sort_by" column="2"/>
|
|
126 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
127 </options>
|
|
128 </param>
|
|
129 </when>
|
|
130 <when value="history">
|
|
131 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
|
|
132 </when>
|
|
133 </conditional>
|
|
134 </when>
|
|
135 <when value="No">
|
|
136 <conditional name="refGenomeSource">
|
|
137 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="">
|
|
138 <option value="indexed">Use a built-in index</option>
|
|
139 <option value="history">Use one from the history</option>
|
|
140 </param>
|
|
141 <when value="indexed">
|
|
142 <param name="index" type="select" label="Select a reference genome (WGBS, bowtie)">
|
|
143 <options from_data_table="bs_seeker2_indexes_WGBS_bowtie">
|
|
144 <filter type="sort_by" column="2"/>
|
|
145 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
146 </options>
|
|
147 </param>
|
|
148 </when>
|
|
149 <when value="history">
|
|
150 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
|
|
151 </when>
|
|
152 </conditional>
|
|
153 </when>
|
|
154 </conditional>
|
|
155 </when>
|
|
156
|
|
157 <when value="bowtie2">
|
|
158 <conditional name="rrbsFragments">
|
|
159 <param name="Fragmented" type="select" label="RRBS-seq reads" help="">
|
|
160 <option value="No">No</option>
|
|
161 <option value="Yes">Yes</option>
|
|
162 </param>
|
|
163 <when value="Yes">
|
|
164 <param name="lowerBound" type="integer" value="40" label="The lower bound for RRBS fragments" help="Default: 40" />
|
|
165 <param name="upperBound" type="integer" value="500" label="The upper bound for RRBS fragments" help="Default: 500" />
|
|
166 <conditional name="refGenomeSource">
|
|
167 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="">
|
|
168 <option value="indexed">Use a built-in index</option>
|
|
169 <option value="history">Use one from the history</option>
|
|
170 </param>
|
|
171 <when value="indexed">
|
|
172 <param name="index" type="select" label="Select a reference genome (RRBS, bowtie2)">
|
|
173 <options from_data_table="bs_seeker2_indexes_RRBS_bowtie2">
|
|
174 <filter type="sort_by" column="2"/>
|
|
175 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
176 </options>
|
|
177 </param>
|
|
178 </when>
|
|
179 <when value="history">
|
|
180 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
|
|
181 </when>
|
|
182 </conditional>
|
|
183 </when>
|
|
184 <when value="No">
|
|
185 <conditional name="refGenomeSource">
|
|
186 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="">
|
|
187 <option value="indexed">Use a built-in index</option>
|
|
188 <option value="history">Use one from the history</option>
|
|
189 </param>
|
|
190 <when value="indexed">
|
|
191 <param name="index" type="select" label="Select a reference genome (WGBS, bowtie2)">
|
|
192 <options from_data_table="bs_seeker2_indexes_WGBS_bowtie2">
|
|
193 <filter type="sort_by" column="2"/>
|
|
194 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
195 </options>
|
|
196 </param>
|
|
197 </when>
|
|
198 <when value="history">
|
|
199 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
|
|
200 </when>
|
|
201 </conditional>
|
|
202 </when>
|
|
203 </conditional>
|
|
204
|
|
205
|
|
206 <conditional name="mode_type">
|
|
207 <param name="mode" type="select" label="Select the mode of Bowtie2">
|
|
208 <option value="local" selected="true"> local alignment </option>
|
|
209 <option value="end_to_end" > end-to-end alignment </option>
|
|
210 </param>
|
|
211 </conditional>
|
|
212 </when>
|
|
213 </conditional>
|
|
214 <conditional name="adapterInfo">
|
|
215 <param name="useAdapter" type="select" label="adapter sequence">
|
|
216 <option value="noAdapter">No</option>
|
|
217 <option value="withAdapter">Yes</option>
|
|
218 </param>
|
|
219 <when value="withAdapter">
|
|
220 <param format="txt" name="adapter_file" type="data" label="Input file of your adaptor sequences" help="Input text file of your adaptor sequences" />
|
|
221 </when>
|
|
222 </conditional>
|
|
223
|
|
224 <conditional name="sParams">
|
|
225 <param name="sSettingsType" type="select" label="BS Seeker2 settings to use" help="You can use the default settings or set customer values for the BS Seeker2 parameters.">
|
|
226 <option value="preSet">User Defaults</option>
|
|
227 <option value="full">Full parameter list</option>
|
|
228 </param>
|
|
229 <when value="preSet" />
|
|
230 <when value="full">
|
|
231 <param name="start_base" type="integer" value="1" label="The start base of the read to be mapped" help="" />
|
|
232 <param name="end_base" type="integer" value="200" label="The end base of the read to be mapped" help="" />
|
|
233
|
|
234 <param name="num_mismatch" type="integer" value="4" label="Number of mismatches" help="(INT) Default: 4" />
|
|
235 </when>
|
|
236 </conditional>
|
|
237
|
|
238 </inputs>
|
|
239
|
|
240 <outputs>
|
|
241 <data format="bam" name="align_output" label="BAM Alignments"> </data>
|
|
242 <data format="wig" name="call_methylation_wig" label="Methylation Levels"> </data>
|
|
243 <data format="tabular" name="call_methylation_CGmap" label="CGmap file"> </data>
|
|
244 <data format="tabular" name="call_methylation_ATCGmap" label="ATCGmap file"> </data>
|
|
245
|
|
246 </outputs>
|
|
247 <help>
|
|
248 **What it does**
|
|
249
|
|
250 BS-Seeker2 is a seamlessly pipeline for mapping bisulfite sequencing data and generating detailed DNA methylome. BS-Seeker2 improves mappability by using local alignment, and is tailored for RRBS library by building special index, with higher efficiency and accuracy. This is the Galaxy version of BS-Seeker2.
|
|
251
|
|
252 ------
|
|
253
|
|
254 **Resources**
|
|
255
|
|
256 The homepage for BS-Seeker2 is http://pellegrini.mcdb.ucla.edu/BS_Seeker2/.
|
|
257
|
|
258 For more information of BS-Seeker2, please refer to https://github.com/BSSeeker/BSseeker2.
|
|
259
|
|
260 ------
|
|
261
|
|
262 **Example**
|
|
263
|
|
264 - Adapter file::
|
|
265
|
|
266 AGATCGGAAGAGCACACGTC
|
|
267
|
|
268
|
|
269 </help>
|
|
270 </tool>
|