Created
May 31, 2014 02:11
-
-
Save mtholder/b56d3b07c59dbc87695c to your computer and use it in GitHub Desktop.
(if you have peyotl installed and configured) this will download studies from phylografter and store each as NexSON in a file named <studyId>.json *WARNING*: this will overwrite <studyId>.json !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| from peyotl.api.phylografter import Phylografter | |
| pg = Phylografter() | |
| for study_id in sys.argv[1:]: | |
| pg.fetch_study(study_id, study_id + '.json') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment