Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Include code (or docs) to retrieve input data #3

Open
xrotwang opened this Issue Mar 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants

Starting with Glottolog 3.0, all glottolog data can be accessed programmatically using a python client library pyglottolog which acts on the data in clld/glottolog. You could include code or documentation here how to use pyglottolog to retrieve the newick serialization for any version of Glottolog - including potential local modifications, if the client accesses a local fork of clld/glottolog.

With pyglottolog installed from current HEAD of clld/glottolog, this would be as simple as running

glottolog newick > glottolog-tree-newick.txt
Owner

ddediu commented May 18, 2017

Nice to know, thanks! I will check if my code works with Glottolog 3.0 (and update it as needed) gopefully soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment