Author: ghuck
Date: 2009-08-10 10:42:04 -0700 (Mon, 10 Aug 2009)
New Revision: 17758

Added:
   csplugins/trunk/soc/ghuck/utilities/benchmarks/
   csplugins/trunk/soc/ghuck/utilities/benchmarks/create_benchmark_commands.sh
Modified:
   csplugins/trunk/soc/ghuck/plugin/plugin.props
   csplugins/trunk/soc/ghuck/plugin/src/ForceDirected.java
Log:
Added script to generate commands for a batchtool automated benchmark.

Changed name of plugin (getName() function) so that the name can be recognized 
by batchtool plugin.




Modified: csplugins/trunk/soc/ghuck/plugin/plugin.props
===================================================================
--- csplugins/trunk/soc/ghuck/plugin/plugin.props       2009-08-10 15:54:32 UTC 
(rev 17757)
+++ csplugins/trunk/soc/ghuck/plugin/plugin.props       2009-08-10 17:42:04 UTC 
(rev 17758)
@@ -10,7 +10,7 @@
 
 # Description used to give users information about the plugin such as what it 
does.
 # Html tags are encouraged for formatting purposes.
-pluginDescription=This plugin computes a graph force driven layout.<br>It uses 
the GPU to accelerate the layout process (you must have a CUDA compatible 
graphic card, with CUDA and CUDPP installed.<p>
+pluginDescription=This plugin computes a graph force driven layout.<br>It uses 
the GPU to accelerate the layout process (you must have a CUDA compatible 
graphic card, with installed).<p>
 
 # Plugin version number, this must be two numbers separated by a decimal.  Ex. 
0.2, 14.03
 pluginVersion=0.02

Modified: csplugins/trunk/soc/ghuck/plugin/src/ForceDirected.java
===================================================================
--- csplugins/trunk/soc/ghuck/plugin/src/ForceDirected.java     2009-08-10 
15:54:32 UTC (rev 17757)
+++ csplugins/trunk/soc/ghuck/plugin/src/ForceDirected.java     2009-08-10 
17:42:04 UTC (rev 17758)
@@ -131,7 +131,7 @@
      * for this layout.
      */
     public  String getName() {
-       return "Force Directed GPU Layout";
+       return "gpu-assisted-layout";
     }
     
     /**
@@ -139,7 +139,7 @@
      * of the layout
      */
     public  String toString(){
-       return "Force Directed Layout";
+       return "Gpu Assisted Layout";
     }
     
     /**
@@ -414,7 +414,7 @@
                upRatio = actualRatio;
        }
 
-       upRatio = 2 * upRatio / 3;
+       upRatio = 5 * upRatio / 9;
 
        // Update Node position
        part.resetNodes(); // reset the nodes so we get the new average location

Added: 
csplugins/trunk/soc/ghuck/utilities/benchmarks/create_benchmark_commands.sh
===================================================================
--- csplugins/trunk/soc/ghuck/utilities/benchmarks/create_benchmark_commands.sh 
                        (rev 0)
+++ csplugins/trunk/soc/ghuck/utilities/benchmarks/create_benchmark_commands.sh 
2009-08-10 17:42:04 UTC (rev 17758)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+SAMPLE_DIR="/home/gerardo/samples"
+OUTPUT_FOLDER="/home/gerardo/output_images"
+
+#mkdir $OUTPUT_FOLDER
+cd $SAMPLE_DIR
+
+for file in *.gml 
+do
+    echo import network ${SAMPLE_DIR}/${file}
+    echo layout gpu-assisted-layout
+    echo export network as ps to ${OUTPUT_FOLDER}/${file%%.*}.gpu.ps
+    echo layout force-directed
+    echo export network as ps to ${OUTPUT_FOLDER}/${file%%.*}.fd.ps
+    echo destroy ${file}
+done
+
+echo exit
\ No newline at end of file


Property changes on: 
csplugins/trunk/soc/ghuck/utilities/benchmarks/create_benchmark_commands.sh
___________________________________________________________________
Name: svn:executable
   + *


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to