diff srma_wrapper_code.py @ 0:9d60d2fce247 default tip

Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
author nilshomer
date Tue, 07 Jun 2011 17:43:07 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/srma_wrapper_code.py	Tue Jun 07 17:43:07 2011 -0400
@@ -0,0 +1,11 @@
+import os
+
+def exec_before_job(app, inp_data, out_data, param_dict, tool):
+    try:
+        refFile = param_dict[ 'refGenomeSource' ][ 'index' ].value
+    except:
+        try:
+            refFile = param_dict[ 'refGenomeSource' ][ 'ownFile' ].dbkey
+        except:
+            refFile = '?'
+    dbkey = os.path.split( refFile )[1].split( '.' )[0]