1 | # for GTOOL linkage ped to marchini snptest format |
---|
2 | from galaxy import datatypes |
---|
3 | |
---|
4 | |
---|
5 | def exec_before_job(app, inp_data, out_data, param_dict, tool=None): |
---|
6 | """Sets the name of the data""" |
---|
7 | job_name = param_dict.get( 'o', 'Marchini' ) |
---|
8 | log = ['txt','%s_rgGTOOL_report.log' % job_name,'txt'] |
---|
9 | lookup={} |
---|
10 | lookup['logf'] = log |
---|
11 | for name in lookup.keys(): |
---|
12 | data = out_data[name] |
---|
13 | data_type,newname,ext = lookup[name] |
---|
14 | data = app.datatypes_registry.change_datatype(data, data_type) |
---|
15 | data.name = newname |
---|
16 | out_data[name] = data |
---|
17 | |
---|
18 | |
---|
19 | |
---|