Repository 'data_manager_fetch_gene_annotation'
hg clone https://toolshed.g2.bx.psu.edu/repos/scottx611x/data_manager_fetch_gene_annotation

Changeset 36:f38beb0743d5 (2016-06-23)
Previous changeset 35:355ecb4aaffd (2016-06-23) Next changeset 37:7af38f95bc8d (2016-06-23)
Commit message:
planemo upload
modified:
data_manager_gene_annotation/data_manager/data_manager.py
b
diff -r 355ecb4aaffd -r f38beb0743d5 data_manager_gene_annotation/data_manager/data_manager.py
--- a/data_manager_gene_annotation/data_manager/data_manager.py Thu Jun 23 17:12:32 2016 -0400
+++ b/data_manager_gene_annotation/data_manager/data_manager.py Thu Jun 23 17:18:20 2016 -0400
b
@@ -55,6 +55,8 @@
 
 def main(args):
 
+    work_dir = os.getcwd()
+
     # Attempt to download gene annotation file from given url
     gene_annotation_file_name = url_download(args.url)
 
@@ -65,15 +67,11 @@
                 'value': str(datetime.datetime.now()),
                 'dbkey': str(args.name),
                 'name': gene_annotation_file_name,
-                'path': os.path.join(os.getcwd(), gene_annotation_file_name)
+                'path': os.path.join(work_dir, gene_annotation_file_name)
             }
         }
     }
 
-    with open("/Users/scott/Desktop/cool.txt", "w+") as f:
-        f.write(os.path.join(os.getcwd(), gene_annotation_file_name))
-        f.write("\n")
-        
     with open(os.path.join(args.output), "w+") as f:
         f.write(json.dumps(data_manager_entry))