Mercurial > repos > earlhaminst > gafa
comparison gafa_datatypes.py @ 6:c15476d4271c draft
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/GAFA/ commit af1fd308dde99cf40a9422c53dc680932be3765d
author | earlhaminst |
---|---|
date | Tue, 20 Mar 2018 11:06:51 -0400 |
parents | af9f72ddf7f9 |
children |
comparison
equal
deleted
inserted
replaced
5:c388666f58e0 | 6:c15476d4271c |
---|---|
38 found_table_names = frozenset(_[0] for _ in results) | 38 found_table_names = frozenset(_[0] for _ in results) |
39 return gafa_table_names <= found_table_names | 39 return gafa_table_names <= found_table_names |
40 return False | 40 return False |
41 | 41 |
42 | 42 |
43 # Since Binary.register_sniffable_binary_format() ignores the sniff order declared in datatypes_conf.xml and put TS datatypes at the end, instead of simply doing: | 43 # Since in Galaxy < 18.01 Binary.register_sniffable_binary_format() ignores the |
44 # sniff order declared in datatypes_conf.xml and put TS datatypes at the end, | |
45 # instead of simply doing: | |
44 # Binary.register_sniffable_binary_format("sqlite", "sqlite", SQlite) | 46 # Binary.register_sniffable_binary_format("sqlite", "sqlite", SQlite) |
45 # we need to register specialized SQLite datatypes before SQlite | 47 # we need to register specialized SQLite datatypes before SQlite |
46 for i, format_dict in enumerate(Binary.sniffable_binary_formats): | 48 try: |
47 if format_dict['class'] == SQlite: | 49 for i, format_dict in enumerate(Binary.sniffable_binary_formats): |
48 break | 50 if format_dict['class'] == SQlite: |
49 else: | 51 break |
50 i += 1 | 52 else: |
51 Binary.sniffable_binary_formats.insert(i, {'type': 'gafa.sqlite', 'ext': 'gafa.sqlite', 'class': GAFASQLite}) | 53 i += 1 |
54 Binary.sniffable_binary_formats.insert(i, {'type': 'gafa.sqlite', 'ext': 'gafa.sqlite', 'class': GAFASQLite}) | |
55 except AttributeError: | |
56 pass |