# HG changeset patch # User iuc # Date 1589447284 0 # Node ID 6b9c9c82846f57df939f21d98ae4ef9132ffeb26 # Parent 578b6fcc36e1e8dd81e1d43624b83f66589ddcbd "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_gemini_database_downloader commit 73ea765822334d9afc2f7b2ef4ddfc1a3fd4289e" diff -r 578b6fcc36e1 -r 6b9c9c82846f data_manager/data_manager_gemini_download.py --- a/data_manager/data_manager_gemini_download.py Fri Jan 11 17:18:03 2019 -0500 +++ b/data_manager/data_manager_gemini_download.py Thu May 14 09:08:04 2020 +0000 @@ -16,9 +16,9 @@ def main(): today = datetime.date.today() - params = json.loads( open( sys.argv[1] ).read() ) - target_directory = params[ 'output_data' ][0]['extra_files_path'] - os.mkdir( target_directory ) + params = json.loads(open(sys.argv[1]).read()) + target_directory = params['output_data'][0]['extra_files_path'] + os.mkdir(target_directory) # Generate a minimal configuration file for GEMINI update # to instruct the tool to download the annotation data into a @@ -39,7 +39,7 @@ params['param_dict']['gerp_bp'], params['param_dict']['cadd'] ) - subprocess.check_call( cmd, shell=True, env=gemini_env ) + subprocess.check_call(cmd, shell=True, env=gemini_env) # GEMINI tool wrappers that need access to the annotation files # are supposed to symlink them into a gemini/data subfolder of @@ -83,8 +83,8 @@ } # ... and save it to the json results file - with open( sys.argv[1], 'wb' ) as out: - out.write( json.dumps( data_manager_dict ) ) + with open(sys.argv[1], 'w') as out: + out.write(json.dumps(data_manager_dict)) if __name__ == "__main__":