diff dexseq_helper.py @ 7:62adf13b86ea draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dexseq commit 06f2c57b523aab7c997d82e1345fd23f178de598"
author iuc
date Fri, 19 Mar 2021 09:45:03 +0000
parents f1c406f9554c
children
line wrap: on
line diff
--- a/dexseq_helper.py	Tue Feb 26 10:50:15 2019 -0500
+++ b/dexseq_helper.py	Fri Mar 19 09:45:03 2021 +0000
@@ -1,4 +1,4 @@
-def validate_input( trans, error_map, param_values, page_param_map ):
+def validate_input(trans, error_map, param_values, page_param_map):
     """
         Validates the user input, before execution.
     """
@@ -13,7 +13,7 @@
         if fn in factor_name_list:
             factor_duplication = True
             break
-        factor_name_list.append( fn )
+        factor_name_list.append(fn)
 
         level_name_list = list()
 
@@ -22,15 +22,15 @@
             fl = factor[level]
             if fl in level_name_list:
                 level_duplication = True
-            level_name_list.append( fl )
+            level_name_list.append(fl)
 
         if level_duplication:
-            error_map['rep_factorName'] = [ dict() for t in factors ]
-            for i in range( len( factors ) ):
-                error_map['rep_factorName'][i]['FactorLevel1'] = [ {'factorLevel': 'Factor levels for each factor need to be unique'} for t in [factor['factorLevel1'], factor['factorLevel2']] ]
+            error_map['rep_factorName'] = [dict() for t in factors]
+            for i in range(len(factors)):
+                error_map['rep_factorName'][i]['FactorLevel1'] = [{'factorLevel': 'Factor levels for each factor need to be unique'} for t in [factor['factorLevel1'], factor['factorLevel2']]]
             break
 
     if factor_duplication:
-        error_map['rep_factorName'] = [ dict() for t in factors ]
-        for i in range( len( factors ) ):
+        error_map['rep_factorName'] = [dict() for t in factors]
+        for i in range(len(factors)):
             error_map['rep_factorName'][i]['factorName'] = 'Factor names need to be unique.'