|
71
|
1 <!--MakeTSSdist - 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="makeTSSdist" name="MakeTSSdist" version="1.0">
|
|
|
17 <description>Get peak distribution around TSS</description>
|
|
|
18 <requirements>
|
|
|
19 <requirement type="package" version="2.11.1">fontconfig</requirement>
|
|
|
20 <requirement type="package" version="3.16.0">hmisc</requirement>
|
|
|
21 </requirements>
|
|
|
22 <command interpreter="bash">
|
|
|
23
|
|
|
24 #if str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "no" #makeTSSdist_wrapper.sh -f $inputfile -l $left -o $outputPNG -r $right -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "no" #makeTSSdist_wrapper.sh -f $inputfile -l $left -o $outputPDF -r $right -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "yes" # makeTSSdist_wrapper.sh -f $inputfile -c $controlfile -o $outputPNG -l $left -r $right -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "no" and $use_control.use_control_selector == "yes" # makeTSSdist_wrapper.sh -f $inputfile -c $controlfile -o $outputPDF -l $left -r $right -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "no" # makeTSSdist_wrapper.sh -f $inputfile -e $regfile -l $left -o $outputPNG -r $right -u $stats -v $input_organism.version -p 0 #elif str( $if_PDF ) == '1' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "no" # makeTSSdist_wrapper.sh -f $inputfile -e $regfile -l $left -o $outputPDF -r $right -u $stats -v $input_organism.version -p 1 #elif str( $if_PDF ) == '0' and $use_reg.use_reg_selector == "yes" and $use_control.use_control_selector == "yes" #makeTSSdist_wrapper.sh -f $inputfile -c $controlfile -l $left -o $outputPNG -r $right -u $stats -v $input_organism.version -e $regfile -p 0 #else # makeTSSdist_wrapper.sh -f $inputfile -c $controlfile -l $left -o $outputPDF -r $right -u $stats -v $input_organism.version -e $regfile -p 1 #end if
|
|
|
25 </command>
|
|
|
26 <inputs>
|
|
|
27 <param name="inputfile" type="data" label="ChIP peaks" value="ChIP peaks File" format="bed"/>
|
|
|
28 <conditional name="use_control">
|
|
|
29 <param name="use_control_selector" type="select" label="Use control data">
|
|
|
30 <option value="no" selected="true">No</option>
|
|
|
31 <option value="yes">Yes</option>
|
|
|
32 </param>
|
|
|
33 <when value="yes">
|
|
|
34 <param name="controlfile" type="data" label="Control peaks" value="Control peaks File" format="bed"/>
|
|
|
35 </when>
|
|
|
36 </conditional>
|
|
|
37 <param name="left" type="integer" label="Step (bp)" value="1000"/>
|
|
|
38 <param name="right" type="integer" label="length of the region +-TSS to consider (bp)" value="50000"/>
|
|
|
39 <conditional name="input_organism">
|
|
|
40 <param name="input_organism_selector" type="select" label="Select organism">
|
|
|
41 <option value="Human" selected="true">Homo sapiens</option>
|
|
|
42 <option value="Mouse">Mus musculus</option>
|
|
|
43 <option value="Zebrafish">Zebrafish (Danio rerio)</option>
|
|
|
44 <option value="XTropicalis">X.Tropicalis</option>
|
|
|
45 <option value="Bacteria/MycoTube">M. tuberculosis</option>
|
|
|
46 </param>
|
|
|
47 <when value="Human">
|
|
|
48 <param name="version" type="select" label="Select genome vesion">
|
|
|
49 <option value="hg19" selected="true">hg19</option>
|
|
|
50 <option value="hg18">hg18</option>
|
|
|
51 </param>
|
|
|
52 </when>
|
|
|
53 <when value="Mouse">
|
|
|
54 <param name="version" type="select" label="Select genome vesion">
|
|
|
55 <option value="mm8" >mm8</option>
|
|
|
56 <option value="mm9" selected="true">mm9</option>
|
|
|
57 <option value="mm10" >mm10</option>
|
|
|
58 </param>
|
|
|
59 </when>
|
|
|
60 <when value="Zebrafish">
|
|
|
61 <param name="version" type="select" label="Select genome vesion">
|
|
|
62 <option value="zv9" selected="true">zv9</option>
|
|
|
63 </param>
|
|
|
64 </when>
|
|
|
65 <when value="XTropicalis">
|
|
|
66 <param name="version" type="select" label="Select genome vesion">
|
|
|
67 <option value="xenTro2" >xenTro2</option>
|
|
|
68 <option value="xenTro3" selected="true">xenTro3</option>
|
|
|
69 </param>
|
|
|
70 </when>
|
|
|
71 <when value="Bacteria/MycoTube">
|
|
|
72 <param name="version" type="select" label="Select genome vesion">
|
|
|
73 <option value="H37Rv" selected="true">H37Rv</option>
|
|
|
74 </param>
|
|
|
75 </when>
|
|
|
76 </conditional>
|
|
|
77 <conditional name="use_reg">
|
|
|
78 <param name="use_reg_selector" type="select" label="Use transcriptomic data (up- and down- regulated genes)">
|
|
|
79 <option value="no" selected="true">No</option>
|
|
|
80 <option value="yes">Yes</option>
|
|
|
81 </param>
|
|
|
82 <when value="yes">
|
|
|
83 <param name="regfile" type="data" label="File with information about gene regulation" value="Regulation data" format="txt"/>
|
|
|
84 </when>
|
|
|
85 </conditional>
|
|
|
86 <param name="if_PDF" type="boolean" label="Do you want to have a PDF image (default PNG)?" truevalue="1" falsevalue="0" checked="False"/>
|
|
|
87 </inputs>
|
|
|
88 <outputs>
|
|
|
89 <data name="outputPNG" format="png" label="Peak location distribution (png)">
|
|
|
90 <filter>(if_PDF == 0)</filter>
|
|
|
91 </data>
|
|
|
92 <data name="outputPDF" format="pdf" label="Peak location distribution (pdf)">
|
|
|
93 <filter>(if_PDF == True)</filter>
|
|
|
94 </data>
|
|
|
95 <data name="stats" format="tabular" label="Peak location distribution (stats)"/>
|
|
|
96 </outputs>
|
|
|
97 <tests>
|
|
|
98 <test>
|
|
|
99 <param name="inputfile" value="peaks_test.bed"/>
|
|
|
100 <param name="use_control_selector" value="yes"/>
|
|
|
101 <param name="controlfile" value="peaks_control.bed"/>
|
|
|
102 <param name="left" value="1000"/>
|
|
|
103 <param name="right" value="50000"/>
|
|
|
104 <param name="input_organism_selector" value="Mouse"/>
|
|
|
105 <param name="version" value="mm9"/>
|
|
|
106 <param name="use_reg_selector" value="yes"/>
|
|
|
107 <param name="regfile" value="Probesets_FC1.5_10022011.txt"/>
|
|
97
|
108 <param name="if_PDF" value="0"/>
|
|
|
109 <output name="outputPNG" file="test_makeTSSdist_1.dat" ftype="png"/>
|
|
71
|
110 <output name="stats" file="test_makeTSSdist_2.dat" ftype="tabular"/>
|
|
|
111 </test>
|
|
|
112 </tests>
|
|
|
113 <help>
|
|
|
114 **What it does**
|
|
|
115
|
|
|
116 This tool creates a .png file with distribution of peaks around gene TSS
|
|
|
117
|
|
|
118 </help>
|
|
|
119 <citations>
|
|
|
120 <citation type="bibtex">@article{Boeva01102012,
|
|
|
121 author = {Boeva, Valentina and Lermine, Alban and Barette, Camille and Guillouf, Christel and Barillot, Emmanuel},
|
|
|
122 title = {Nebula—a web-server for advanced ChIP-seq data analysis},
|
|
|
123 volume = {28},
|
|
|
124 number = {19},
|
|
|
125 pages = {2517-2519},
|
|
|
126 year = {2012},
|
|
|
127 doi = {10.1093/bioinformatics/bts463},
|
|
|
128 URL = {http://bioinformatics.oxfordjournals.org/content/28/19/2517.abstract},
|
|
|
129 eprint = {http://bioinformatics.oxfordjournals.org/content/28/19/2517.full.pdf+html},
|
|
|
130 journal = {Bioinformatics}
|
|
|
131 }</citation>
|
|
|
132 </citations>
|
|
|
133 </tool>
|