7
|
1 <tool id="dichotomize_sample_clusters" name="Dichotomize Previous Sample Cluster Result" force_history_refresh="True">
|
|
2 <command interpreter="python">dichotomize.sample.clusters.py
|
|
3 -d $dataset
|
|
4 #if str($k_range) != "-1":
|
|
5 -k ${k_range}
|
|
6 #end if
|
|
7 -o ${output_fname}
|
|
8
|
|
9 </command>
|
|
10 <inputs>
|
|
11 <param format="rdata" name="dataset" type="data" label="Sample Clustering Classification" help="Cluster result file from CCPLUS, HAC, or PAM"/>
|
|
12 <param name="k_range" type="text" label="Range of K to Dichotomize" value="-1" help="Specify the number of clusters to use (-1 to use default; see help below)"/>
|
|
13 </inputs>
|
|
14 <outputs>
|
|
15 <data format="tabular" name="output_fname" label="Dichotomized Sample Clusters (phenotype)"/>
|
|
16 </outputs>
|
|
17 <help>
|
|
18 - **Sample Clustering Classification Result** - Specify the cluster result to analayze (MUST BE IN rdata format), and must contain the same objects that are produced by the 'Partition Clustering,' 'Hierarchical Clustering (HAC),' or 'Consensus Clustering' tools.
|
|
19
|
|
20 - **Range of K to Dichotomize** Specify the maximum number of clusters to use; use -1 to indicate to use the default cluster size (i.e. if K-means and K was 5, 5 will be used)
|
|
21 * **To specify a range of K's to explore** users can use characters like commas (,), hyphens (-) and colons (:) to specify ranges.
|
|
22 * **Examples:**
|
|
23 * 2,4,6 - would generate a dictotomy for K's equal to 2, 4 and 6
|
|
24 * 2,4:6 - would generate a dictotomy for K's equal to 2, 4, 5 and 6
|
|
25 * 2,4-6 - would generate a dictotomy for K's equal to 2, 4, 5 and 6
|
|
26 * 2, 5:7, 9, 11-14 - would generate a dictotomy for K's equal to 2, 5, 6, 7, 9, 11, 12, 13 and 14.
|
|
27
|
|
28 - **NOTE,** however, the following limitations:
|
|
29 * IF cluster result is a **Partition** clustering (K-Means or PAM) - users **CAN NOT** specify alternate choices of K.
|
|
30 * IF cluster result is a result from the **Select K from Consensus Clustering** or **Extract Clustering from Consensus Clustering** tools - users **CAN NOT** specify alternate choices of K.
|
|
31 * IF cluster results is a "raw" result from Consensus Clustering, only the range of K's that Consensus Clustering considered can be used as alternate choices of K. Alternate choices of K outside of that range will be ignored.
|
|
32 * IF cluster result is a **Hierarchical** clustering - alternate choices of K that are greater than the total number of samples will be ignored
|
|
33
|
|
34 </help>
|
|
35 </tool>
|