Closed PhyloStar closed 3 years ago
I'll have a look. Should be easy enough. So you'd want the Glottolog treem pruned to the tips in LSI, with LSI names as tip labels, correct?
Yes. That is right.
@PhyloStar note that I had to replace braces in LSI names with underscores, see https://github.com/lexibank/lsi/blob/3072a0ba766caf22633e285597c218af340cd113/lsicommands/reference_tree.py#L28
Okay. Thanks. I will try to use it and report any issues. I think things are moving fast.
@xrotwang and @lingulist. As of now, the tip labels in the nexus files are coming from the slugged language names in the cldf code. The Indo-European nexus file is here:
https://github.com/lexibank/lsi/blob/master/computed/Indo-European_lexstat_infomap.paps.nex
Is there any way to obtain the reference trees (using pyglottolog package) where the tip labels are the same as slugged language names? This would allow me to perform tree comparison directly without having to edit the reference tree manually. Hand editing the tree file for 100 glottocodes can be tedious.