# HG changeset patch # User iuc # Date 1635755504 0 # Node ID 54cf06b7c3078a7a40428f84a8f06f7bd4f1fe02 # Parent 28d50a439ffe0d3732bacd3eed3ab4e931e993d7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_sam_fasta_index_builder commit 20381ede5940c6bbca00b550e01550f5aad0f2b7" diff -r 28d50a439ffe -r 54cf06b7c307 data_manager/data_manager_sam_fasta_index_builder.py --- a/data_manager/data_manager_sam_fasta_index_builder.py Thu Nov 28 20:31:54 2019 +0000 +++ b/data_manager/data_manager_sam_fasta_index_builder.py Mon Nov 01 08:31:44 2021 +0000 @@ -71,7 +71,8 @@ filename = args[0] - params = json.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 = {} @@ -93,7 +94,8 @@ ) # save info to json file - open(filename, 'w').write(json.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 28d50a439ffe -r 54cf06b7c307 data_manager/data_manager_sam_fasta_index_builder.xml --- a/data_manager/data_manager_sam_fasta_index_builder.xml Thu Nov 28 20:31:54 2019 +0000 +++ b/data_manager/data_manager_sam_fasta_index_builder.xml Mon Nov 01 08:31:44 2021 +0000 @@ -1,7 +1,7 @@ - + builder - samtools + samtools python