0
|
1 <!--annotateGenes - 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="annotateGenes" name="Annotation of genes with ChIP-seq peaks (transcription factors)" version="1.0">
|
|
17 <description>Caclulates statistics for promoters, enhancers, introns/exons, etc.</description>
|
|
18 <requirements>
|
|
19 <container type="docker">institutcuriengsintegration/annotategenes:1.0</container>
|
|
20 </requirements>
|
|
21 <command interpreter="bash">
|
|
22 #if str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "no" #annotateGenes_wrapper.sh -f $inputfile -y $log -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" # annotateGenes_wrapper.sh -f $inputfile -y $log -c $controlfile -b $use_control.bootstraps -x $statsControl -o $outputPNG -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" # annotateGenes_wrapper.sh -y $log -f $inputfile -e $regfile -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" # annotateGenes_wrapper.sh -f $inputfile -c $controlfile -b $use_control.bootstraps -x $statsControl -l $left -y $log -o $outputPNG -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" #annotateGenes_wrapper.sh -f $inputfile -y $log -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" # annotateGenes_wrapper.sh -f $inputfile -y $log -c $controlfile -b $use_control.bootstraps -x $statsControl -o $outputPDF -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" # annotateGenes_wrapper.sh -y $log -f $inputfile -e $regfile -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" # annotateGenes_wrapper.sh -f $inputfile -c $controlfile -b $use_control.bootstraps -x $statsControl -l $left -y $log -o $outputPDF -r $right -d $DownGene -h $EnhLeft -u $stats -v $input_organism.version -e $regfile -p 1 #end if
|
|
23 </command>
|
|
24 <inputs>
|
|
25
|
|
26 <param name="inputfile" type="data" label="ChIP peaks" value="ChIP peaks File" format="bed"/>
|
|
27 <conditional name="use_control">
|
|
28 <param name="use_control_selector" type="select" label="Use control data">
|
|
29 <option value="no" selected="true">No</option>
|
|
30 <option value="yes">Yes</option>
|
|
31 </param>
|
|
32 <when value="yes">
|
|
33 <param name="controlfile" type="data" label="Control peaks" value="Control peaks File" format="bed"/>
|
|
34 <param name="bootstraps" type="select" label="Number of bootstrap iterations" help="Using bootstrap resampling from the control will significantly slow down the procedure">
|
|
35 <option value="1" selected="true" >do not use bootstrap resampling</option>
|
|
36 <option value="10" >10</option>
|
|
37 <option value="100" >100</option>
|
|
38 </param>
|
|
39 </when>
|
|
40 </conditional>
|
|
41
|
|
42 <param name="left" type="integer" label="Define Promoter is a region up to X bp upstream gene TSS" value="-2000"/>
|
|
43 <param name="right" type="integer" label="Define Immediate Downstream is a region up to X bp downstream gene TSS" value="2000"/>
|
|
44 <param name="EnhLeft" type="integer" label="Define Enhancer is a region up to X bp upstream gene TSS" value="-30000"/>
|
|
45 <param name="DownGene" type="integer" label="Define Gene Downstream is a region up to X bp downstream transcription end" value="5000"/>
|
|
46
|
|
47 <conditional name="input_organism">
|
|
48 <param name="input_organism_selector" type="select" label="Select organism">
|
|
49 <option value="Human" selected="true">Homo sapiens</option>
|
|
50 <option value="Mouse">Mus musculus</option>
|
|
51 <option value="Rat">Rattus norvegicus</option>
|
|
52 <option value="Cow">Cow</option>
|
|
53 <option value="Zebrafish">Zebrafish (Danio rerio)</option>
|
|
54 <option value="XTropicalis">X.Tropicalis</option>
|
|
55 <option value="Bacteria/MycoTube">M. tuberculosis</option>
|
|
56 <option value="Celegans">C. elegans</option>
|
|
57 <option value="Drosophila">D. melanogaster</option>
|
|
58 </param>
|
|
59 <when value="Human">
|
|
60 <param name="version" type="select" label="Select genome vesion">
|
|
61 <option value="hg38">hg38</option>
|
|
62 <option value="hg19" selected="true">hg19</option>
|
|
63 <option value="hg18">hg18</option>
|
|
64 </param>
|
|
65 </when>
|
|
66 <when value="Mouse">
|
|
67 <param name="version" type="select" label="Select genome vesion">
|
|
68 <option value="mm8" >mm8</option>
|
|
69 <option value="mm9" selected="true">mm9</option>
|
|
70 <option value="mm10" >mm10</option>
|
|
71 </param>
|
|
72 </when>
|
|
73 <when value="Rat">
|
|
74 <param name="version" type="select" label="Select genome vesion">
|
|
75 <option value="rn5">rn5</option>
|
|
76 </param>
|
|
77 </when>
|
|
78 <when value="Cow">
|
|
79 <param name="version" type="select" label="Select genome vesion">
|
|
80 <option value="bosTau7">bosTau7</option>
|
|
81 </param>
|
|
82 </when>
|
|
83 <when value="Zebrafish">
|
|
84 <param name="version" type="select" label="Select genome vesion">
|
|
85 <option value="zv9" selected="true">zv9</option>
|
|
86 </param>
|
|
87 </when>
|
|
88 <when value="XTropicalis">
|
|
89 <param name="version" type="select" label="Select genome vesion">
|
|
90 <option value="xenTro2" >xenTro2</option>
|
|
91 <option value="xenTro3" selected="true">xenTro3</option>
|
|
92 </param>
|
|
93 </when>
|
|
94 <when value="Bacteria/MycoTube">
|
|
95 <param name="version" type="select" label="Select genome vesion">
|
|
96 <option value="H37Rv" selected="true">H37Rv</option>
|
|
97 </param>
|
|
98 </when>
|
|
99 <when value="Celegans">
|
|
100 <param name="version" type="select" label="Select genome vesion">
|
|
101 <option value="ce10" selected="true">ce10</option>
|
|
102 </param>
|
|
103 </when>
|
|
104 <when value="Drosophila">
|
|
105 <param name="version" type="select" label="Select genome vesion">
|
|
106 <option value="dm6" selected="true">dm6</option>
|
|
107 </param>
|
|
108 </when>
|
|
109 </conditional>
|
|
110
|
|
111
|
|
112
|
|
113 <conditional name="use_reg">
|
|
114 <param name="use_reg_selector" type="select" label="Use transcriptomic data (up- and down- regulated genes)">
|
|
115 <option value="no" selected="true">No</option>
|
|
116 <option value="yes">Yes</option>
|
|
117 </param>
|
|
118 <when value="yes">
|
|
119 <param name="regfile" type="data" label="File with information about gene regulation" value="Regulation data" format="txt"/>
|
|
120 </when>
|
|
121 </conditional>
|
|
122
|
|
123 <param name="if_PDF" type="boolean" label="Do you want to have a PDF image (default PNG)?" truevalue="1" falsevalue="0" checked="False"/>
|
|
124
|
|
125 </inputs>
|
|
126 <outputs>
|
|
127 <data name="outputPNG" format="png" label="Gene Stats (png)">
|
|
128 <filter>(if_PDF == 0)</filter>
|
|
129 </data>
|
|
130 <data name="outputPDF" format="pdf" label="Gene Stats (pdf)">
|
|
131 <filter>(if_PDF == True)</filter>
|
|
132 </data>
|
|
133
|
|
134 <data name="stats" format="tabular" label="Annotated Genes (ChIP)"/>
|
|
135 <data name="log" format="tabular" label=".LOG for Annotated Genes"/>
|
|
136 <data name="statsControl" format="tabular" label="Annotated Genes (Control)">
|
|
137 <filter>(use_control['use_control_selector'] == 'yes')</filter>
|
|
138 </data>
|
|
139 </outputs>
|
|
140 <help>
|
|
141 **What it does**
|
|
142
|
|
143 This tool annotates peaks with genomic feature (promoter, enhancer, exon, intron, etc.) and creates a .png file with distribution
|
|
144
|
|
145 </help>
|
|
146 </tool>
|