evolbioinfo / gotree

Gotree is a set of command line tools and an API to manipulate phylogenetic trees. It is implemented in Go language.
GNU General Public License v2.0
118 stars 15 forks source link

Robinson-Foulds or other #10

Closed lskatz closed 3 years ago

lskatz commented 3 years ago

Hi, I am a big fan of gotree!

Are there any plans to have a Robinson-Foulds distance? Kendall-Colijn?

I think that I can use gotree compare distances but the output is so verbose and so I do not know how I will convert that spreadsheet to a summary statistic.

fredericlemoine commented 3 years ago

Hi, Thank you for your comment. It is possible to compute RF distance using the output of gotree compare trees command. Just add column 2 (# branches unique to -i tree) and column 4 (# branches unique to -c tree). Column 3 corresponds to # branches present in both trees. I just added the option --rf that only outputs the addition of the two values (on this pre-release). For the Kendall-Colijn distance, I am afraid I won't have time to implement it in the near future.

lskatz commented 3 years ago

Yay thank you!!!