annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
1 import os
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
2
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
3 def exec_before_job(app, inp_data, out_data, param_dict, tool):
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
4 try:
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
5 refFile = param_dict[ 'refGenomeSource' ][ 'index' ].value
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
6 except:
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
7 try:
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
8 refFile = param_dict[ 'refGenomeSource' ][ 'ownFile' ].dbkey
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
9 except:
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
10 refFile = '?'
9d60d2fce247 Migrated tool version 0.1.1 from old tool shed archive to new tool shed repository
nilshomer
parents:
diff changeset
11 dbkey = os.path.split( refFile )[1].split( '.' )[0]