def exec_before_job(app, inp_data, out_data, param_dict, tool=None):
 data_name = param_dict.get('name', 'HbVar query')
 data_type = param_dict.get('type', 'txt')
 if (data_type == 'txt'):
  data_type = 'interval'
 (name, data) = next(iter(out_data.items()))
 data = app.datatypes_registry.change_datatype(data, data_type)
 data.name = data_name
 out_data[name] = data

def exec_before_job ( app , inp_data , out_data , param_dict , tool = None ) : data_name = param_dict . get ( 'name' , 'HbVar query' ) data_type = param_dict . get ( 'type' , 'txt' ) if ( data_type == 'txt' ) : data_type = 'interval' ( name , data ) = next ( iter ( out_data . items ( ) ) ) data = app . datatypes_registry . change_datatype ( data , data_type ) data . name = data_name out_data [ name ] = data
sets the name of the data .