annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
1 <tool id="macs2_callpeak" name="MACS2 callpeak" version="@VERSION_STRING@.0">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
2 <description>Call peaks from alignment results</description>
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
3 <macros>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
4 <import>macs2_macros.xml</import>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
5 </macros>
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
6 <expand macro="requirements">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
7 <requirement type="package" version="3.0.1">R_3_0_1</requirement>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
8 <requirement type="package" version="4.1.0">gnu_awk</requirement>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
9 <requirement type="set_environment">MACS2_SCRIPT_PATH</requirement>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
10 </expand>
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
11 <expand macro="stdio" />
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
12 <expand macro="version_command" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
13 <command>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
14 #set $temp_stderr = 'macs2_stderr'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
15 (macs2 callpeak
fe62ba547975 Uploaded
iuc
parents:
diff changeset
16
fe62ba547975 Uploaded
iuc
parents:
diff changeset
17 --name "MACS2"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
18 -t ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_treatment_file ) ) }
fe62ba547975 Uploaded
iuc
parents:
diff changeset
19
fe62ba547975 Uploaded
iuc
parents:
diff changeset
20 #if str( $input_control_file ) != 'None':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
21 -c ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_control_file ) ) }
fe62ba547975 Uploaded
iuc
parents:
diff changeset
22 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
23
fe62ba547975 Uploaded
iuc
parents:
diff changeset
24 #for $ifile in $input_treatment_file:
fe62ba547975 Uploaded
iuc
parents:
diff changeset
25 #if $ifile.ext.upper() == 'BAM' and $bampe:
fe62ba547975 Uploaded
iuc
parents:
diff changeset
26 --format BAMPE
fe62ba547975 Uploaded
iuc
parents:
diff changeset
27 #else
fe62ba547975 Uploaded
iuc
parents:
diff changeset
28 --format='$ifile.ext.upper()'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
29 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
30 #end for
fe62ba547975 Uploaded
iuc
parents:
diff changeset
31
fe62ba547975 Uploaded
iuc
parents:
diff changeset
32 @effective_genome_size@
fe62ba547975 Uploaded
iuc
parents:
diff changeset
33
fe62ba547975 Uploaded
iuc
parents:
diff changeset
34 --bw='$band_width'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
35
fe62ba547975 Uploaded
iuc
parents:
diff changeset
36 ## advanced options
fe62ba547975 Uploaded
iuc
parents:
diff changeset
37 #if $advanced_options.advanced_options_selector == 'on':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
38 $advanced_options.nolambda
fe62ba547975 Uploaded
iuc
parents:
diff changeset
39 $advanced_options.to_large
fe62ba547975 Uploaded
iuc
parents:
diff changeset
40 --ratio $advanced_options.ratio
fe62ba547975 Uploaded
iuc
parents:
diff changeset
41 --slocal $advanced_options.slocal
fe62ba547975 Uploaded
iuc
parents:
diff changeset
42 --llocal $advanced_options.llocal
fe62ba547975 Uploaded
iuc
parents:
diff changeset
43 #if $advanced_options.broad_options.broad_options_selector == 'broad':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
44 --broad
fe62ba547975 Uploaded
iuc
parents:
diff changeset
45 --broad-cutoff='${ advanced_options.broad_options.broad_cutoff }'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
46 #else:
fe62ba547975 Uploaded
iuc
parents:
diff changeset
47 $advanced_options.broad_options.call_summits
fe62ba547975 Uploaded
iuc
parents:
diff changeset
48 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
49
fe62ba547975 Uploaded
iuc
parents:
diff changeset
50 #if str( $advanced_options.keep_dup_options.keep_dup_options_selector ) == "user":
fe62ba547975 Uploaded
iuc
parents:
diff changeset
51 --keep-dup "${ advanced_options.keep_dup_options.user_keepdup }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
52 #else
fe62ba547975 Uploaded
iuc
parents:
diff changeset
53 --keep-dup "${ advanced_options.keep_dup_options.keep_dup_options_selector }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
54 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
55
fe62ba547975 Uploaded
iuc
parents:
diff changeset
56 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
57
fe62ba547975 Uploaded
iuc
parents:
diff changeset
58 ## With --bdg two additional output files will be generated.
fe62ba547975 Uploaded
iuc
parents:
diff changeset
59 #if 'bdg' in str($outputs).split(','):
fe62ba547975 Uploaded
iuc
parents:
diff changeset
60 --bdg
fe62ba547975 Uploaded
iuc
parents:
diff changeset
61 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
62
fe62ba547975 Uploaded
iuc
parents:
diff changeset
63 ## cutoff selection
fe62ba547975 Uploaded
iuc
parents:
diff changeset
64 #if str( $cutoff_options.cutoff_options_selector ) == 'qvalue':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
65 --qvalue "${ cutoff_options.qvalue }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
66 #elif str( $cutoff_options.cutoff_options_selector ) == 'pvalue':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
67 #if str($cutoff_options.pvalue).strip() != '':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
68 --pvalue "${ cutoff_options.pvalue }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
69 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
70 #else:
fe62ba547975 Uploaded
iuc
parents:
diff changeset
71 --foldenrichment "${ cutoff_options.foldenrichment }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
72 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
73
fe62ba547975 Uploaded
iuc
parents:
diff changeset
74 ## model options
fe62ba547975 Uploaded
iuc
parents:
diff changeset
75 #if $nomodel_type.nomodel_type_selector == 'nomodel':
fe62ba547975 Uploaded
iuc
parents:
diff changeset
76 --nomodel
fe62ba547975 Uploaded
iuc
parents:
diff changeset
77 ##--shiftsize '$nomodel_type.shiftsize'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
78 --extsize '${ nomodel_type.extsize }'
fe62ba547975 Uploaded
iuc
parents:
diff changeset
79 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
80
fe62ba547975 Uploaded
iuc
parents:
diff changeset
81 2> $temp_stderr)
fe62ba547975 Uploaded
iuc
parents:
diff changeset
82 #if 'peaks_bed' in str($outputs).split(','):
fe62ba547975 Uploaded
iuc
parents:
diff changeset
83 &amp;&amp;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
84 awk '$2-=1' MACS2_peaks.xls | awk '!/^#/' | awk -v OFS='\t' '$1=$1' | tail -n+3 > "${ output_bed }"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
85 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
86
fe62ba547975 Uploaded
iuc
parents:
diff changeset
87 ## run R to create pdf from model script
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
88 #if $nomodel_type.nomodel_type_selector == 'create_model' and 'pdf' in str($outputs).split(','):
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
89 &amp;&amp;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
90 Rscript MACS2_model.r > MACS2_model.r.log
fe62ba547975 Uploaded
iuc
parents:
diff changeset
91 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
92
fe62ba547975 Uploaded
iuc
parents:
diff changeset
93 #if 'html' in str($outputs).split(','):
fe62ba547975 Uploaded
iuc
parents:
diff changeset
94 ## if output files exists, move them to the files_path and create a html result page linking to them
fe62ba547975 Uploaded
iuc
parents:
diff changeset
95 &amp;&amp;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
96 (
fe62ba547975 Uploaded
iuc
parents:
diff changeset
97 count=`ls -1 MACS2* 2>/dev/null | wc -l`;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
98 if [ \$count != 0 ];
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
99 then
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
100 mkdir "${ output_extra_files.files_path }";
fe62ba547975 Uploaded
iuc
parents:
diff changeset
101 cp MACS2* "${ output_extra_files.files_path }";
fe62ba547975 Uploaded
iuc
parents:
diff changeset
102 python "\$MACS2_SCRIPT_PATH/dir2html.py" "${ output_extra_files.files_path }" $temp_stderr > "${ output_extra_files }";
fe62ba547975 Uploaded
iuc
parents:
diff changeset
103 fi;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
104 )
fe62ba547975 Uploaded
iuc
parents:
diff changeset
105 #end if
fe62ba547975 Uploaded
iuc
parents:
diff changeset
106 ;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
107 exit_code_for_galaxy=\$?;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
108 cat $temp_stderr 2&gt;&amp;1;
fe62ba547975 Uploaded
iuc
parents:
diff changeset
109 (exit \$exit_code_for_galaxy)
fe62ba547975 Uploaded
iuc
parents:
diff changeset
110 </command>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
111 <inputs>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
112 <param name="input_treatment_file" type="data" format="bam,sam,bed" multiple="True" label="ChIP-Seq Treatment File" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
113 <param name="input_control_file" type="data" format="bam,sam,bed" multiple="True" optional="True" label="ChIP-Seq Control File" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
114
fe62ba547975 Uploaded
iuc
parents:
diff changeset
115 <param name="bampe" type="boolean" truevalue="--format BAMPE" falsevalue="" checked="False" label="Are your inputs Paired-end BAM files?"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
116 help="The 'Build model step' will be ignored and the real fragments will be used for each template defined by leftmost and rightmost mapping positions. (--format BAMPE)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
117
fe62ba547975 Uploaded
iuc
parents:
diff changeset
118 <expand macro="conditional_effective_genome_size" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
119 <expand macro="band_width" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
120
fe62ba547975 Uploaded
iuc
parents:
diff changeset
121 <conditional name="cutoff_options">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
122 <param name="cutoff_options_selector" type="select" label="Peak detection based on" help="default uses q-value">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
123 <option value="qvalue" selected="true">q-value</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
124 <option value="pvalue">p-value</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
125 <option value="foldenrichment">foldenrichment</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
126 </param>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
127 <when value="pvalue">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
128 <param name="pvalue" type="float" value="" label="p-value cutoff for peak detection"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
129 help="default: not set (--pvalue)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
130 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
131 <when value="qvalue">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
132 <param name="qvalue" type="float" value="0.05" label="Minimum FDR (q-value) cutoff for peak detection"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
133 help="default: 0.05 (--qvalue)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
134 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
135 <when value="foldenrichment">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
136 <param name="foldenrichment" value="" type="integer" label="Foldenrichment cutoff for peak detection"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
137 help="(--foldenrichment)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
138 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
139 </conditional>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
140
fe62ba547975 Uploaded
iuc
parents:
diff changeset
141 <conditional name="nomodel_type">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
142 <param name="nomodel_type_selector" type="select" label="Build Model">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
143 <option value="nomodel">Do not build the shifting model (--nomodel)</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
144 <option value="create_model" selected="true">Build the shifting model</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
145 </param>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
146 <when value="create_model"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
147 <when value="nomodel">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
148 <!--<param name="shiftsize" type="integer" label="Arbitrary shift size in bp" value="100" help="(shiftsize)"/>-->
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
149 <param name="extsize" type="integer" value="100" label="The arbitrary extension size in bp"
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
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)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
151 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
152 </conditional>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
153
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
154 <param name="outputs" type="select" display="checkboxes" multiple="True" label="Outputs" help="PDF only created when model is build">
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
155 <option value="peaks_bed" selected="True">Peaks as BED file</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
156 <!--<option value="narrow">narrow Peaks</option>-->
fe62ba547975 Uploaded
iuc
parents:
diff changeset
157 <option value="summits" selected="true">summits</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
158 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
159 <option value="html">Summary page (html)</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
160 <option value="pdf">Plot in PDF</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
161 <validator type="no_options" message="Please select at least one output file." />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
162 </param>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
163
fe62ba547975 Uploaded
iuc
parents:
diff changeset
164 <conditional name="advanced_options">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
165 <param name="advanced_options_selector" type="select" label="Advanced options">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
166 <option value="off" selected="true">Hide advanced options</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
167 <option value="on">Display advanced options</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
168 </param>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
169 <when value="on">
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
170 <param name="to_large" type="boolean" truevalue="--to-large" falsevalue="" checked="False"
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
171 label="When set, scale the small sample up to the bigger sample"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
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)"/>
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
173 <param name="nolambda" type="boolean" truevalue="--nolambda" falsevalue="" checked="False"
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
174 label="Use fixed background lambda as local lambda for every peak region" help="up to 9X more time consuming (--nolambda)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
175 <param name="ratio" type="float" value="1.0"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
176 label="When set, use a custom scaling ratio of ChIP/control (e.g. calculated using NCIS) for linear scaling"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
177 help="(--ratio)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
178 <param name="slocal" value="1000" type="integer" label="The small nearby region in basepairs to calculate dynamic lambda"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
179 help="This is used to capture the bias near the peak summit region. Invalid if there is no control data. If you set this to 0, MACS will skip slocal lambda calculation. *Note* that MACS will always perform a d-size local lambda calculation. The final local bias should be the maximum of the lambda value from d, slocal, and llocal size windows. (--slocal)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
180 <param name="llocal" value="10000" type="integer" label="The large nearby region in basepairs to calculate dynamic lambda"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
181 help="This is used to capture the surround bias. If you set this to 0, MACS will skip llocal lambda calculation. *Note* that MACS will always perform a d-size local lambda calculation. The final local bias should be the maximum of the lambda value from d, slocal, and llocal size windows. (--llocal)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
182 <conditional name="broad_options">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
183 <param name="broad_options_selector" type="select"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
184 label="Composite broad regions" help="by putting nearby highly enriched regions into a broad region with loose cutoff (--broad)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
185 <option value="nobroad" selected="true">No broad regions</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
186 <option value="broad">broad regions</option>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
187 </param>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
188 <when value="broad">
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
189 <param name="broad_cutoff" type="float" label="Cutoff for broad region" value="0.1"
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
190 help="value is either p-value or q-value as specified above (--broad-cutoff)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
191 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
192 <when value="nobroad">
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
193 <param name="call_summits" type="boolean" truevalue="--call-summits" falsevalue="" checked="False"
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
194 label="Use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region"
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
195 help="(--call-summits)"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
196 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
197 </conditional>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
198 <expand macro="keep_duplicates" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
199 </when>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
200 <when value="off" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
201 </conditional>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
202 </inputs>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
203 <outputs>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
204 <!--callpeaks output-->
fe62ba547975 Uploaded
iuc
parents:
diff changeset
205 <data name="output_bed" format="bed" label="${tool.name} on ${on_string} (Peaks in BED format)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
206 <filter>'peaks_bed' in outputs</filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
207 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
208 <data name="output_broadpeaks" format="bed" from_work_dir="MACS2_peaks.broadPeak" label="${tool.name} on ${on_string} (broad Peaks)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
209 <filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
210 ((
fe62ba547975 Uploaded
iuc
parents:
diff changeset
211 advanced_options['advanced_options_selector'] == "on" and
fe62ba547975 Uploaded
iuc
parents:
diff changeset
212 advanced_options['broad_options']['broad_options_selector'] == "broad"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
213 ))
fe62ba547975 Uploaded
iuc
parents:
diff changeset
214 </filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
215 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
216 <data name="output_gappedpeaks" format="tabular" from_work_dir="MACS2_peaks.gappedPeak" label="${tool.name} on ${on_string} (gapped Peaks)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
217 <filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
218 ((
fe62ba547975 Uploaded
iuc
parents:
diff changeset
219 advanced_options['advanced_options_selector'] == "on" and
fe62ba547975 Uploaded
iuc
parents:
diff changeset
220 advanced_options['broad_options']['broad_options_selector'] == "broad"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
221 ))
fe62ba547975 Uploaded
iuc
parents:
diff changeset
222 </filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
223 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
224 <data name="output_narrowpeaks" format="tabular" from_work_dir="MACS2_peaks.narrowPeak" label="${tool.name} on ${on_string} (narrow Peaks)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
225 <filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
226 (
fe62ba547975 Uploaded
iuc
parents:
diff changeset
227 advanced_options['advanced_options_selector'] == "off" or
fe62ba547975 Uploaded
iuc
parents:
diff changeset
228 (
fe62ba547975 Uploaded
iuc
parents:
diff changeset
229 advanced_options['advanced_options_selector'] == "on" and
fe62ba547975 Uploaded
iuc
parents:
diff changeset
230 advanced_options['broad_options']['broad_options_selector'] == "nobroad"
fe62ba547975 Uploaded
iuc
parents:
diff changeset
231 ))
fe62ba547975 Uploaded
iuc
parents:
diff changeset
232 </filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
233 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
234 <data name="output_summits" format="bed" from_work_dir="MACS2_summits.bed" label="${tool.name} on ${on_string} (summits in BED)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
235 <filter>'summits' in outputs</filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
236 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
237 <data name="output_plot" format="pdf" from_work_dir="MACS2_model.pdf" label="${tool.name} on ${on_string} (plot)">
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
238 <filter>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
239 ((
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
240 'pdf' in outputs and
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
241 nomodel_type['nomodel_type_selector'] == "create_model"
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
242 ))
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
243 </filter>
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
244 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
245 <data name="output_treat_pileup" format="bedgraph" from_work_dir="MACS2_treat_pileup.bdg" label="${tool.name} on ${on_string} (Bedgraph Treatment)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
246 <filter>'bdg' in outputs</filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
247 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
248 <data name="output_control_lambda" format="bedgraph" from_work_dir="MACS2_control_lambda.bdg" label="${tool.name} on ${on_string} (Bedgraph Control)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
249 <filter>'bdg' in outputs</filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
250 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
251 <data name="output_extra_files" format="html" label="${tool.name} on ${on_string} (html report)">
fe62ba547975 Uploaded
iuc
parents:
diff changeset
252 <filter>'html' in outputs</filter>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
253 </data>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
254 </outputs>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
255 <tests>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
256 <test>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
257 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
258 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
259 <param name="cutoff_options_selector" value="qvalue"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
260 <param name="qvalue" value="0.05"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
261 <param name="band_width" value="300"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
262 <param name="outputs" value="peaks_bed,bdg"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
263 <param name="effective_genome_size_options_selector" value="user_defined" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
264 <param name="gsize" value="3300000000" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
265 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
266 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
267 <output name="output_bed" compare="contains" file="callpeak_part.bed"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
268 <output name="output_summits" compare="contains" file="callpeak_summits_part.bed"/>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
269 </test>
2
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
270 <test>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
271 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
272 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
273 <param name="cutoff_options_selector" value="qvalue"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
274 <param name="qvalue" value="0.05"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
275 <param name="band_width" value="300"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
276 <param name="outputs" value="pdf"/>
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
277 <param name="effective_genome_size_options_selector" value="user_defined" />
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
278 <param name="gsize" value="3300000000" />
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
279 <output name="output_plot" file="magic.pdf" ftype="pdf" compare="contains" />
bfe57d6e0c4c planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents: 0
diff changeset
280 </test>
0
fe62ba547975 Uploaded
iuc
parents:
diff changeset
281 </tests>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
282 <help>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
283 **What it does**
fe62ba547975 Uploaded
iuc
parents:
diff changeset
284
fe62ba547975 Uploaded
iuc
parents:
diff changeset
285 With the improvement of sequencing techniques, chromatin immunoprecipitation followed by high throughput sequencing (ChIP-Seq)
fe62ba547975 Uploaded
iuc
parents:
diff changeset
286 is getting popular to study genome-wide protein-DNA interactions. To address the lack of powerful ChIP-Seq analysis method, we present a novel algorithm, named Model-based Analysis of ChIP-Seq (MACS), for
fe62ba547975 Uploaded
iuc
parents:
diff changeset
287 identifying transcript factor binding sites. MACS captures the influence of genome complexity to evaluate the significance of enriched ChIP regions, and MACS improves the spatial resolution of
fe62ba547975 Uploaded
iuc
parents:
diff changeset
288 binding sites through combining the information of both sequencing tag position and orientation. MACS can be easily used for ChIP-Seq data alone, or with control sample with the increase of specificity.
fe62ba547975 Uploaded
iuc
parents:
diff changeset
289
fe62ba547975 Uploaded
iuc
parents:
diff changeset
290 View the original MACS2 documentation: https://github.com/taoliu/MACS/blob/master/README
fe62ba547975 Uploaded
iuc
parents:
diff changeset
291
fe62ba547975 Uploaded
iuc
parents:
diff changeset
292 ------
fe62ba547975 Uploaded
iuc
parents:
diff changeset
293
fe62ba547975 Uploaded
iuc
parents:
diff changeset
294 **Usage**
fe62ba547975 Uploaded
iuc
parents:
diff changeset
295
fe62ba547975 Uploaded
iuc
parents:
diff changeset
296 **Peak Calling**: Main MACS2 Function to Call peaks from alignment results.
fe62ba547975 Uploaded
iuc
parents:
diff changeset
297
fe62ba547975 Uploaded
iuc
parents:
diff changeset
298 If you choose "Scores in bedGraph files" MACS will output the fragment pileup, control lambda, -log10-pvalue and -log10-qvalue scores in bedGraph files.
fe62ba547975 Uploaded
iuc
parents:
diff changeset
299 The peaks in BED format contain the following colomns: chr end length abs_summit pileup -log10(pvalue) fold_enrichment -log10(qvalue) name
fe62ba547975 Uploaded
iuc
parents:
diff changeset
300
fe62ba547975 Uploaded
iuc
parents:
diff changeset
301 **Compare .bdg files**: Deduct noise by comparing two signal tracks in bedGraph.
fe62ba547975 Uploaded
iuc
parents:
diff changeset
302
fe62ba547975 Uploaded
iuc
parents:
diff changeset
303
fe62ba547975 Uploaded
iuc
parents:
diff changeset
304 @citation@
fe62ba547975 Uploaded
iuc
parents:
diff changeset
305 </help>
fe62ba547975 Uploaded
iuc
parents:
diff changeset
306 <expand macro="citations" />
fe62ba547975 Uploaded
iuc
parents:
diff changeset
307 </tool>