Mercurial > repos > iuc > data_manager_dada2
changeset 4:38ccd4589990 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_dada2 commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author | iuc |
---|---|
date | Sun, 22 Nov 2020 12:47:30 +0000 |
parents | c29275496061 |
children | 48a42ca61006 |
files | data_manager/data_manager.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/data_manager.py Tue Jul 14 07:37:09 2020 -0400 +++ b/data_manager/data_manager.py Sun Nov 22 12:47:30 2020 +0000 @@ -100,8 +100,8 @@ def remote_dataset(dataset, outjson): - with open(outjson) as jf: - params = json.loads(jf.read()) + with open(outjson) as fh: + params = json.load(fh) workdir = params['output_data'][0]['extra_files_path'] os.mkdir(workdir) @@ -123,8 +123,8 @@ data_manager_entry['path'] = dataset + ".species" data_manager_json["data_tables"]["dada2_species"] = data_manager_entry - with open(outjson, 'w') as jf: - jf.write(json.dumps(data_manager_json, sort_keys=True)) + with open(outjson, 'w') as fh: + json.dump(data_manager_json, fh, sort_keys=True) if __name__ == '__main__':