|
0
|
1 <tool id="annotatePeaks" name="AnnotatePeaks" version="1.0">
|
|
|
2 <description>Genomic annotation of Chip-Seq peaks</description>
|
|
|
3 <command interpreter="bash">
|
|
|
4 #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
|
|
|
5 </command>
|
|
|
6 <inputs>
|
|
|
7
|
|
|
8 <param name="inputfile" type="data" label="ChIP peaks" value="ChIP peaks File" format="bed"/>
|
|
|
9 <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"/>
|
|
|
10
|
|
|
11 <conditional name="use_control">
|
|
|
12 <param name="use_control_selector" type="select" label="Use control data">
|
|
|
13 <option value="no" selected="true">No</option>
|
|
|
14 <option value="yes">Yes</option>
|
|
|
15 </param>
|
|
|
16 <when value="yes">
|
|
|
17 <param name="controlfile" type="data" label="Control peaks" value="Control peaks File" format="bed"/>
|
|
|
18 </when>
|
|
|
19 </conditional>
|
|
|
20
|
|
|
21 <param name="left" type="integer" label="Define Promoter is a region up to X bp upstream gene TSS" value="-2000"/>
|
|
|
22 <param name="right" type="integer" label="Define Immediate Downstream is a region up to X bp downstream gene TSS" value="2000"/>
|
|
|
23 <param name="EnhLeft" type="integer" label="Define Enhancer is a region up to X bp upstream gene TSS" value="-30000"/>
|
|
|
24 <param name="DownGene" type="integer" label="Define Gene Downstream is a region up to X bp downstream transcription end" value="5000"/>
|
|
|
25
|
|
|
26
|
|
|
27 <conditional name="input_organism">
|
|
|
28 <param name="input_organism_selector" type="select" label="Select organism">
|
|
|
29 <option value="Human" selected="true">Homo sapiens</option>
|
|
|
30 <option value="Mouse">Mus musculus</option>
|
|
|
31 <option value="Zebrafish">Zebrafish (Danio rerio)</option>
|
|
|
32 <option value="XTropicalis">X.Tropicalis</option>
|
|
|
33 <option value="Bacteria/MycoTube">M. tuberculosis</option>
|
|
|
34 </param>
|
|
|
35 <when value="Human">
|
|
|
36 <param name="version" type="select" label="Select genome vesion">
|
|
|
37 <option value="hg19" selected="true">hg19</option>
|
|
|
38 <option value="hg18">hg18</option>
|
|
|
39 </param>
|
|
|
40 </when>
|
|
|
41 <when value="Mouse">
|
|
|
42 <param name="version" type="select" label="Select genome vesion">
|
|
|
43 <option value="mm8" >mm8</option>
|
|
|
44 <option value="mm9" selected="true">mm9</option>
|
|
|
45 <option value="mm10" >mm10</option>
|
|
|
46 </param>
|
|
|
47 </when>
|
|
|
48 <when value="Zebrafish">
|
|
|
49 <param name="version" type="select" label="Select genome vesion">
|
|
|
50 <option value="zv9" selected="true">zv9</option>
|
|
|
51 </param>
|
|
|
52 </when>
|
|
|
53 <when value="XTropicalis">
|
|
|
54 <param name="version" type="select" label="Select genome vesion">
|
|
|
55 <option value="xenTro2" >xenTro2</option>
|
|
|
56 <option value="xenTro3" selected="true">xenTro3</option>
|
|
|
57 </param>
|
|
|
58 </when>
|
|
|
59 <when value="Bacteria/MycoTube">
|
|
|
60 <param name="version" type="select" label="Select genome vesion">
|
|
|
61 <option value="H37Rv" selected="true">H37Rv</option>
|
|
|
62 </param>
|
|
|
63 </when>
|
|
|
64 </conditional>
|
|
|
65
|
|
|
66 <conditional name="use_reg">
|
|
|
67 <param name="use_reg_selector" type="select" label="Use transcriptomic data (up- and down- regulated genes)">
|
|
|
68 <option value="no" selected="true">No</option>
|
|
|
69 <option value="yes">Yes</option>
|
|
|
70 </param>
|
|
|
71 <when value="yes">
|
|
|
72 <param name="regfile" type="data" label="File with information about gene regulation" value="Regulation data" format="txt"/>
|
|
|
73 </when>
|
|
|
74 </conditional>
|
|
|
75
|
|
|
76 <param name="if_PDF" type="boolean" label="Do you want to have a PDF image (default PNG)?" truevalue="1" falsevalue="0" checked="False"/>
|
|
|
77 </inputs>
|
|
|
78 <outputs>
|
|
|
79 <data name="outputPNG" format="png" label="Peaks Stats (png)">
|
|
|
80 <filter>(if_PDF == 0)</filter>
|
|
|
81 </data>
|
|
|
82 <data name="outputPDF" format="pdf" label="Peaks Stats (pdf)">
|
|
|
83 <filter>(if_PDF == True)</filter>
|
|
|
84 </data>
|
|
|
85
|
|
|
86 <data name="stats" format="tabular" label="Annotated Peaks (ChIP)"/>
|
|
|
87 <data name="log" format="log" label=".LOG for Annotated Peaks"/>
|
|
|
88 <data name="statsControl" format="tabular" label="Annotated Peaks (Control)">
|
|
|
89 <filter>(use_control['use_control_selector'] == 'yes')</filter>
|
|
|
90 </data>
|
|
|
91 </outputs>
|
|
|
92 <help>
|
|
|
93 **What it does**
|
|
|
94
|
|
|
95 This tool annotates peaks with genomic feature (promoter, enhancer, exon, intron, etc.) and creates a .png file with distribution
|
|
|
96
|
|
|
97 </help>
|
|
|
98 </tool>
|