# HG changeset patch
# User iuc
# Date 1491343745 14400
# Node ID 172815da3d41cb2d78240c0149041ec18650f181
# Parent 345412d58d75bced46ab24ce814d1ec51b3486c7
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_gemini_database_downloader commit 8652f36a3a3838dca989426961561e81432acf4f
diff -r 345412d58d75 -r 172815da3d41 data_manager/data_manager_gemini_download.py
--- a/data_manager/data_manager_gemini_download.py Thu Feb 18 08:49:06 2016 -0500
+++ b/data_manager/data_manager_gemini_download.py Tue Apr 04 18:09:05 2017 -0400
@@ -1,32 +1,31 @@
#!/usr/bin/env python
-import sys
-import os
+import datetime
import json
-import shlex
-import datetime
+import os
import subprocess
+import sys
+
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 )
cmd = "gemini --annotation-dir %s update --dataonly %s %s" % (target_directory, params['param_dict']['gerp_bp'], params['param_dict']['cadd'] )
- ret = subprocess.check_call( cmd, shell=True )
+ subprocess.check_call( cmd, shell=True )
data_manager_dict = {
- 'data_tables':
- {'gemini_databases': [
- {'value': today.isoformat(), 'dbkey': 'hg19', 'name': 'GEMINI annotations (%s)' % today.isoformat(), 'path': './%s' % today.isoformat() }
- ]
- }
- }
+ 'data_tables': {
+ 'gemini_databases': [
+ {'value': today.isoformat(), 'dbkey': 'hg19', 'name': 'GEMINI annotations (%s)' % today.isoformat(), 'path': './%s' % today.isoformat() }
+ ]
+ }
+ }
- #save info to json file
+ # save info to json file
with open( sys.argv[1], 'wb' ) as out:
out.write( json.dumps( data_manager_dict ) )
+
if __name__ == "__main__":
main()
-
diff -r 345412d58d75 -r 172815da3d41 data_manager/data_manager_gemini_download.xml
--- a/data_manager/data_manager_gemini_download.xml Thu Feb 18 08:49:06 2016 -0500
+++ b/data_manager/data_manager_gemini_download.xml Tue Apr 04 18:09:05 2017 -0400
@@ -3,12 +3,8 @@
gemini
-
-
-
-
-
- data_manager_gemini_download.py "$out_file"
+
+ python '$__tool_directory__/data_manager_gemini_download.py' '$out_file'
-
+
-
This tool downloads the GEMINI databases.
For details about this tool, please go to http://gemini.readthedocs.org
-
10.1371/journal.pcbi.1003153
-
diff -r 345412d58d75 -r 172815da3d41 tool_data_table_conf.xml.sample
--- a/tool_data_table_conf.xml.sample Thu Feb 18 08:49:06 2016 -0500
+++ b/tool_data_table_conf.xml.sample Tue Apr 04 18:09:05 2017 -0400
@@ -1,5 +1,5 @@
-
+
diff -r 345412d58d75 -r 172815da3d41 tool_dependencies.xml
--- a/tool_dependencies.xml Thu Feb 18 08:49:06 2016 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-
-
-
-
-
-