bodkan / slendr

Population genetic simulations in R 🌍
https://bodkan.net/slendr
Other
54 stars 5 forks source link

Fix passing of node times from tskit through `ts_phylo` #107

Closed bodkan closed 2 years ago

bodkan commented 2 years ago

Just noticed NA values being present in the time_tskit column of a node table converted to the ape phylo format by ts_phylo.

Because the converted time in the time column is present, this looks like information is lost through the table processing involved in the conversion.

My guess is that this happens during a join operation somewhere.

Screenshot for easier reference:

image
bodkan commented 2 years ago

This doesn't affect only ts_phylo but it's an issue with ts_nodes in general.