Mercurial > repos > devteam > complement
comparison operation_filter.py @ 4:38c8bb402872 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/complement commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
author | devteam |
---|---|
date | Thu, 22 Jun 2017 18:40:33 -0400 |
parents | e0a23ab32d7f |
children | 8b6c6ec55c6e |
comparison
equal
deleted
inserted
replaced
3:e0a23ab32d7f | 4:38c8bb402872 |
---|---|
1 # runs after the job (and after the default post-filter) | 1 # runs after the job (and after the default post-filter) |
2 from galaxy.jobs.handler import JOB_ERROR | |
2 from galaxy.tools.parameters import DataToolParameter | 3 from galaxy.tools.parameters import DataToolParameter |
3 | |
4 from galaxy.jobs.handler import JOB_ERROR | |
5 | 4 |
6 # Older py compatibility | 5 # Older py compatibility |
7 try: | 6 try: |
8 set() | 7 set() |
9 except: | 8 except: |
12 | 11 |
13 def validate_input( trans, error_map, param_values, page_param_map ): | 12 def validate_input( trans, error_map, param_values, page_param_map ): |
14 dbkeys = set() | 13 dbkeys = set() |
15 data_param_names = set() | 14 data_param_names = set() |
16 data_params = 0 | 15 data_params = 0 |
17 for name, param in page_param_map.iteritems(): | 16 for name, param in page_param_map.items(): |
18 if isinstance( param, DataToolParameter ): | 17 if isinstance( param, DataToolParameter ): |
19 # for each dataset parameter | 18 # for each dataset parameter |
20 if param_values.get(name, None) is not None: | 19 if param_values.get(name, None) is not None: |
21 dbkeys.add( param_values[name].dbkey ) | 20 dbkeys.add( param_values[name].dbkey ) |
22 data_params += 1 | 21 data_params += 1 |
51 """Verify the output data after each run""" | 50 """Verify the output data after each run""" |
52 for data in out_data.values(): | 51 for data in out_data.values(): |
53 try: | 52 try: |
54 if stderr and len( stderr ) > 0: | 53 if stderr and len( stderr ) > 0: |
55 raise Exception( stderr ) | 54 raise Exception( stderr ) |
56 | |
57 except Exception: | 55 except Exception: |
58 data.blurb = JOB_ERROR | 56 data.blurb = JOB_ERROR |
59 data.state = JOB_ERROR | 57 data.state = JOB_ERROR |
60 | 58 |
61 | 59 |