comparison macs2_callpeak.xml @ 3:6d4babad010f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
author iuc
date Wed, 27 Jan 2016 15:23:25 -0500
parents bfe57d6e0c4c
children 56e104999978
comparison
equal deleted inserted replaced
2:bfe57d6e0c4c 3:6d4babad010f
2 <description>Call peaks from alignment results</description> 2 <description>Call peaks from alignment results</description>
3 <macros> 3 <macros>
4 <import>macs2_macros.xml</import> 4 <import>macs2_macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"> 6 <expand macro="requirements">
7 <requirement type="package" version="3.0.1">R_3_0_1</requirement> 7 <requirement type="package" version="3.1.2">R</requirement>
8 <requirement type="package" version="4.1.0">gnu_awk</requirement>
9 <requirement type="set_environment">MACS2_SCRIPT_PATH</requirement> 8 <requirement type="set_environment">MACS2_SCRIPT_PATH</requirement>
10 </expand> 9 </expand>
11 <expand macro="stdio" /> 10 <expand macro="stdio" />
12 <expand macro="version_command" /> 11 <expand macro="version_command" />
13 <command> 12 <command>
77 ##--shiftsize '$nomodel_type.shiftsize' 76 ##--shiftsize '$nomodel_type.shiftsize'
78 --extsize '${ nomodel_type.extsize }' 77 --extsize '${ nomodel_type.extsize }'
79 #end if 78 #end if
80 79
81 2> $temp_stderr) 80 2> $temp_stderr)
82 #if 'peaks_bed' in str($outputs).split(','): 81 #if 'peaks_tabular' in str($outputs).split(','):
83 &amp;&amp; 82 &amp;&amp;
84 awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > "${ output_bed }" 83 cp MACS2_peaks.xls "${ output_tabular }"
85 #end if 84 #end if
86 85
87 ## run R to create pdf from model script 86 ## run R to create pdf from model script
88 #if $nomodel_type.nomodel_type_selector == 'create_model' and 'pdf' in str($outputs).split(','): 87 #if $nomodel_type.nomodel_type_selector == 'create_model' and 'pdf' in str($outputs).split(','):
89 &amp;&amp; 88 &amp;&amp;
150 help="MACS will use this value as fragment size to extend each read towards 3' end, then pile them up. It's exactly twice the number of legacy shiftsize. In previous language, each read is moved 3' direction to middle of fragment by 1/2 d, then extended to both direction with 1/2 d. This is equivalent to say each read is extended towards 3' into a d size fragment. DEFAULT: 200 (--extsize)"/> 149 help="MACS will use this value as fragment size to extend each read towards 3' end, then pile them up. It's exactly twice the number of legacy shiftsize. In previous language, each read is moved 3' direction to middle of fragment by 1/2 d, then extended to both direction with 1/2 d. This is equivalent to say each read is extended towards 3' into a d size fragment. DEFAULT: 200 (--extsize)"/>
151 </when> 150 </when>
152 </conditional> 151 </conditional>
153 152
154 <param name="outputs" type="select" display="checkboxes" multiple="True" label="Outputs" help="PDF only created when model is build"> 153 <param name="outputs" type="select" display="checkboxes" multiple="True" label="Outputs" help="PDF only created when model is build">
155 <option value="peaks_bed" selected="True">Peaks as BED file</option> 154 <option value="peaks_tabular" selected="True">Peaks as tabular file</option>
156 <!--<option value="narrow">narrow Peaks</option>--> 155 <!--<option value="narrow">narrow Peaks</option>-->
157 <option value="summits" selected="true">summits</option> 156 <option value="summits" selected="true">summits</option>
158 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option> 157 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option>
159 <option value="html">Summary page (html)</option> 158 <option value="html">Summary page (html)</option>
160 <option value="pdf">Plot in PDF</option> 159 <option value="pdf">Plot in PDF</option>
200 <when value="off" /> 199 <when value="off" />
201 </conditional> 200 </conditional>
202 </inputs> 201 </inputs>
203 <outputs> 202 <outputs>
204 <!--callpeaks output--> 203 <!--callpeaks output-->
205 <data name="output_bed" format="bed" label="${tool.name} on ${on_string} (Peaks in BED format)"> 204 <data name="output_tabular" format="tabular" label="${tool.name} on ${on_string} (Peaks in tabular format)">
206 <filter>'peaks_bed' in outputs</filter> 205 <filter>'peaks_tabular' in outputs</filter>
207 </data> 206 </data>
208 <data name="output_broadpeaks" format="bed" from_work_dir="MACS2_peaks.broadPeak" label="${tool.name} on ${on_string} (broad Peaks)"> 207 <data name="output_broadpeaks" format="bed" from_work_dir="MACS2_peaks.broadPeak" label="${tool.name} on ${on_string} (broad Peaks)">
209 <filter> 208 <filter>
210 (( 209 ((
211 advanced_options['advanced_options_selector'] == "on" and 210 advanced_options['advanced_options_selector'] == "on" and
212 advanced_options['broad_options']['broad_options_selector'] == "broad" 211 advanced_options['broad_options']['broad_options_selector'] == "broad"
213 )) 212 ))
214 </filter> 213 </filter>
215 </data> 214 </data>
216 <data name="output_gappedpeaks" format="tabular" from_work_dir="MACS2_peaks.gappedPeak" label="${tool.name} on ${on_string} (gapped Peaks)"> 215 <data name="output_gappedpeaks" format="bed" from_work_dir="MACS2_peaks.gappedPeak" label="${tool.name} on ${on_string} (gapped Peaks)">
217 <filter> 216 <filter>
218 (( 217 ((
219 advanced_options['advanced_options_selector'] == "on" and 218 advanced_options['advanced_options_selector'] == "on" and
220 advanced_options['broad_options']['broad_options_selector'] == "broad" 219 advanced_options['broad_options']['broad_options_selector'] == "broad"
221 )) 220 ))
222 </filter> 221 </filter>
223 </data> 222 </data>
224 <data name="output_narrowpeaks" format="tabular" from_work_dir="MACS2_peaks.narrowPeak" label="${tool.name} on ${on_string} (narrow Peaks)"> 223 <data name="output_narrowpeaks" format="bed" from_work_dir="MACS2_peaks.narrowPeak" label="${tool.name} on ${on_string} (narrow Peaks)">
225 <filter> 224 <filter>
226 ( 225 (
227 advanced_options['advanced_options_selector'] == "off" or 226 advanced_options['advanced_options_selector'] == "off" or
228 ( 227 (
229 advanced_options['advanced_options_selector'] == "on" and 228 advanced_options['advanced_options_selector'] == "on" and
257 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/> 256 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/>
258 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/> 257 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/>
259 <param name="cutoff_options_selector" value="qvalue"/> 258 <param name="cutoff_options_selector" value="qvalue"/>
260 <param name="qvalue" value="0.05"/> 259 <param name="qvalue" value="0.05"/>
261 <param name="band_width" value="300"/> 260 <param name="band_width" value="300"/>
262 <param name="outputs" value="peaks_bed,bdg"/> 261 <param name="outputs" value="peaks_tabular,bdg"/>
263 <param name="effective_genome_size_options_selector" value="user_defined" /> 262 <param name="effective_genome_size_options_selector" value="user_defined" />
264 <param name="gsize" value="3300000000" /> 263 <param name="gsize" value="3300000000" />
265 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg"/> 264 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg"/>
266 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg"/> 265 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg"/>
267 <output name="output_bed" compare="contains" file="callpeak_part.bed"/> 266 <output name="output_tabular" compare="contains" file="callpeak_part.tabular"/>
268 <output name="output_summits" compare="contains" file="callpeak_summits_part.bed"/> 267 <output name="output_summits" compare="contains" file="callpeak_summits_part.bed"/>
269 </test> 268 </test>
270 <test> 269 <test>
271 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/> 270 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/>
272 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/> 271 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/>