Mercurial > repos > iuc > data_manager_vsnp_genbank
changeset 1:98babcb65125 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_vsnp_genbank commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author | iuc |
---|---|
date | Sun, 22 Nov 2020 12:55:34 +0000 |
parents | efed56c325da |
children | |
files | data_manager/vsnp_genbank_fetcher.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/vsnp_genbank_fetcher.py Sat May 09 17:27:45 2020 -0400 +++ b/data_manager/vsnp_genbank_fetcher.py Sun Nov 22 12:55:34 2020 +0000 @@ -35,7 +35,7 @@ def download(dbkey, name, url, out_file): with open(out_file) as fh: - params = json.loads(fh.read()) + params = json.load(fh) workdir = params['output_data'][0]['extra_files_path'] os.makedirs(workdir) @@ -51,7 +51,7 @@ data_manager_json["data_tables"]["vsnp_genbank"] = data_manager_entry with open(out_file, 'w') as fh: - fh.write(json.dumps(data_manager_json, sort_keys=True)) + json.dump(data_manager_json, fh, sort_keys=True) parser = argparse.ArgumentParser()