# HG changeset patch # User iuc # Date 1681633696 0 # Node ID fa8c605bf385cd5a97e5ec926c58104b0912e947 # Parent acaa6719a478c269a68d53b8635603b821c45016 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_picard_index_builder commit 096286097ed5cdf189a1b68c3fc34d10f4142e54 diff -r acaa6719a478 -r fa8c605bf385 data_manager/picard_index_builder.py --- a/data_manager/picard_index_builder.py Mon Feb 03 22:27:13 2020 +0000 +++ b/data_manager/picard_index_builder.py Sun Apr 16 08:28:16 2023 +0000 @@ -2,11 +2,11 @@ # Dan Blankenberg from __future__ import print_function +import json import optparse import os import subprocess import sys -from json import dumps, loads DEFAULT_DATA_TABLE_NAME = "picard_indexes" @@ -58,7 +58,8 @@ filename = args[0] - params = loads(open(filename).read()) + with open(filename) as fh: + params = json.load(fh) target_directory = params['output_data'][0]['extra_files_path'] os.mkdir(target_directory) data_manager_dict = {} @@ -75,7 +76,8 @@ sequence_name, data_table_name=options.data_table_name or DEFAULT_DATA_TABLE_NAME) # save info to json file - open(filename, 'w').write(dumps(data_manager_dict, sort_keys=True)) + with open(filename, 'w') as fh: + json.dump(data_manager_dict, fh, sort_keys=True) if __name__ == "__main__": diff -r acaa6719a478 -r fa8c605bf385 data_manager_conf.xml --- a/data_manager_conf.xml Mon Feb 03 22:27:13 2020 +0000 +++ b/data_manager_conf.xml Sun Apr 16 08:28:16 2023 +0000 @@ -1,7 +1,7 @@ - +