1
|
1 <tool id="plotheatmap" name="plotHeatmap" version="1.0">
|
|
2 <description>Plot heatmap</description>
|
5
|
3 <requirements>
|
|
4 <requirement type="package" version="3.0.1">r-gplots</requirement>
|
|
5 </requirements>
|
0
|
6 <stdio>
|
|
7 <exit_code range="1:" />
|
|
8 </stdio>
|
|
9 <command>
|
|
10 <![CDATA[
|
5
|
11 $__tool_directory__/tools/script.R $main.count_matrix $main.stats_matrix $filter.log_fc $filter.log_cpm $filter.pvalue $filter.fdr $heatmap.cluster_row $heatmap.cluster_col $heatmap.hclust_method $plotparm.col_marg $plotparm.row_marg $plotparm.pdf_width $plotparm.pdf_height > $rscript_log 2> $rerror_log
|
0
|
12
|
|
13 ]]>
|
|
14 </command>
|
|
15 <inputs>
|
3
|
16 <section name="main" title="Main parameters" expanded="True">
|
5
|
17 <param name="count_matrix" type="data" format="data" label="Output dataset 'count_matrix' from tool countMatrixForEdger"/>
|
|
18 <param name="stats_matrix" type="data" format="data" label="Output dataset 'output' from tool edgeR"/>
|
3
|
19 </section>
|
5
|
20 <section name="filter" title="Filtering parameters" expanded="True">
|
|
21 <param name="log_fc" type="float" value="0.5" label="A log FC threshold"/>
|
|
22 <param name="log_cpm" type="float" value="0.5" label="A log CPM threshold"/>
|
|
23 <param name="pvalue" type="float" value="0.5" label="A PValue threshold">
|
|
24 <validator type="in_range" min="0" max="1" />
|
|
25 </param>
|
|
26 <param name="fdr" type="float" value="0.5" label="A FDR threshold">
|
|
27 <validator type="in_range" min="0" max="1" />
|
|
28 </param>
|
|
29 </section>
|
3
|
30 <section name="heatmap" title="Heatmap parameters">
|
|
31 <param name="cluster_row" type="select" label="Determines if the row dendrogram should be reordered">
|
|
32 <option value="No" >No </option>
|
|
33 <option value="Yes" selected="true" >Yes </option>
|
|
34 </param>
|
|
35 <param name="cluster_col" type="select" label="Determines if the column dendrogram should be reordered">
|
|
36 <option value="No" selected="true">No </option>
|
|
37 <option value="Yes" >Yes </option>
|
|
38 </param>
|
|
39
|
|
40 <param name="hclust_method" type="select" label="Hierarchical clustering method">
|
|
41 <option value="ward.D" >ward.D </option>
|
|
42 <option value="ward.D2" >ward.D2 </option>
|
|
43 <option value="single" >single </option>
|
|
44 <option value="complete" >complete </option>
|
|
45 <option value="average" selected="true">average </option>
|
|
46 <option value="mcquitty" >mcquitty </option>
|
|
47 <option value="median" >median </option>
|
|
48 <option value="centroid" >centroid </option>
|
|
49 </param>
|
|
50 </section>
|
|
51
|
|
52
|
|
53 <section name="plotparm" title="Plot parameters">
|
5
|
54 <param name="col_marg" type="float" value="7" label="Margins for column names"/>
|
|
55 <param name="row_marg" type="float" value="8" label="Margins for row names"/>
|
|
56 <param name="pdf_width" type="float" value="7" label="Width of the graphics region in inches (pdf width)" />
|
|
57 <param name="pdf_height" type="float" value="7" label="Height of the graphics region in inches (pdf height)" />
|
3
|
58 </section>
|
|
59
|
0
|
60 </inputs>
|
|
61 <outputs>
|
|
62 <data format="pdf" name="haetamappdf" from_work_dir="heatmap.pdf" >
|
|
63 <filter>(outftype == 'pdf')</filter>
|
|
64 </data>
|
|
65 <data name="rscript_log" format="data" />
|
|
66 <data name="rerror_log" format="data" />
|
|
67 </outputs>
|
|
68 <tests>
|
|
69
|
|
70 <test>
|
|
71 <param name="count_matrix" value="count.matrix"/>
|
|
72 <param name="stats_matrix" value="stats.data"/>
|
|
73 <param name="log_fc" value="1"/>
|
|
74 <param name="log_cpm" value="2"/>
|
|
75 <param name="pvalue" value="0.05"/>
|
|
76 <param name="fdr" value="0.1"/>
|
|
77 <output name="haetamappdf" file="heatmap.pdf" ftype="pdf" compare="sim_size" />
|
|
78 <output name="rscript_log" file="rscript.log"/>
|
|
79 <output name="rerror_log" file="rerror.log"/>
|
|
80
|
|
81 </test>
|
|
82
|
|
83 </tests>
|
|
84 <help>
|
|
85 <![CDATA[
|
5
|
86 **What it does**
|
|
87 It takes a list of genes basen on set filtering criteria and draws them on heatmap.
|
|
88 **Example**
|
|
89 The following filtering options:
|
|
90 A log FC threshold = 0.5
|
|
91 A log CPM threshold = 0.5
|
|
92 A PValue threshold = 0.05
|
|
93 A FDR threshold = 0.1
|
|
94 mean that you select genes whose values in output table from edgeR are:
|
|
95 * absolute value of logFC is greater than or equal 0.5
|
|
96 * logCPM is greater than or equal 0.5
|
|
97 * PValue is less than or equal to 0.05
|
|
98 * FDR is less than or equal to 0.1
|
0
|
99 ]]>
|
|
100 </help>
|
|
101 <citations>
|
|
102 </citations>
|
|
103 </tool> |