Skip to content

Instantly share code, notes, and snippets.

@mtholder
Created August 24, 2016 14:05
Show Gist options
  • Select an option

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

Select an option

Save mtholder/c9ad792ab49060500730b1e5826e7044 to your computer and use it in GitHub Desktop.
print keys in the nexml elelment of a nexson using a local phyleystemapi object
#!/usr/bin/env python
from __future__ import print_function
from peyotl.api import PhylesystemAPI
import sys
studyid = sys.argv[1]
phy = PhylesystemAPI(get_from='local')
nx = phy.get_study(studyid)['data']['nexml']
print(nx.keys())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment