comparison dexseq_helper.py @ 7:469c0d7489bd 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:23 -0500
parents 28a2181df3b9
children 3762d6644ec4
comparison
equal deleted inserted replaced
6:e8ca8941952a 7:469c0d7489bd
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