diff cluster.tools/partition.xml @ 8:a58527c632b7 draft

Uploaded
author peter-waltman
date Mon, 11 Mar 2013 16:31:29 -0400
parents 0decf3fd54bc
children
line wrap: on
line diff
--- a/cluster.tools/partition.xml	Mon Mar 04 04:11:28 2013 -0500
+++ b/cluster.tools/partition.xml	Mon Mar 11 16:31:29 2013 -0400
@@ -6,8 +6,19 @@
 -a $alg_cond.algorithm
 #if $alg_cond.algorithm == 'pam' # -m ${alg_cond.distance_metric}
 #end if
+
+#if str($numk) != "-1":
 -k ${numk} 
--o ${output}
+#end if
+
+#if str($direction) == "rows":
+-o ${rdata_output_rows}
+#end if
+
+#if str($direction) == "cols":
+-o ${rdata_output_cols}
+#end if
+
 
 </command>
     <inputs>
@@ -40,11 +51,16 @@
 	    </param>
 	  </when>
 	</conditional>
-    	<param name="numk" type="integer" label="Number of Clusters" value="50" help="Specify the number of clusters to use"/>
+    	<param name="numk" type="integer" label="Number of Clusters" value="-1" help="Specify the number of clusters to use (-1 to use default. See help below)."/>
     	
     </inputs>
     <outputs>
-        <data format="rdata" name="output" label="Partition Clustering Data (RData)"/>
+      <data format="rdata" name="rdata_output_rows" label="Partition Clustering Results; Gene Clusters (RData)">
+        <filter>(direction)=="rows"</filter>
+      </data>
+      <data format="rdata" name="rdata_output_cols" label="Partition Clustering Results; Sample Clusters (RData)">
+        <filter>(direction)=="cols"</filter>
+      </data>
     </outputs>
 <help>
 .. class:: infomark
@@ -87,7 +103,9 @@
 	 * Binary
 
 
-- **Number of Clusters** Specify the number of clusters to use
+- **Number of Clusters** Specify the number of clusters to use.  If set to -1, default values will be used, with the default set as follows:
+        * if samples/columns are being clustered, the **default** is 5.
+        * if genes/rows are being clustered, the **default** is set to num_rows/30, e.g. if there are 600 row/genes in the matrix, the default will be 20 clusters.
 
 </help>
 </tool>