Mercurial > repos > iuc > data_manager_bwameth_index_builder
diff data_manager/bwameth_index_builder.py @ 5:5ab25caa7b7d draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/data_managers/data_manager_bwameth_index_builder commit 2c7b238779034cd7b6f459aa972db636af970525"
author | iuc |
---|---|
date | Mon, 03 Feb 2020 17:19:38 -0500 |
parents | e7ca32457e36 |
children | fca923910aaa |
line wrap: on
line diff
--- a/data_manager/bwameth_index_builder.py Tue Oct 01 17:53:16 2019 -0400 +++ b/data_manager/bwameth_index_builder.py Mon Feb 03 17:19:38 2020 -0500 @@ -22,7 +22,7 @@ proc = subprocess.Popen(args=cmd, shell=False, cwd=target_directory) return_code = proc.wait() if return_code: - print >> sys.stderr, "Error building index." + print("Error building index.", file=sys.stderr) sys.exit( return_code ) data_table_entry = dict(value=args.dbkey, dbkey=args.dbkey, name=args.name, path=sym_linked_fasta_filename) _add_data_table_entry(data_manager_dict, data_table_name, data_table_entry) @@ -57,7 +57,7 @@ build_bwameth_index(data_manager_dict, params, args) # save info to json file - open(filename, 'wb').write(dumps(data_manager_dict)) + open(filename, 'w').write(dumps(data_manager_dict, sort_keys=True)) if __name__ == "__main__":