comparison dexseq_helper.py @ 1:f1c406f9554c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dexseq commit 93f63600a8d492e6c9006c1426fbae84de5ca232
author iuc
date Sun, 29 Jan 2017 06:59:35 -0500
parents 4ca0e679f21e
children 62adf13b86ea
comparison
equal deleted inserted replaced
0:4ca0e679f21e 1:f1c406f9554c
1
2 from galaxy.tools.parameters import DataToolParameter
3
4 def validate_input( trans, error_map, param_values, page_param_map ): 1 def validate_input( trans, error_map, param_values, page_param_map ):
5 """ 2 """
6 Validates the user input, before execution. 3 Validates the user input, before execution.
7 """ 4 """
8 factors = param_values['rep_factorName'] 5 factors = param_values['rep_factorName']
17 factor_duplication = True 14 factor_duplication = True
18 break 15 break
19 factor_name_list.append( fn ) 16 factor_name_list.append( fn )
20 17
21 level_name_list = list() 18 level_name_list = list()
22 factor_index_list = list()
23 19
24 for level in ['factorLevel1', 'factorLevel2']: 20 for level in ['factorLevel1', 'factorLevel2']:
25 # level names under one factor should be unique 21 # level names under one factor should be unique
26 fl = factor[level] 22 fl = factor[level]
27 if fl in level_name_list: 23 if fl in level_name_list:
36 32
37 if factor_duplication: 33 if factor_duplication:
38 error_map['rep_factorName'] = [ dict() for t in factors ] 34 error_map['rep_factorName'] = [ dict() for t in factors ]
39 for i in range( len( factors ) ): 35 for i in range( len( factors ) ):
40 error_map['rep_factorName'][i]['factorName'] = 'Factor names need to be unique.' 36 error_map['rep_factorName'][i]['factorName'] = 'Factor names need to be unique.'
41