comparison cluster.tools/heatmap.from.cluster.result.xml @ 0:0decf3fd54bc draft

Uploaded
author peter-waltman
date Thu, 28 Feb 2013 01:45:39 -0500
parents
children 563832f48c08
comparison
equal deleted inserted replaced
-1:000000000000 0:0decf3fd54bc
1 <tool id="cluster_heatmap" name="Generate Heatmap for Clustering Result" force_history_refresh="True">
2 <command interpreter="python">heatmap.from.cluster.result.py
3 -d ${dataset1}
4 -s ${cluster_second_direction_cond.cluster_second_direction}
5
6 #if str($cluster_second_direction_cond.cluster_second_direction) == 'prev':
7 -D ${cluster_second_direction_cond.dataset2}
8 #end if
9 -i ${image_format_cond.image_format}
10 -t ${output_treeview_format}
11 -r ${reverse_rows}
12 -k ${plot_kms_cond.plot_kms}
13 #if str($plot_kms_cond.plot_kms) == 'yes':
14 -C ${dataset1}
15 -S ${plot_kms_cond.survial_data}
16 -M ${plot_kms_cond.mode}
17 -T "${plot_kms_cond.title}"
18 -I none
19 #end if
20
21 #if str($image_format_cond.image_format) == 'png':
22 -h $report_html
23 -p ${report_html.files_path}
24 #end if
25 #if str($image_format_cond.image_format) == 'pdf':
26 -h $report_pdf
27 -p ${report_pdf.files_path}
28 #end if
29 #if str($treeview_output) != 'None':
30 -o ${treeview_output}
31 #end if
32
33 </command>
34 <inputs>
35 <param format="rdata" name="dataset1" type="data" label="Clustering Classification" help="Cluster result file from CCPLUS, HAC, or PAM"/>
36 <conditional name="plot_kms_cond">
37 <param name="plot_kms" type='select' label="Plot Kaplan-Meiers Survival Plot as well (primary clustering ONLY)?" help="NOTE: this only works when the Image Format is PNG. For a PDF of the KM plot, you can use the 'Generate Kaplan-Meiers Plot for Cluster Result' tool">
38 <option value="no" selected='true'>No</option>
39 <option value="yes" >Yes</option>
40 </param>
41 <when value='yes'>
42 <param name="survial_data" type="data" format="tabular" label="Clinical Data" help="Specify the clinical data to use for the Kaplan-Meiers Plot (see help)"/>
43 <param name="mode" type="select" display='radio' label="Report Mode" help="Specify the mode to use when performing Log-Rank tests (see help below)">
44 <option value="all" selected='true' >All</option>
45 <option value="one">One</option>
46 <option value="both">Both</option>
47 </param>
48 <param name="title" type="text" label="Title" value="Report"/>
49 </when>
50 </conditional>
51 <conditional name="cluster_second_direction_cond">
52 <param name="cluster_second_direction" type="select" label="Cluster the second dimension? (e.g. rows if this is a sample cluster)" help="Cluster the 2nd dimension of matrix in the cluster result (see help below)">
53 <option value="no" selected="true">No</option>
54 <option value="yes">Yes</option>
55 <option value="prev">Previous Cluster Result</option>
56 </param>
57 <when value="prev">
58 <param format="rdata" name="dataset2" type="data" label="Previous Cluster result #2 (secondary result, e.g. rows)" help="Cluster result file from CCPLUS, HAC, or PAM"/>
59 </when>
60 </conditional>
61 <conditional name="image_format_cond">
62 <param name="image_format" type="select" display='radio' label="Image format">
63 <option value="pdf">PDF</option>
64 <option value="png" selected='true' >PNG (html wrapper)</option>
65 </param>
66 </conditional>
67 <param name="output_treeview_format" type='select' display="radio" label="Output in TreeView format as well?" help="Specify whether or not to produce files for TreeView" >
68 <option value="no">No</option>
69 <option value="yes" selected='true' >Yes</option>
70 </param>
71 <param name="reverse_rows" type='select' display="radio" label="Reverse Row-order (to make consistent w\TreeView Display)?" help="Specify whether or not to reverse Row-order (to make the heatmap consistent with output from TreeView (reversed otherwise)" >
72 <option value="no" selected='true'>No</option>
73 <option value="yes">Yes</option>
74 </param>
75 </inputs>
76 <outputs>
77 <data format="html" name="report_html" label="Heatmap from cluster results (HTML)">
78 <filter>(image_format_cond['image_format']=="png")</filter>
79 </data>
80 <data format="pdf" name="report_pdf" label="Heatmap from cluster results (PDF)">
81 <filter>(image_format_cond['image_format']=="pdf")</filter>
82 </data>
83 <data format="tgz" name="treeview_output" label="Heatmap from cluster results (tgz of TreeView files)">
84 <filter>(output_treeview_format)=="yes"</filter>
85 </data>
86 </outputs>
87 <help>
88 .. class:: infomark
89
90 **Generate Heatmap for Clustering Result** - Tool to generate a heatmap and dendrogram for a clustering result
91
92 **OUTPUT:**
93 * **Heatmap** in either PDF or PNG format
94 * **TreeView Files** gzip tarball file of the relevant files (OPTIONAL)
95
96 ----
97
98 **Parameters**
99
100 - **Clustering Classification** Specify the clustering classification (RData file format - use the 'Convert tab-delimited Cluster Assignments to RData" tool to convert assignments in tab-delimited format).
101
102 - **Plot Kaplan-Meiers Survival Plot as well (primary clustering ONLY)?** Specify whether or not to also plot a Kaplan-Meiers Surivial Plot. **NOTE*, the cluster results must be a **SAMPLE** cluster.
103
104 - **Cluster the second dimension?** Specify whether or not to cluster the 2nd dimension of matrix in the cluster result. Choice of:
105 * No
106 * Yes - Generate a default clustering (HAC with Euclidean distance)
107 * Previous Cluster Result - MUST specify a previous clustering result
108
109 - **IF Cluster the second dimension? is a previous clustering result:**
110 * **Previous Cluster result #2** Specify the clustering classification for the 2nd dimension (RData file format - use the 'Convert tab-delimited Cluster Assignments to RData" tool to convert assignments in tab-delimited format).
111
112 - **IF Plot Kaplan-Meiers Survival Plot is YES:**
113 * **Clinical Data** Clinical data to use for the Kaplan-Meiers Plot (must be formated - See the "Format Raw TCGA sample IDs")
114
115 * **Report Mode** Mode to use when performing Log-Rank tests **(MUST SPECIFY A PROPERLY FORMATTED CLINICAL DATA FILE)** . Choice of:
116
117 * All - All clusters versus each other
118 * One - One cluster versus a meta-cluster composed of the others. Search performed exhaustively.
119 * Both - Perform both all-v-all and and one-v-others test; select the choice of K that gives the best
120
121 * **Title** - Title to use for Kaplan-Meiers Plot
122
123
124 </help>
125 </tool>