Skip to content

Instantly share code, notes, and snippets.

@mtholder
Created May 31, 2014 02:11
Show Gist options
  • Select an option

  • Save mtholder/b56d3b07c59dbc87695c to your computer and use it in GitHub Desktop.

Select an option

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 !
#!/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