0
|
1 <!--annotatePeaks - developed by Jocelyn Brayet <jocelyn.brayet@curie.fr>
|
|
2 Copyright (C) 2015 Institut Curie
|
|
3
|
|
4 This program is free software: you can redistribute it and/or modify
|
|
5 it under the terms of the GNU General Public License as published by
|
|
6 the Free Software Foundation, either version 3 of the License, or
|
|
7 (at your option) any later version.
|
|
8
|
|
9 This program is distributed in the hope that it will be useful,
|
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 GNU General Public License for more details.
|
|
13
|
|
14 You should have received a copy of the GNU General Public License
|
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>.-->
|
|
16 <tool id="annotatePeaks" name="AnnotatePeaks" version="1.0">
|
|
17 <description>Genomic annotation of Chip-Seq peaks</description>
|
|
18 <requirements>
|
|
19 <requirement type="package" version="2.11.1">fontconfig</requirement>
|
|
20 <requirement type="package" version="3.1.2">R</requirement>
|
|
21 </requirements>
|
|
22 <command interpreter="bash">
|
|
23 #if str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "no" #annotatePeaks_wrapper.sh -f $inputfile -y $log -m $minScore -l $left -o $outputPNG -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "yes" # annotatePeaks_wrapper.sh -f $inputfile -y $log -c $controlfile -x $statsControl -o $outputPNG -m $minScore -l $left -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "no" # annotatePeaks_wrapper.sh -y $log -f $inputfile -e $regfile -m $minScore -l $left -o $outputPNG -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "yes" # annotatePeaks_wrapper.sh -f $inputfile -c $controlfile -x $statsControl -l $left -y $log -o $outputPNG -m $minScore -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -e $regfile -p 0 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "no" #annotatePeaks_wrapper.sh -f $inputfile -y $log -m $minScore -l $left -o $outputPDF -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "yes" # annotatePeaks_wrapper.sh -f $inputfile -y $log -c $controlfile -x $statsControl -o $outputPDF -m $minScore -l $left -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "no" # annotatePeaks_wrapper.sh -y $log -f $inputfile -e $regfile -m $minScore -l $left -o $outputPDF -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "yes" # annotatePeaks_wrapper.sh -f $inputfile -c $controlfile -x $statsControl -l $left -y $log -o $outputPDF -m $minScore -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -e $regfile -p 1#end if
|
|
24 </command>
|
|
25 <inputs>
|
|
26
|
|
27 <param name="inputfile" type="data" label="ChIP peaks" value="ChIP peaks File" format="bed"/>
|
|
28 <param name="minScore" type="float" label="MinimalScore" value="0" help="Set to 0 if you don't want to filter your .BED file with peaks"/>
|
|
29
|
|
30 <conditional name="use_control">
|
|
31 <param name="use_control_selector" type="select" label="Use control data">
|
|
32 <option value="no" selected="true">No</option>
|
|
33 <option value="yes">Yes</option>
|
|
34 </param>
|
|
35 <when value="yes">
|
|
36 <param name="controlfile" type="data" label="Control peaks" value="Control peaks File" format="bed"/>
|
|
37 </when>
|
|
38 </conditional>
|
|
39
|
|
40 <param name="left" type="integer" label="Define Promoter is a region up to X bp upstream gene TSS" value="-2000"/>
|
|
41 <param name="right" type="integer" label="Define Immediate Downstream is a region up to X bp downstream gene TSS" value="2000"/>
|
|
42 <param name="EnhLeft" type="integer" label="Define Enhancer is a region up to X bp upstream gene TSS" value="-30000"/>
|
|
43 <param name="DownGene" type="integer" label="Define Gene Downstream is a region up to X bp downstream transcription end" value="5000"/>
|
|
44
|
|
45
|
|
46 <conditional name="input_organism">
|
|
47 <param name="input_organism_selector" type="select" label="Select organism">
|
|
48 <option value="Human" selected="true">Homo sapiens</option>
|
|
49 <option value="Mouse">Mus musculus</option>
|
|
50 <option value="Zebrafish">Zebrafish (Danio rerio)</option>
|
|
51 <option value="XTropicalis">X.Tropicalis</option>
|
|
52 <option value="Bacteria/MycoTube">M. tuberculosis</option>
|
|
53 </param>
|
|
54 <when value="Human">
|
|
55 <param name="version" type="select" label="Select genome vesion">
|
|
56 <option value="hg19" selected="true">hg19</option>
|
|
57 <option value="hg18">hg18</option>
|
|
58 </param>
|
|
59 </when>
|
|
60 <when value="Mouse">
|
|
61 <param name="version" type="select" label="Select genome vesion">
|
|
62 <option value="mm8" >mm8</option>
|
|
63 <option value="mm9" selected="true">mm9</option>
|
|
64 <option value="mm10" >mm10</option>
|
|
65 </param>
|
|
66 </when>
|
|
67 <when value="Zebrafish">
|
|
68 <param name="version" type="select" label="Select genome vesion">
|
|
69 <option value="zv9" selected="true">zv9</option>
|
|
70 </param>
|
|
71 </when>
|
|
72 <when value="XTropicalis">
|
|
73 <param name="version" type="select" label="Select genome vesion">
|
|
74 <option value="xenTro2" >xenTro2</option>
|
|
75 <option value="xenTro3" selected="true">xenTro3</option>
|
|
76 </param>
|
|
77 </when>
|
|
78 <when value="Bacteria/MycoTube">
|
|
79 <param name="version" type="select" label="Select genome vesion">
|
|
80 <option value="H37Rv" selected="true">H37Rv</option>
|
|
81 </param>
|
|
82 </when>
|
|
83 </conditional>
|
|
84
|
|
85 <conditional name="use_reg">
|
|
86 <param name="use_reg_selector" type="select" label="Use transcriptomic data (up- and down- regulated genes)">
|
|
87 <option value="no" selected="true">No</option>
|
|
88 <option value="yes">Yes</option>
|
|
89 </param>
|
|
90 <when value="yes">
|
|
91 <param name="regfile" type="data" label="File with information about gene regulation" value="Regulation data" format="txt"/>
|
|
92 </when>
|
|
93 </conditional>
|
|
94
|
|
95 <param name="if_PDF" type="boolean" label="Do you want to have a PDF image (default PNG)?" truevalue="1" falsevalue="0" checked="False"/>
|
|
96 </inputs>
|
|
97 <outputs>
|
|
98 <data name="outputPNG" format="png" label="Peaks Stats (png)">
|
|
99 <filter>(if_PDF == 0)</filter>
|
|
100 </data>
|
|
101 <data name="outputPDF" format="pdf" label="Peaks Stats (pdf)">
|
|
102 <filter>(if_PDF == True)</filter>
|
|
103 </data>
|
|
104
|
|
105 <data name="stats" format="tabular" label="Annotated Peaks (ChIP)"/>
|
|
106 <data name="log" format="log" label=".LOG for Annotated Peaks"/>
|
|
107 <data name="statsControl" format="tabular" label="Annotated Peaks (Control)">
|
|
108 <filter>(use_control['use_control_selector'] == 'yes')</filter>
|
|
109 </data>
|
|
110 </outputs>
|
|
111 <tests>
|
|
112 <test>
|
|
113 <param name="inputfile" value="peaks_test.bed"/>
|
|
114 <param name="minScore" value="0.0"/>
|
|
115 <param name="use_control_selector" value="yes"/>
|
|
116 <param name="controlfile" value="peaks_control.bed"/>
|
|
117 <param name="left" value="-2000"/>
|
|
118 <param name="right" value="2000"/>
|
|
119 <param name="EnhLeft" value="-30000"/>
|
|
120 <param name="DownGene" value="5000"/>
|
|
121 <param name="input_organism_selector" value="Mouse"/>
|
|
122 <param name="version" value="mm9"/>
|
|
123 <param name="use_reg_selector" value="yes"/>
|
|
124 <param name="regfile" value="Probesets_FC1.5_10022011.txt"/>
|
|
125 <param name="if_PDF" value="1"/>
|
|
126 <output name="outputPDF" file="test_annotatePeaks_1.dat" ftype="pdf"/>
|
|
127 <output name="stats" file="test_annotatePeaks_2.dat" ftype="tabular"/>
|
|
128 <output name="log" file="test_annotatePeaks_3.dat" ftype="log"/>
|
|
129 <output name="statsControl" file="test_annotatePeaks_4.dat" ftype="tabular"/>
|
|
130 </test>
|
|
131 </tests>
|
|
132 <help>
|
|
133 **What it does**
|
|
134
|
|
135 This tool annotates peaks with genomic feature (promoter, enhancer, exon, intron, etc.) and creates a .png file with distribution
|
|
136
|
|
137 </help>
|
|
138 <citations>
|
|
139 <citation type="bibtex">@article{Boeva01102012,
|
|
140 author = {Boeva, Valentina and Lermine, Alban and Barette, Camille and Guillouf, Christel and Barillot, Emmanuel},
|
|
141 title = {Nebula—a web-server for advanced ChIP-seq data analysis},
|
|
142 volume = {28},
|
|
143 number = {19},
|
|
144 pages = {2517-2519},
|
|
145 year = {2012},
|
|
146 doi = {10.1093/bioinformatics/bts463},
|
|
147 URL = {http://bioinformatics.oxfordjournals.org/content/28/19/2517.abstract},
|
|
148 eprint = {http://bioinformatics.oxfordjournals.org/content/28/19/2517.full.pdf+html},
|
|
149 journal = {Bioinformatics}
|
|
150 }</citation>
|
|
151 </citations>
|
|
152 </tool>
|