# HG changeset patch # User iuc # Date 1589447306 14400 # Node ID 5bcf0e24f42c24c05e0fe6d27e27fd1d02608d5d # Parent f57426daa04db8d54f3f980cd34e0d717d931526 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_gemini_database_downloader commit 73ea765822334d9afc2f7b2ef4ddfc1a3fd4289e" diff -r f57426daa04d -r 5bcf0e24f42c data_manager/data_manager_gemini_download.py --- a/data_manager/data_manager_gemini_download.py Fri Jan 11 17:33:55 2019 -0500 +++ b/data_manager/data_manager_gemini_download.py Thu May 14 05:08:26 2020 -0400 @@ -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__":