view 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 source

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]