Open snacktavish opened 4 years ago
perhaps, but I just went ahead and wrote a nexson tree -> dendropy tree converter: https://github.com/OpenTreeOfLife/python-opentree/pull/6
I should mention that there are some assert some-condition-that-might-not-hold
in that branch. I was just working through 1 nexson (tree3 from ot_1877). So that code will probably require some generalization for other studies/trees
From Luna on gitter: the example code and pseudocode to get node ages from source trees https://github.com/OpenTreeOfLife/python-opentree/blob/get-tree/examples/datelife.py Specifically, https://github.com/OpenTreeOfLife/python-opentree/blob/get-tree/examples/datelife.py#L39
Exporting as nexml and traversing in dendropy doesn't preserve annotations. Do we have nexson tree traversal code somewhere we should use?