comparison tools/mira4_0/mira4_validator.py @ 38:cee8f9005e43 draft

planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 206259620376b322fc8ed99a6efdd3712f38764b
author peterjc
date Wed, 11 Jul 2018 12:35:35 -0400
parents 56b421d59805
children bbf14bb9607b
comparison
equal deleted inserted replaced
37:eeeb21870a73 38:cee8f9005e43
1 """Python code to validate parameters in the Galaxy XML definition."""
2
1 # Called from the Galaxy Tool XML file 3 # Called from the Galaxy Tool XML file
2 # import sys 4 # import sys
3 5
4 6
5 def validate_input(trans, error_map, param_values, page_param_map): 7 def validate_input(trans, error_map, param_values, page_param_map):
6 """Validates the min_size/max_size user input, before execution.""" 8 """Validate the min_size/max_size user input, before execution."""
7 err_list = [] 9 err_list = []
8 for read_group in param_values["read_group"]: 10 for read_group in param_values["read_group"]:
9 err = dict() 11 err = dict()
10 segments = read_group["segments"] 12 segments = read_group["segments"]
11 if str(segments["type"]) != "paired": 13 if str(segments["type"]) != "paired":