ddediu / lgfam-newick

Language family classifications as Newick trees

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include code (or docs) to retrieve input data

xrotwang opened this issue · comments

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

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