Created
August 24, 2016 14:05
-
-
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
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 | |
| 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