# HG changeset patch
# User iuc
# Date 1409001346 14400
# Node ID fd9e9ac5ecb38bfbafcf3ae9b49166a64720da82
Imported from capsule None
diff -r 000000000000 -r fd9e9ac5ecb3 data_manager/data_manager_gemini_download.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager/data_manager_gemini_download.py Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,35 @@
+#!/usr/bin/env python
+
+import sys
+import os
+import json
+import shlex
+import datetime
+import subprocess
+
+def main():
+
+ today = datetime.date.today()
+ gemini_root_dir = os.environ['GEMINI_ROOT_DIR']
+ params = json.loads( open( sys.argv[1] ).read() )
+ target_directory = params[ 'output_data' ][0]['extra_files_path']
+ os.mkdir( target_directory )
+ gemini_exec = os.path.join( gemini_root_dir, 'gemini', 'gemini', 'install-data.py' )
+ cmd = gemini_exec + " %s %s" % (' '.join( [params['param_dict']['gerp_bp'], params['param_dict']['cadd']] ), target_directory)
+ #cmd = gemini_exec + " --help > %s/foo.txt" % target_directory
+ ret = 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() }
+ ]
+ }
+ }
+
+ #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 000000000000 -r fd9e9ac5ecb3 data_manager/data_manager_gemini_download.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager/data_manager_gemini_download.xml Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,37 @@
+
+ Download a new database
+
+ gemini
+
+
+ data_manager_gemini_download.py "$out_file"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+This tool downloads the GEMINI databases.
+
+For details about this tool, please go to http://http://gemini.readthedocs.org
+
+
+
+ 10.1371/journal.pcbi.1003153
+
+
+
+
diff -r 000000000000 -r fd9e9ac5ecb3 data_manager_conf.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/data_manager_conf.xml Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
diff -r 000000000000 -r fd9e9ac5ecb3 tool-data/gemini_databases.loc.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool-data/gemini_databases.loc.sample Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,3 @@
+## GEMINI databases
+#Version dbkey Description
+#08_08_2014 hg19 Database (08-08-2014)
diff -r 000000000000 -r fd9e9ac5ecb3 tool_data_table_conf.xml.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.sample Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,7 @@
+
+
+ value, dbkey, name, path
+
+
+
+
diff -r 000000000000 -r fd9e9ac5ecb3 tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Mon Aug 25 17:15:46 2014 -0400
@@ -0,0 +1,6 @@
+
+
+
+
+
+