comparison macs2_callpeak.xml @ 2:bfe57d6e0c4c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
author iuc
date Mon, 12 Oct 2015 11:24:39 -0400
parents fe62ba547975
children 6d4babad010f
comparison
equal deleted inserted replaced
1:859c982b1f7f 2:bfe57d6e0c4c
1 <tool id="macs2_callpeak" name="MACS2 callpeak" version="@VERSION_STRING@.0"> 1 <tool id="macs2_callpeak" name="MACS2 callpeak" version="@VERSION_STRING@.0">
2 <description>Call peaks from alignment results</description> 2 <description>Call peaks from alignment results</description>
3 <macros>
4 <import>macs2_macros.xml</import>
5 </macros>
3 <expand macro="requirements"> 6 <expand macro="requirements">
4 <requirement type="package" version="3.0.1">R_3_0_1</requirement> 7 <requirement type="package" version="3.0.1">R_3_0_1</requirement>
5 <requirement type="package" version="4.1.0">gnu_awk</requirement> 8 <requirement type="package" version="4.1.0">gnu_awk</requirement>
6 <requirement type="set_environment">MACS2_SCRIPT_PATH</requirement> 9 <requirement type="set_environment">MACS2_SCRIPT_PATH</requirement>
7 </expand> 10 </expand>
11 <expand macro="stdio" />
8 <expand macro="version_command" /> 12 <expand macro="version_command" />
9 <macros>
10 <import>macs2_macros.xml</import>
11 </macros>
12 <command> 13 <command>
13 #set $temp_stderr = 'macs2_stderr' 14 #set $temp_stderr = 'macs2_stderr'
14 (macs2 callpeak 15 (macs2 callpeak
15 16
16 --name "MACS2" 17 --name "MACS2"
82 &amp;&amp; 83 &amp;&amp;
83 awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > "${ output_bed }" 84 awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > "${ output_bed }"
84 #end if 85 #end if
85 86
86 ## run R to create pdf from model script 87 ## run R to create pdf from model script
87 #if 'pdf' in str($outputs).split(','): 88 #if $nomodel_type.nomodel_type_selector == 'create_model' and 'pdf' in str($outputs).split(','):
88 &amp;&amp; 89 &amp;&amp;
89 Rscript MACS2_model.r > MACS2_model.r.log 90 Rscript MACS2_model.r > MACS2_model.r.log
90 #end if 91 #end if
91 92
92 #if 'html' in str($outputs).split(','): 93 #if 'html' in str($outputs).split(','):
93 ## if output files exists, move them to the files_path and create a html result page linking to them 94 ## if output files exists, move them to the files_path and create a html result page linking to them
94 &amp;&amp; 95 &amp;&amp;
95 ( 96 (
96 count=`ls -1 MACS2* 2>/dev/null | wc -l`; 97 count=`ls -1 MACS2* 2>/dev/null | wc -l`;
97 if [ \$count != 0 ]; 98 if [ \$count != 0 ];
98 then 99 then
99 mkdir "${ output_extra_files.files_path }"; 100 mkdir "${ output_extra_files.files_path }";
100 cp MACS2* "${ output_extra_files.files_path }"; 101 cp MACS2* "${ output_extra_files.files_path }";
101 python "\$MACS2_SCRIPT_PATH/dir2html.py" "${ output_extra_files.files_path }" $temp_stderr > "${ output_extra_files }"; 102 python "\$MACS2_SCRIPT_PATH/dir2html.py" "${ output_extra_files.files_path }" $temp_stderr > "${ output_extra_files }";
102 fi; 103 fi;
103 ) 104 )
105 ; 106 ;
106 exit_code_for_galaxy=\$?; 107 exit_code_for_galaxy=\$?;
107 cat $temp_stderr 2&gt;&amp;1; 108 cat $temp_stderr 2&gt;&amp;1;
108 (exit \$exit_code_for_galaxy) 109 (exit \$exit_code_for_galaxy)
109 </command> 110 </command>
110 <expand macro="stdio" />
111 <inputs> 111 <inputs>
112 <param name="input_treatment_file" type="data" format="bam,sam,bed" multiple="True" label="ChIP-Seq Treatment File" /> 112 <param name="input_treatment_file" type="data" format="bam,sam,bed" multiple="True" label="ChIP-Seq Treatment File" />
113 <param name="input_control_file" type="data" format="bam,sam,bed" multiple="True" optional="True" label="ChIP-Seq Control File" /> 113 <param name="input_control_file" type="data" format="bam,sam,bed" multiple="True" optional="True" label="ChIP-Seq Control File" />
114 114
115 <param name="bampe" type="boolean" truevalue="--format BAMPE" falsevalue="" checked="False" label="Are your inputs Paired-end BAM files?" 115 <param name="bampe" type="boolean" truevalue="--format BAMPE" falsevalue="" checked="False" label="Are your inputs Paired-end BAM files?"
144 <option value="create_model" selected="true">Build the shifting model</option> 144 <option value="create_model" selected="true">Build the shifting model</option>
145 </param> 145 </param>
146 <when value="create_model"/> 146 <when value="create_model"/>
147 <when value="nomodel"> 147 <when value="nomodel">
148 <!--<param name="shiftsize" type="integer" label="Arbitrary shift size in bp" value="100" help="(shiftsize)"/>--> 148 <!--<param name="shiftsize" type="integer" label="Arbitrary shift size in bp" value="100" help="(shiftsize)"/>-->
149 <param name="extsize" type="integer" value="100" label="The arbitrary extension size in bp" 149 <param name="extsize" type="integer" value="100" label="The arbitrary extension size in bp"
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)"/> 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)"/>
151 </when> 151 </when>
152 </conditional> 152 </conditional>
153 153
154 <param name="outputs" type="select" display="checkboxes" multiple="True" label="Outputs"> 154 <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> 155 <option value="peaks_bed" selected="True">Peaks as BED file</option>
156 <!--<option value="narrow">narrow Peaks</option>--> 156 <!--<option value="narrow">narrow Peaks</option>-->
157 <option value="summits" selected="true">summits</option> 157 <option value="summits" selected="true">summits</option>
158 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option> 158 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option>
159 <option value="html">Summary page (html)</option> 159 <option value="html">Summary page (html)</option>
165 <param name="advanced_options_selector" type="select" label="Advanced options"> 165 <param name="advanced_options_selector" type="select" label="Advanced options">
166 <option value="off" selected="true">Hide advanced options</option> 166 <option value="off" selected="true">Hide advanced options</option>
167 <option value="on">Display advanced options</option> 167 <option value="on">Display advanced options</option>
168 </param> 168 </param>
169 <when value="on"> 169 <when value="on">
170 <param name="to_large" type="boolean" truevalue="--to-large" falsevalue="" checked="False" 170 <param name="to_large" type="boolean" truevalue="--to-large" falsevalue="" checked="False"
171 label="When set, scale the small sample up to the bigger sample" 171 label="When set, scale the small sample up to the bigger sample"
172 help="By default, the bigger dataset will be scaled down towards the smaller dataset, which will lead to smaller p/qvalues and more specific results. Keep in mind that scaling down will bring down background noise more. (--to-large)"/> 172 help="By default, the bigger dataset will be scaled down towards the smaller dataset, which will lead to smaller p/qvalues and more specific results. Keep in mind that scaling down will bring down background noise more. (--to-large)"/>
173 <param name="nolambda" type="boolean" truevalue="--nolambda" falsevalue="" checked="False" 173 <param name="nolambda" type="boolean" truevalue="--nolambda" falsevalue="" checked="False"
174 label="Use fixed background lambda as local lambda for every peak region" help="up to 9X more time consuming (--nolambda)"/> 174 label="Use fixed background lambda as local lambda for every peak region" help="up to 9X more time consuming (--nolambda)"/>
175 <param name="ratio" type="float" value="1.0" 175 <param name="ratio" type="float" value="1.0"
176 label="When set, use a custom scaling ratio of ChIP/control (e.g. calculated using NCIS) for linear scaling" 176 label="When set, use a custom scaling ratio of ChIP/control (e.g. calculated using NCIS) for linear scaling"
177 help="(--ratio)"/> 177 help="(--ratio)"/>
178 <param name="slocal" value="1000" type="integer" label="The small nearby region in basepairs to calculate dynamic lambda" 178 <param name="slocal" value="1000" type="integer" label="The small nearby region in basepairs to calculate dynamic lambda"
184 label="Composite broad regions" help="by putting nearby highly enriched regions into a broad region with loose cutoff (--broad)"> 184 label="Composite broad regions" help="by putting nearby highly enriched regions into a broad region with loose cutoff (--broad)">
185 <option value="nobroad" selected="true">No broad regions</option> 185 <option value="nobroad" selected="true">No broad regions</option>
186 <option value="broad">broad regions</option> 186 <option value="broad">broad regions</option>
187 </param> 187 </param>
188 <when value="broad"> 188 <when value="broad">
189 <param name="broad_cutoff" type="float" label="Cutoff for broad region" value="0.1" 189 <param name="broad_cutoff" type="float" label="Cutoff for broad region" value="0.1"
190 help="value is either p-value or q-value as specified above (--broad-cutoff)"/> 190 help="value is either p-value or q-value as specified above (--broad-cutoff)"/>
191 </when> 191 </when>
192 <when value="nobroad"> 192 <when value="nobroad">
193 <param name="call_summits" type="boolean" truevalue="--call-summits" falsevalue="" checked="False" 193 <param name="call_summits" type="boolean" truevalue="--call-summits" falsevalue="" checked="False"
194 label="Use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region" 194 label="Use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region"
195 help="(--call-summits)"/> 195 help="(--call-summits)"/>
196 </when> 196 </when>
197 </conditional> 197 </conditional>
198 <expand macro="keep_duplicates" /> 198 <expand macro="keep_duplicates" />
199 </when> 199 </when>
233 </data> 233 </data>
234 <data name="output_summits" format="bed" from_work_dir="MACS2_summits.bed" label="${tool.name} on ${on_string} (summits in BED)"> 234 <data name="output_summits" format="bed" from_work_dir="MACS2_summits.bed" label="${tool.name} on ${on_string} (summits in BED)">
235 <filter>'summits' in outputs</filter> 235 <filter>'summits' in outputs</filter>
236 </data> 236 </data>
237 <data name="output_plot" format="pdf" from_work_dir="MACS2_model.pdf" label="${tool.name} on ${on_string} (plot)"> 237 <data name="output_plot" format="pdf" from_work_dir="MACS2_model.pdf" label="${tool.name} on ${on_string} (plot)">
238 <filter>'pdf' in outputs</filter> 238 <filter>
239 ((
240 'pdf' in outputs and
241 nomodel_type['nomodel_type_selector'] == "create_model"
242 ))
243 </filter>
239 </data> 244 </data>
240 <data name="output_treat_pileup" format="bedgraph" from_work_dir="MACS2_treat_pileup.bdg" label="${tool.name} on ${on_string} (Bedgraph Treatment)"> 245 <data name="output_treat_pileup" format="bedgraph" from_work_dir="MACS2_treat_pileup.bdg" label="${tool.name} on ${on_string} (Bedgraph Treatment)">
241 <filter>'bdg' in outputs</filter> 246 <filter>'bdg' in outputs</filter>
242 </data> 247 </data>
243 <data name="output_control_lambda" format="bedgraph" from_work_dir="MACS2_control_lambda.bdg" label="${tool.name} on ${on_string} (Bedgraph Control)"> 248 <data name="output_control_lambda" format="bedgraph" from_work_dir="MACS2_control_lambda.bdg" label="${tool.name} on ${on_string} (Bedgraph Control)">
260 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg"/> 265 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg"/>
261 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg"/> 266 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg"/>
262 <output name="output_bed" compare="contains" file="callpeak_part.bed"/> 267 <output name="output_bed" compare="contains" file="callpeak_part.bed"/>
263 <output name="output_summits" compare="contains" file="callpeak_summits_part.bed"/> 268 <output name="output_summits" compare="contains" file="callpeak_summits_part.bed"/>
264 </test> 269 </test>
270 <test>
271 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/>
272 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/>
273 <param name="cutoff_options_selector" value="qvalue"/>
274 <param name="qvalue" value="0.05"/>
275 <param name="band_width" value="300"/>
276 <param name="outputs" value="pdf"/>
277 <param name="effective_genome_size_options_selector" value="user_defined" />
278 <param name="gsize" value="3300000000" />
279 <output name="output_plot" file="magic.pdf" ftype="pdf" compare="contains" />
280 </test>
265 </tests> 281 </tests>
266 <help> 282 <help>
267 **What it does** 283 **What it does**
268 284
269 With the improvement of sequencing techniques, chromatin immunoprecipitation followed by high throughput sequencing (ChIP-Seq) 285 With the improvement of sequencing techniques, chromatin immunoprecipitation followed by high throughput sequencing (ChIP-Seq)