Hi, I am comparing symmetric distance and branch length distance metrics against the Phylip package.
When I run treedist (Phylip) on two of my trees with distance type=symmetric distance and rooted=yes, I get 89. When I run this code, I get either 70 or 21, depending on which is ref or which is query. Treedist does not change when I vary the ref/query.
perl -MBio::Phylo::IO -e '$ref=Bio::Phylo::IO->parse(-file=>"Lyve-SET.flattened.dnd")->first; $query=Bio::Phylo::IO->parse(-file=>"RealPhy.flattened.dnd")->first; print $query->calc_symdiff($ref)."\n";'
Similarly when I run treedist with distance type=branch score distance and rooted=yes, I get 0.117 with either tree as ref or query. However, with Bio::Phylo code I get 0.07 with either tree set to ref or query.
perl -MBio::Phylo::IO -e '$ref=Bio::Phylo::IO->parse(-file=>"Lyve-SET.flattened.dnd")->first; $query=Bio::Phylo::IO->parse(-file=>"RealPhy.flattened.dnd")->first; print $ref->calc_branch_length_distance($query)."\n";'
Is there an explanation of the differences in algorithms?