Mercurial > repos > devteam > macs
annotate macs_wrapper.xml @ 3:e5f3bfba6812 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit 206cd8245e7619b0e924c5066d0172129222993d"
author | devteam |
---|---|
date | Wed, 05 Feb 2020 10:28:23 -0500 |
parents | f6319b0b4391 |
children |
rev | line source |
---|---|
3
e5f3bfba6812
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents:
2
diff
changeset
|
1 <tool id="peakcalling_macs" name="MACS" version="1.0.1" profile="16.04"> |
0 | 2 <description>Model-based Analysis of ChIP-Seq</description> |
3
e5f3bfba6812
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents:
2
diff
changeset
|
3 <command> |
e5f3bfba6812
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit 206cd8245e7619b0e924c5066d0172129222993d"
devteam
parents:
2
diff
changeset
|
4 python '$__tool_directory__/macs_wrapper.py' '$options_file' '$output_bed_file' '$output_extra_files' '$output_extra_files.files_path'</command> |
0 | 5 <requirements> |
6 <requirement type="package" version="1.3.7.1">macs</requirement> | |
7 <requirement type="package" version="2.15.0">R</requirement> | |
8 </requirements> | |
9 <inputs> | |
2
f6319b0b4391
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents:
1
diff
changeset
|
10 <param name="experiment_name" type="text" value="MACS in Galaxy" label="Experiment Name"/> |
0 | 11 <conditional name="input_type"> |
12 <param name="input_type_selector" type="select" label="Paired End Sequencing"> | |
13 <option value="paired_end">Paired End (requires elandmulti format)</option> | |
14 <option value="single_end" selected="true">Single End</option> | |
15 </param> | |
16 <when value="paired_end"> | |
17 <param name="input_chipseq_file1" type="data" format="elandmulti" label="ChIP-Seq Tag File 1" /> | |
18 <param name="input_chipseq_file2" type="data" format="elandmulti" label="ChIP-Seq Tag File 2" /> | |
19 <param name="input_control_file1" type="data" format="elandmulti" optional="True" label="ChIP-Seq Control File 1" /> | |
20 <param name="input_control_file2" type="data" format="elandmulti" optional="True" label="ChIP-Seq Control File 2" /> | |
21 <param name="petdist" type="integer" label="Best distance between Pair-End Tags" value="200"/> | |
22 </when> | |
23 <when value="single_end"> | |
24 <param name="input_chipseq_file1" type="data" format="bed,sam,bam,eland,elandmulti" label="ChIP-Seq Tag File" /> | |
25 <param name="input_control_file1" type="data" format="bed,sam,bam,eland,elandmulti" optional="True" label="ChIP-Seq Control File" /> | |
26 </when> | |
27 </conditional> | |
28 <param name="gsize" type="float" label="Effective genome size" value="2.7e+9" help="default: 2.7e+9"/> | |
29 <param name="tsize" type="integer" label="Tag size" value="25"/> | |
30 <param name="bw" type="integer" label="Band width" value="300"/> | |
31 <param name="pvalue" type="float" label="Pvalue cutoff for peak detection" value="1e-5" help="default: 1e-5"/> | |
32 <param name="mfold" type="integer" label="Select the regions with MFOLD high-confidence enrichment ratio against background to build model" value="32"/> | |
33 <param name="xls_to_interval" label="Parse xls files into into distinct interval files" type="boolean" truevalue="create" falsevalue="do_not_create" checked="False"/> | |
34 <conditional name="wig_type"> | |
35 <param name="wig_type_selector" type="select" label="Save shifted raw tag count at every bp into a wiggle file"> | |
36 <option value="wig">Save</option> | |
37 <option value="no_wig" selected="true">Do not create wig file (faster)</option> | |
38 </param> | |
39 <when value="wig"> | |
40 <param name="wigextend" type="integer" label="Extend tag from its middle point to a wigextend size fragment." value="-1" help="Use value less than 0 for default (modeled d)"/> | |
41 <param name="space" type="integer" label="Resolution for saving wiggle files" value="10"/> | |
42 </when> | |
43 <when value="no_wig"> | |
44 <!-- do nothing here --> | |
45 </when> | |
46 </conditional> | |
47 <param name="nolambda" label="Use fixed background lambda as local lambda for every peak region" type="boolean" truevalue="--nolambda" falsevalue="" checked="False" help="up to 9X more time consuming"/> | |
2
f6319b0b4391
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/macs commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents:
1
diff
changeset
|
48 <param name="lambdaset" type="text" label="3 levels of regions around the peak region to calculate the maximum lambda as local lambda" value="1000,5000,10000"/> |
0 | 49 <conditional name="nomodel_type"> |
50 <param name="nomodel_type_selector" type="select" label="Build Model"> | |
51 <option value="nomodel">Do not build the shifting model</option> | |
52 <option value="create_model" selected="true">Build the shifting model</option> | |
53 </param> | |
54 <when value="nomodel"> | |
55 <param name="shiftsize" type="integer" label="Arbitrary shift size in bp" value="100"/> | |
56 </when> | |
57 <when value="create_model"> | |
58 <!-- do nothing here --> | |
59 </when> | |
60 </conditional> | |
61 <conditional name="diag_type"> | |
62 <param name="diag_type_selector" type="select" label="Diagnosis report" help="up to 9X more time consuming"> | |
63 <option value="diag">Produce a diagnosis report</option> | |
64 <option value="no_diag" selected="true">Do not produce report (faster)</option> | |
65 </param> | |
66 <when value="diag"> | |
67 <param name="fe-min" type="integer" label="Min fold enrichment to consider" value="0"/> | |
68 <param name="fe-max" type="integer" label="Max fold enrichment to consider" value="32"/> | |
69 <param name="fe-step" type="integer" label="Fold enrichment step" value="20"/> | |
70 </when> | |
71 <when value="no_diag"> | |
72 <!-- do nothing here --> | |
73 </when> | |
74 </conditional> | |
75 <param name="futurefdr" label="Perform the new peak detection method (futurefdr)" type="boolean" truevalue="--futurefdr" falsevalue="" checked="False" help="The default method only consider the peak location, 1k, 5k, and 10k regions in the control data; whereas the new future method also consider the 5k, 10k regions in treatment data to calculate local bias."/> | |
76 </inputs> | |
77 <outputs> | |
78 <data name="output_bed_file" format="bed" label="${tool.name} on ${on_string} (peaks: bed)"/> | |
79 <data name="output_xls_to_interval_peaks_file" format="interval" label="${tool.name} on ${on_string} (peaks: interval)"> | |
80 <filter>xls_to_interval is True</filter> | |
81 </data> | |
82 <data name="output_xls_to_interval_negative_peaks_file" format="interval" label="${tool.name} on ${on_string} (negative peaks: interval)"> | |
83 <filter>xls_to_interval is True</filter> | |
84 <filter>input_type['input_control_file1'] is not None</filter> | |
85 </data> | |
86 <data name="output_treatment_wig_file" format="wig" label="${tool.name} on ${on_string} (treatment: wig)"> | |
87 <filter>wig_type['wig_type_selector']=='wig'</filter> | |
88 </data> | |
89 <data name="output_control_wig_file" format="wig" label="${tool.name} on ${on_string} (control: wig)"> | |
90 <filter>wig_type['wig_type_selector'] == 'wig'</filter> | |
91 <filter>input_type['input_control_file1'] is not None</filter> | |
92 </data> | |
93 <data name="output_extra_files" format="html" label="${tool.name} on ${on_string} (html report)"/> | |
94 </outputs> | |
95 <configfiles> | |
96 <configfile name="options_file"><% | |
97 import json | |
98 %> | |
99 #set $__options = { 'experiment_name':str( $experiment_name ), 'gsize':int( float( str( $gsize ) ) ), 'tsize':str( $tsize ), 'bw':str( $bw ), 'pvalue':str( $pvalue ), 'mfold':str( $mfold ), 'nolambda':str( $nolambda ), 'lambdaset': str( $lambdaset ), 'futurefdr':str( $futurefdr ) } | |
100 #if str( $xls_to_interval ) == 'create': | |
101 #set $__options['xls_to_interval'] = { 'peaks_file': str( $output_xls_to_interval_peaks_file ), 'negative_peaks_file': str( $output_xls_to_interval_negative_peaks_file ) } | |
102 #else: | |
103 #set $__options['xls_to_interval'] = False | |
104 #end if | |
105 ##treatment/tag input files and format | |
106 #set $__options['input_chipseq'] = [ str( $input_type['input_chipseq_file1'] ) ] | |
107 #if $input_type['input_type_selector'] == 'paired_end': | |
108 #set $_hole = __options['input_chipseq'].append( str( $input_type['input_chipseq_file2'] ) ) | |
109 #set $__options['format'] = 'ELANDMULTIPET' | |
110 #else: | |
111 #set $__options['format'] = $input_type['input_chipseq_file1'].extension.upper() | |
112 #end if | |
113 ##control/input files | |
114 #set $__options['input_control'] = [] | |
115 #if str( $input_type['input_control_file1'] ) != 'None': | |
116 #set $_hole = __options['input_control'].append( str( $input_type['input_control_file1'] ) ) | |
117 #end if | |
118 #if $input_type['input_type_selector'] == 'paired_end' and str( $input_type['input_control_file2'] ) != 'None': | |
119 #set $_hole = __options['input_control'].append( str( $input_type['input_control_file2'] ) ) | |
120 #end if | |
121 ##wig options | |
122 #if $wig_type['wig_type_selector'] == 'wig': | |
123 #set $__options['wig'] = {} | |
124 #set $__options['wig']['wigextend'] = str( $wig_type['wigextend'] ) | |
125 #set $__options['wig']['space'] = str( $wig_type['space'] ) | |
126 #set $__options['wig']['output_treatment_file'] = str( $output_treatment_wig_file ) | |
127 #if $input_type['input_control_file1'] is not None: | |
128 #set $__options['wig']['output_control_file'] = str( $output_control_wig_file ) | |
129 #end if | |
130 #end if | |
131 ##model options | |
132 #if $nomodel_type['nomodel_type_selector'] == 'nomodel': | |
133 #set $__options['nomodel'] = str( $nomodel_type['shiftsize'] ) | |
134 #end if | |
135 ##diag options | |
136 #if $diag_type['diag_type_selector'] == 'diag': | |
137 #set $__options['diag'] = { 'fe-min':str( $diag_type['fe-min'] ), 'fe-max':str( $diag_type['fe-max'] ), 'fe-step':str( $diag_type['fe-step'] ) } | |
138 #end if | |
139 ${ json.dumps( __options ) } | |
140 </configfile> | |
141 </configfiles> | |
142 <tests> | |
143 <test> | |
144 <param name="input_type_selector" value="single_end" /> | |
145 <param name="input_chipseq_file1" value="chipseq_enriched.bed.gz" ftype="bed" /> | |
146 <param name="input_control_file1" value="chipseq_input.bed.gz" ftype="bed" /> | |
147 <param name="experiment_name" value="Galaxy Test Run" /> | |
148 <param name="tsize" value="36" /> | |
149 <param name="mfold" value="13" /> | |
150 <param name="gsize" value="2.7e+9" /> | |
151 <param name="bw" value="300" /> | |
152 <param name="pvalue" value="1e-5" /> | |
153 <param name="xls_to_interval" /> | |
154 <param name="wig_type_selector" value="no_wig" /> | |
155 <param name="nolambda"/> | |
156 <param name="lambdaset" value="1000,5000,10000"/> | |
157 <param name="nomodel_type_selector" value="create_model" /> | |
158 <param name="diag_type_selector" value="no_diag" /> | |
159 <param name="futurefdr"/> | |
160 <output name="output_bed_file" file="peakcalling_macs/macs_test_1_out.bed" /> | |
161 <output name="output_html_file" file="peakcalling_macs/macs_test_1_out.html" compare="re_match" > | |
162 <extra_files type="file" name="Galaxy_Test_Run_model.pdf" value="peakcalling_macs/test2/Galaxy_Test_Run_model.pdf" compare="re_match"/> | |
163 <extra_files type="file" name="Galaxy_Test_Run_model.r" value="peakcalling_macs/test2/Galaxy_Test_Run_model.r" compare="re_match"/> | |
164 <extra_files type="file" name="Galaxy_Test_Run_model.r.log" value="peakcalling_macs/test2/Galaxy_Test_Run_model.r.log"/> | |
165 <extra_files type="file" name="Galaxy_Test_Run_negative_peaks.xls" value="peakcalling_macs/test2/Galaxy_Test_Run_negative_peaks.xls" compare="re_match"/> | |
166 <extra_files type="file" name="Galaxy_Test_Run_peaks.xls" value="peakcalling_macs/test2/Galaxy_Test_Run_peaks.xls" compare="re_match"/> | |
167 </output> | |
168 </test> | |
169 <test> | |
170 <param name="input_type_selector" value="single_end" /> | |
171 <param name="input_chipseq_file1" value="chipseq_enriched.bed.gz" ftype="bed" /> | |
172 <param name="input_control_file1" value="chipseq_input.bed.gz" ftype="bed" /> | |
173 <param name="experiment_name" value="Galaxy Test Run" /> | |
174 <param name="tsize" value="36" /> | |
175 <param name="mfold" value="13" /> | |
176 <param name="gsize" value="2.7e+9" /> | |
177 <param name="bw" value="300" /> | |
178 <param name="pvalue" value="1e-5" /> | |
179 <param name="xls_to_interval" value="true" /> | |
180 <param name="wig_type_selector" value="no_wig" /> | |
181 <param name="nolambda"/> | |
182 <param name="lambdaset" value="1000,5000,10000"/> | |
183 <param name="nomodel_type_selector" value="create_model" /> | |
184 <param name="diag_type_selector" value="no_diag" /> | |
185 <param name="futurefdr"/> | |
186 <output name="output_bed_file" file="peakcalling_macs/macs_test_1_out.bed" /> | |
187 <output name="output_xls_to_interval_peaks_file" file="peakcalling_macs/macs_test_2_peaks_out.interval" lines_diff="4" /> | |
188 <output name="output_xls_to_interval_negative_peaks_file" file="peakcalling_macs/macs_test_2_neg_peaks_out.interval" /> | |
189 <output name="output_html_file" file="peakcalling_macs/macs_test_1_out.html" compare="re_match" > | |
190 <extra_files type="directory" value="peakcalling_macs/test2/" compare="re_match"/> | |
191 </output> | |
192 </test> | |
193 <!-- <test> | |
194 <param name="input_type_selector" value="single_end" /> | |
195 <param name="input_chipseq_file1" value="chipseq_enriched.bed.gz" ftype="bed" /> | |
196 <param name="input_control_file1" value="chipseq_input.bed.gz" ftype="bed" /> | |
197 <param name="experiment_name" value="Galaxy Test Run" /> | |
198 <param name="tsize" value="36" /> | |
199 <param name="mfold" value="13" /> | |
200 <param name="gsize" value="2.7e+9" /> | |
201 <param name="bw" value="300" /> | |
202 <param name="pvalue" value="1e-5" /> | |
203 <param name="xls_to_interval" value="true" /> | |
204 <param name="wig_type_selector" value="wig" /> | |
205 <param name="wigextend" value="-1" /> | |
206 <param name="space" value="10" /> | |
207 <param name="nolambda"/> | |
208 <param name="lambdaset" value="1000,5000,10000"/> | |
209 <param name="nomodel_type_selector" value="create_model" /> | |
210 <param name="diag_type_selector" value="no_diag" /> | |
211 <param name="futurefdr"/> | |
212 <output name="output_bed_file" file="peakcalling_macs/macs_test_1_out.bed" /> | |
213 <output name="output_xls_to_interval_peaks_file" file="peakcalling_macs/macs_test_2_peaks_out.interval" lines_diff="4" /> | |
214 <output name="output_xls_to_interval_negative_peaks_file" file="macs_test_2_neg_peaks_out.interval" /> | |
215 <output name="output_treatment_wig_file" file="peakcalling_macs/macs_test_3_treatment_out.wig" /> | |
216 <output name="output_control_wig_file" file="peakcalling_macs/macs_test_3_control_out.wig" /> | |
217 <output name="output_html_file" file="peakcalling_macs/macs_test_3_out.html" compare="re_match" > | |
218 <extra_files type="directory" value="peakcalling_macs/test2/" compare="re_match"/> | |
219 </output> | |
220 </test> --> | |
221 </tests> | |
222 <help> | |
223 **What it does** | |
224 | |
225 This tool allows ChIP-seq peak calling using MACS. | |
226 | |
227 Depending upon selected options, 2 to 6 history items will be created; the first output will be a standard BED file and the last will be an HTML report containing links to download additional files generated by MACS. Up to two each of wig and interval files can be optionally created; the interval files are parsed from the xls output. | |
228 | |
229 View the original MACS documentation: http://liulab.dfci.harvard.edu/MACS/00README.html. | |
230 | |
231 ------ | |
232 | |
233 **Citation** | |
234 | |
235 For the underlying tool, please cite `Zhang Y, Liu T, Meyer CA, Eeckhoute J, Johnson DS, Bernstein BE, Nusbaum C, Myers RM, Brown M, Li W, Liu XS. Model-based analysis of ChIP-Seq (MACS). Genome Biol. 2008;9(9):R137. <http://www.ncbi.nlm.nih.gov/pubmed/18798982>`_ | |
236 | |
237 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.* | |
238 | |
1
6e5fcffb68c9
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947
devteam
parents:
0
diff
changeset
|
239 </help> |
6e5fcffb68c9
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947
devteam
parents:
0
diff
changeset
|
240 <citations> |
6e5fcffb68c9
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947
devteam
parents:
0
diff
changeset
|
241 <citation type="doi">10.1186/gb-2008-9-9-r137</citation> |
6e5fcffb68c9
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947
devteam
parents:
0
diff
changeset
|
242 </citations> |
0 | 243 </tool> |