0
|
1 <tool id="rdata_2_out" name="RData cluster result to Text output" force_history_refresh="True">
|
|
2 <command interpreter="python">rdata.2.out.py
|
|
3 -d $dataset
|
|
4 -f ${out_format.format}
|
|
5
|
|
6 #if str($out_format.format) == 'cls-only':
|
|
7 -o ${output_cls}
|
|
8 #end if
|
|
9
|
|
10 #if str($out_format.format) == 'newick':
|
|
11 -o ${output_newick}
|
|
12 #end if
|
|
13
|
|
14 #if str($out_format.format) == 'cdt':
|
|
15 #if str($out_format.cdt_sec_dir_data) != "None":
|
|
16 -D ${out_format.cdt_sec_dir_data}
|
|
17 #end if
|
|
18 -o ${output_cdt}
|
|
19 -p ${output_cdt.files_path}
|
|
20 #end if
|
|
21
|
|
22 #if str($out_format.format) == 'tabular':
|
|
23 #if str($out_format.tab_sec_dir_data) != "None":
|
|
24 -D ${out_format.tab_sec_dir_data}
|
|
25 #end if
|
|
26 -o ${output_tab}
|
|
27 -p ${output_tab.files_path}
|
|
28 #end if
|
|
29
|
|
30 </command>
|
|
31 <inputs>
|
|
32 <param name="dataset" type="data" format='rdata' label="Clustering Classification"/>
|
|
33 <conditional name="out_format" >
|
|
34 <param name="format" type="select" label="Select Output Format" >
|
|
35 <option value="cls-only" selected='true'>Cluster Assignments Only</option>
|
|
36 <option value="newick">Newick</option>
|
|
37 <option value="cdt">TreeView (CDT)</option>
|
|
38 <option value="tabular">Tab-delimited (all data, ordered by clusters)</option>
|
|
39 </param>
|
|
40 <when value='cdt'>
|
|
41 <param name="cdt_sec_dir_data" type="data" format='rdata' label="Previous Cluster result #2 (secondary result, e.g. rows)" optional="true"/>
|
|
42 </when>
|
|
43 <when value='tabular'>
|
|
44 <param name="tab_sec_dir_data" type="data" format='rdata' label="Previous Cluster result #2 (secondary result, e.g. rows)" optional="true"/>
|
|
45 </when>
|
|
46 </conditional>
|
|
47 </inputs>
|
|
48 <outputs>
|
|
49 <data format="tabular" name="output_cls" label="Cluster Assignments Only (tab-delimited)" >
|
|
50 <filter>(out_format['format']=="cls-only")</filter>
|
|
51 </data>
|
|
52 <data format="tgz" name="output_cdt" label="CDT File (tgz with CDT and ATR or GTR)" >
|
|
53 <filter>(out_format['format']=="cdt")</filter>
|
|
54 </data>
|
|
55 <data format="tabular" name="output_newick" label="Newick File" >
|
|
56 <filter>(out_format['format']=="newick")</filter>
|
|
57 </data>
|
|
58 <data format="tabular" name="output_tab" label="Tab-delimited File" >
|
|
59 <filter>(out_format['format']=="tabular")</filter>
|
|
60 </data>
|
|
61 </outputs>
|
|
62 <help>
|
|
63 .. class:: infomark
|
|
64
|
|
65 **Convert RData file with cluster assignments and data to text (see below for text file options)** - Tool to convert a cluster assignment in tab-delimited format into an RData file format that can be read by the other tools in the Cluster-Tools Suite, e.g. The Kaplan-Meier Survival Plotting Tools
|
|
66
|
|
67
|
|
68 **OUTPUT:** A new CDT file
|
|
69
|
|
70 ----
|
|
71
|
|
72 **Parameters**
|
|
73
|
|
74 - **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).
|
|
75 - **Select Output Format** Choice of the following
|
|
76 * Cluster Assignments Only (2-column tab-delimited (ID-Cluster pairs)
|
|
77 * Newick - dendrogram in Newick format
|
|
78 * TreeView (CDT) - tarbal (tgz file) with requisite files (e.g. cdt, atr, gtr, jtv files)
|
|
79 * Tab-delimited (all data, ordered by clusters)
|
|
80
|
|
81 - **IF Output Format is either TreeView or Tab-delimited (all data, ordered by clusters)**
|
|
82 * **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).
|
|
83
|
|
84
|
|
85 </help>
|
|
86 </tool>
|