Mercurial > repos > iuc > macs2
annotate macs2_callpeak.xml @ 5:beb902da6e5f draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
author | iuc |
---|---|
date | Sat, 08 Apr 2017 08:28:57 -0400 |
parents | 56e104999978 |
children | 2119d851a53b |
rev | line source |
---|---|
0 | 1 <tool id="macs2_callpeak" name="MACS2 callpeak" version="@VERSION_STRING@.0"> |
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 | 6 <expand macro="requirements"> |
7 </expand> | |
2
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
8 <expand macro="stdio" /> |
0 | 9 <expand macro="version_command" /> |
10 <command> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
11 <![CDATA[ |
0 | 12 #set $temp_stderr = 'macs2_stderr' |
13 (macs2 callpeak | |
14 | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
15 --name 'MACS2' |
0 | 16 -t ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_treatment_file ) ) } |
17 | |
18 #if str( $input_control_file ) != 'None': | |
19 -c ${ ' '.join( map( lambda x:'"%s"' % ( x ), $input_control_file ) ) } | |
20 #end if | |
21 | |
22 #for $ifile in $input_treatment_file: | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
23 #if $ifile.ext.upper() == "BAM" and $bampe: |
0 | 24 --format BAMPE |
25 #else | |
26 --format='$ifile.ext.upper()' | |
27 #end if | |
28 #end for | |
29 | |
30 @effective_genome_size@ | |
31 | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
32 --bw '${$band_width}' |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
33 @mfold_command@ |
0 | 34 |
35 ## advanced options | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
36 #if $advanced_options.advanced_options_selector == "on": |
0 | 37 $advanced_options.nolambda |
38 $advanced_options.to_large | |
39 --ratio $advanced_options.ratio | |
40 --slocal $advanced_options.slocal | |
41 --llocal $advanced_options.llocal | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
42 #if $advanced_options.broad_options.broad_options_selector == "broad": |
0 | 43 --broad |
44 --broad-cutoff='${ advanced_options.broad_options.broad_cutoff }' | |
45 #else: | |
46 $advanced_options.broad_options.call_summits | |
47 #end if | |
48 | |
49 #if str( $advanced_options.keep_dup_options.keep_dup_options_selector ) == "user": | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
50 --keep-dup '${ advanced_options.keep_dup_options.user_keepdup }' |
0 | 51 #else |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
52 --keep-dup '${ advanced_options.keep_dup_options.keep_dup_options_selector }' |
0 | 53 #end if |
54 | |
55 #end if | |
56 | |
57 ## With --bdg two additional output files will be generated. | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
58 #if "bdg" in str($outputs).split(','): |
0 | 59 --bdg |
60 #end if | |
61 | |
62 ## cutoff selection | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
63 #if str( $cutoff_options.cutoff_options_selector ) == "qvalue": |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
64 --qvalue '${ cutoff_options.qvalue }' |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
65 #elif str( $cutoff_options.cutoff_options_selector ) == "pvalue": |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
66 #if str($cutoff_options.pvalue).strip() != "": |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
67 --pvalue '${ cutoff_options.pvalue }' |
0 | 68 #end if |
69 #end if | |
70 | |
71 ## model options | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
72 #if $nomodel_type.nomodel_type_selector == "nomodel": |
0 | 73 --nomodel |
74 --extsize '${ nomodel_type.extsize }' | |
75 #end if | |
76 | |
77 2> $temp_stderr) | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
78 #if "peaks_tabular" in str($outputs).split(','): |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
79 && |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
80 cp MACS2_peaks.xls '${ output_tabular }' |
0 | 81 #end if |
82 | |
83 ## run R to create pdf from model script | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
84 #if $nomodel_type.nomodel_type_selector == "create_model" and "pdf" in str($outputs).split(','): |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
85 && |
0 | 86 Rscript MACS2_model.r > MACS2_model.r.log |
87 #end if | |
88 | |
89 #if 'html' in str($outputs).split(','): | |
90 ## if output files exists, move them to the files_path and create a html result page linking to them | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
91 && |
0 | 92 ( |
93 count=`ls -1 MACS2* 2>/dev/null | wc -l`; | |
94 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
|
95 then |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
96 mkdir '${ output_extra_files.files_path }' && |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
97 cp MACS2* '${ output_extra_files.files_path }' && |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
98 python '$__tool_direcotry__/dir2html.py' |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
99 '${ output_extra_files.files_path }' $temp_stderr > '${ output_extra_files }' |
0 | 100 fi; |
101 ) | |
102 #end if | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
103 && |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
104 exit_code_for_galaxy=\$? && |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
105 cat $temp_stderr 2>&1 && |
0 | 106 (exit \$exit_code_for_galaxy) |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
107 ]]> |
0 | 108 </command> |
109 <inputs> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
110 <param name="input_treatment_file" type="data" format="bam,sam,bed" multiple="true" |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
111 label="ChIP-Seq Treatment File" /> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
112 <param name="input_control_file" type="data" format="bam,sam,bed" multiple="true" optional="True" |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
113 label="ChIP-Seq Control File" /> |
0 | 114 |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
115 <param name="bampe" type="boolean" truevalue="--format BAMPE" falsevalue="" checked="False" |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
116 label="Are your inputs Paired-end BAM files?" |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
117 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)"/> |
0 | 118 |
119 <expand macro="conditional_effective_genome_size" /> | |
120 <expand macro="band_width" /> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
121 <expand macro="mfold_options" /> |
0 | 122 |
123 <conditional name="cutoff_options"> | |
124 <param name="cutoff_options_selector" type="select" label="Peak detection based on" help="default uses q-value"> | |
125 <option value="qvalue" selected="true">q-value</option> | |
126 <option value="pvalue">p-value</option> | |
127 </param> | |
128 <when value="pvalue"> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
129 <param name="pvalue" type="float" value="" label="p-value cutoff for peak detection" help="default: not set (--pvalue)"/> |
0 | 130 </when> |
131 <when value="qvalue"> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
132 <param name="qvalue" type="float" value="0.05" label="Minimum FDR (q-value) cutoff for peak detection" help="The q-value (minimum FDR) cutoff to call significant regions. Default is 0.01. For broad marks, you can try 0.05 as cutoff. Q-values are calculated from p-values using Benjamini-Hochberg procedure. (--qvalue)"/> |
0 | 133 </when> |
134 </conditional> | |
135 | |
136 <conditional name="nomodel_type"> | |
137 <param name="nomodel_type_selector" type="select" label="Build Model"> | |
138 <option value="nomodel">Do not build the shifting model (--nomodel)</option> | |
139 <option value="create_model" selected="true">Build the shifting model</option> | |
140 </param> | |
141 <when value="create_model"/> | |
142 <when value="nomodel"> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
143 <param name="extsize" type="integer" value="200" label="Set extension size" help="The arbitrary extension size in bp. When nomodel is true, MACS will use this value as fragment size to extend each read towards 3-prime; end, then pile them up. It is exactly twice the number of obsolete SHIFTSIZE. In previous language, each read is moved 5-prime-to-3-prime direction to middle of fragment by 0.5 d, then extended to both direction with 0.5 d. This is equivalent to say each read is extended towards 5-prime-to-3-prime into a d size fragment. --extsize (this option) and --shift (the option below) can be combined when necessary. See --shift option below. Default = 200 (--extsize)."/> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
144 <param name="shift" type="integer" value="0" label="Set shift size" help="(NOT the legacy --shiftsize option!) The arbitrary shift in bp. Use discretion while setting it other than default value. When NOMODEL is set, MACS will use this value to move cutting ends (5-prime) towards 5-prime-to-3-prime direction then apply EXTSIZE to extend them to fragments. When this value is negative, ends will be moved toward 3-prime-to-5-prime direction. Recommended to keep it as default 0 for ChIP-Seq datasets, or -1 * 0.5 of --extsize (option above) together with --extsize option for detecting enriched cutting loci such as certain DNAseI-Seq datasets. Note, you can't set values other than 0 if format is BAMPE for paired-end data. Default = 0 (--shift)."/> |
0 | 145 </when> |
146 </conditional> | |
147 | |
4
56e104999978
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 9df9b52baf62b70fbcfc3fbe965d7197d4e8738e
iuc
parents:
3
diff
changeset
|
148 <param name="outputs" type="select" display="checkboxes" multiple="True" optional="false" label="Outputs" help="PDF only created when model is build"> |
3
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
149 <option value="peaks_tabular" selected="True">Peaks as tabular file</option> |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
150 <option value="summits" selected="true">Peak summits</option> |
0 | 151 <option value="bdg" selected="true">Scores in bedGraph files (--bdg)</option> |
152 <option value="html">Summary page (html)</option> | |
153 <option value="pdf">Plot in PDF</option> | |
154 </param> | |
155 | |
156 <conditional name="advanced_options"> | |
157 <param name="advanced_options_selector" type="select" label="Advanced options"> | |
158 <option value="off" selected="true">Hide advanced options</option> | |
159 <option value="on">Display advanced options</option> | |
160 </param> | |
161 <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
|
162 <param name="to_large" type="boolean" truevalue="--to-large" falsevalue="" checked="False" |
0 | 163 label="When set, scale the small sample up to the bigger sample" |
164 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
|
165 <param name="nolambda" type="boolean" truevalue="--nolambda" falsevalue="" checked="False" |
0 | 166 label="Use fixed background lambda as local lambda for every peak region" help="up to 9X more time consuming (--nolambda)"/> |
167 <param name="ratio" type="float" value="1.0" | |
168 label="When set, use a custom scaling ratio of ChIP/control (e.g. calculated using NCIS) for linear scaling" | |
169 help="(--ratio)"/> | |
170 <param name="slocal" value="1000" type="integer" label="The small nearby region in basepairs to calculate dynamic lambda" | |
171 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)"/> | |
172 <param name="llocal" value="10000" type="integer" label="The large nearby region in basepairs to calculate dynamic lambda" | |
173 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)"/> | |
174 <conditional name="broad_options"> | |
175 <param name="broad_options_selector" type="select" | |
176 label="Composite broad regions" help="by putting nearby highly enriched regions into a broad region with loose cutoff (--broad)"> | |
177 <option value="nobroad" selected="true">No broad regions</option> | |
178 <option value="broad">broad regions</option> | |
179 </param> | |
180 <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
|
181 <param name="broad_cutoff" type="float" label="Cutoff for broad region" value="0.1" |
0 | 182 help="value is either p-value or q-value as specified above (--broad-cutoff)"/> |
183 </when> | |
184 <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
|
185 <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
|
186 label="Use a more sophisticated signal processing approach to find subpeak summits in each enriched peak region" |
0 | 187 help="(--call-summits)"/> |
188 </when> | |
189 </conditional> | |
190 <expand macro="keep_duplicates" /> | |
191 </when> | |
192 <when value="off" /> | |
193 </conditional> | |
194 </inputs> | |
195 <outputs> | |
196 <!--callpeaks output--> | |
3
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
197 <data name="output_tabular" format="tabular" label="${tool.name} on ${on_string} (Peaks in tabular format)"> |
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
198 <filter>'peaks_tabular' in outputs</filter> |
0 | 199 </data> |
200 <data name="output_broadpeaks" format="bed" from_work_dir="MACS2_peaks.broadPeak" label="${tool.name} on ${on_string} (broad Peaks)"> | |
201 <filter> | |
202 (( | |
203 advanced_options['advanced_options_selector'] == "on" and | |
204 advanced_options['broad_options']['broad_options_selector'] == "broad" | |
205 )) | |
206 </filter> | |
207 </data> | |
3
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
208 <data name="output_gappedpeaks" format="bed" from_work_dir="MACS2_peaks.gappedPeak" label="${tool.name} on ${on_string} (gapped Peaks)"> |
0 | 209 <filter> |
210 (( | |
211 advanced_options['advanced_options_selector'] == "on" and | |
212 advanced_options['broad_options']['broad_options_selector'] == "broad" | |
213 )) | |
214 </filter> | |
215 </data> | |
3
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
216 <data name="output_narrowpeaks" format="bed" from_work_dir="MACS2_peaks.narrowPeak" label="${tool.name} on ${on_string} (narrow Peaks)"> |
0 | 217 <filter> |
218 ( | |
219 advanced_options['advanced_options_selector'] == "off" or | |
220 ( | |
221 advanced_options['advanced_options_selector'] == "on" and | |
222 advanced_options['broad_options']['broad_options_selector'] == "nobroad" | |
223 )) | |
224 </filter> | |
225 </data> | |
226 <data name="output_summits" format="bed" from_work_dir="MACS2_summits.bed" label="${tool.name} on ${on_string} (summits in BED)"> | |
227 <filter>'summits' in outputs</filter> | |
228 </data> | |
229 <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
|
230 <filter> |
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
231 (( |
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
232 '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
|
233 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
|
234 )) |
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
235 </filter> |
0 | 236 </data> |
237 <data name="output_treat_pileup" format="bedgraph" from_work_dir="MACS2_treat_pileup.bdg" label="${tool.name} on ${on_string} (Bedgraph Treatment)"> | |
238 <filter>'bdg' in outputs</filter> | |
239 </data> | |
240 <data name="output_control_lambda" format="bedgraph" from_work_dir="MACS2_control_lambda.bdg" label="${tool.name} on ${on_string} (Bedgraph Control)"> | |
241 <filter>'bdg' in outputs</filter> | |
242 </data> | |
243 <data name="output_extra_files" format="html" label="${tool.name} on ${on_string} (html report)"> | |
244 <filter>'html' in outputs</filter> | |
245 </data> | |
246 </outputs> | |
247 <tests> | |
248 <test> | |
249 <param name="input_control_file" value="Control_200K.bed" ftype="bed"/> | |
250 <param name="input_treatment_file" value="ChIP_200K.bed" ftype="bed"/> | |
251 <param name="cutoff_options_selector" value="qvalue"/> | |
252 <param name="qvalue" value="0.05"/> | |
253 <param name="band_width" value="300"/> | |
3
6d4babad010f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents:
2
diff
changeset
|
254 <param name="outputs" value="peaks_tabular,bdg"/> |
0 | 255 <param name="effective_genome_size_options_selector" value="user_defined" /> |
256 <param name="gsize" value="3300000000" /> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
257 <param name="lower" value="5" /> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
258 <param name="upper" value="50" /> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
259 <output name="output_control_lambda" compare="contains" file="callpeak_control_part.bdg" lines_diff="1"/> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
260 <output name="output_treat_pileup" compare="contains" file="callpeak_treatment_part.bdg" lines_diff="1"/> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
261 <output name="output_tabular" compare="contains" file="callpeak_part.tabular" lines_diff="1"/> |
0 | 262 </test> |
2
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
263 <test> |
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
264 <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
|
265 <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
|
266 <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
|
267 <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
|
268 <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
|
269 <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
|
270 <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
|
271 <param name="gsize" value="3300000000" /> |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
272 <param name="lower" value="5" /> |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
273 <param name="upper" value="50" /> |
2
bfe57d6e0c4c
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit 63955994af5090ec444c03c221df0012d5ae4e74
iuc
parents:
0
diff
changeset
|
274 <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
|
275 </test> |
0 | 276 </tests> |
277 <help> | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
278 <![CDATA[ |
0 | 279 **What it does** |
280 | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
281 **callpeak** is the main function of the MACS2_ package. MACS identifies enriched binding sites in ChIP-seq experiments. |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
282 It captures the influence of genome complexity to evaluate the significance of enriched ChIP regions, |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
283 and improves the spatial resolution of binding sites through combining the information of both sequencing |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
284 tag position and orientation. MACS can be used for ChIP-Seq data alone, or with control sample with the |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
285 increase of specificity (recommended). |
0 | 286 |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
287 .. _MACS2: https://github.com/taoliu/MACS |
0 | 288 |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
289 MACS2 performs the following analysis steps: |
0 | 290 |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
291 * Artificially extend reads to expected fragment length, and generate coverage map along genome. |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
292 * Assume background reads are Poisson distributed. Mean of the Poisson is locally variable and is estimated from control experiment (if available) in 5Kbp or 10Kbp around examined location. |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
293 * For a given location, do we see more reads than we would have expected from the Poisson (p < 0.00005)? If Yes, MACS2 calls a peak. |
0 | 294 |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
295 |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
296 .. class:: warningmark |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
297 |
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
298 If MACS2 fails, it is usually because it cannot build the model for peaks. You may want to extend **mfold** range by increasing the upper bound or play with **Build model** options. |
0 | 299 |
300 | |
301 @citation@ | |
5
beb902da6e5f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/macs2 commit e10f301c7f8c54a7d12df4e631527197baccf70b
iuc
parents:
4
diff
changeset
|
302 ]]> |
0 | 303 </help> |
304 <expand macro="citations" /> | |
305 </tool> |