Mercurial > repos > scottx611x > data_manager_fetch_gene_annotation
comparison data_manager_gene_annotation/data_manager/data_manager.py @ 35:355ecb4aaffd draft
planemo upload
| author | scottx611x |
|---|---|
| date | Thu, 23 Jun 2016 17:12:32 -0400 |
| parents | 30039ecf0da0 |
| children | f38beb0743d5 |
comparison
equal
deleted
inserted
replaced
| 34:30039ecf0da0 | 35:355ecb4aaffd |
|---|---|
| 46 % e) | 46 % e) |
| 47 os.remove(file_name) | 47 os.remove(file_name) |
| 48 | 48 |
| 49 with open("/Users/scott/Desktop/cool.txt", "w+") as f: | 49 with open("/Users/scott/Desktop/cool.txt", "w+") as f: |
| 50 f.write(os.path.join(os.getcwd(), file_name)) | 50 f.write(os.path.join(os.getcwd(), file_name)) |
| 51 f.write("\n") | |
| 51 | 52 |
| 52 return file_name | 53 return file_name |
| 53 | 54 |
| 54 | 55 |
| 55 def main(args): | 56 def main(args): |
| 67 'path': os.path.join(os.getcwd(), gene_annotation_file_name) | 68 'path': os.path.join(os.getcwd(), gene_annotation_file_name) |
| 68 } | 69 } |
| 69 } | 70 } |
| 70 } | 71 } |
| 71 | 72 |
| 73 with open("/Users/scott/Desktop/cool.txt", "w+") as f: | |
| 74 f.write(os.path.join(os.getcwd(), gene_annotation_file_name)) | |
| 75 f.write("\n") | |
| 76 | |
| 72 with open(os.path.join(args.output), "w+") as f: | 77 with open(os.path.join(args.output), "w+") as f: |
| 73 f.write(json.dumps(data_manager_entry)) | 78 f.write(json.dumps(data_manager_entry)) |
| 74 | 79 |
| 75 if __name__ == '__main__': | 80 if __name__ == '__main__': |
| 76 main(args) | 81 main(args) |
