Mercurial > repos > pjbriggs > ceas
comparison data_manager/data_manager_ceas_fetch_annotations.py @ 1:df9033b88b53 draft
Fix data manager for Galaxy version v16.04 (was failing with import error for 'six' package)
| author | pjbriggs |
|---|---|
| date | Thu, 11 Aug 2016 04:16:49 -0400 |
| parents | f411ce97a351 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:f411ce97a351 | 1:df9033b88b53 |
|---|---|
| 8 import optparse | 8 import optparse |
| 9 import urllib2 | 9 import urllib2 |
| 10 import gzip | 10 import gzip |
| 11 import shutil | 11 import shutil |
| 12 | 12 |
| 13 from galaxy.util.json import from_json_string, to_json_string | 13 # Convenience functions mapping to JSON conversion |
| 14 # (this idiom borrowed from lib/galaxy/utils/json.py) | |
| 15 import json | |
| 16 to_json_string = json.dumps | |
| 17 from_json_string = json.loads | |
| 14 | 18 |
| 15 # Download file from specified URL and put into local subdir | 19 # Download file from specified URL and put into local subdir |
| 16 | 20 |
| 17 if __name__ == '__main__': | 21 if __name__ == '__main__': |
| 18 #Parse Command Line | 22 #Parse Command Line |
