xavierdidelot / ClonalFrameML

ClonalFrameML: Efficient Inference of Recombination in Whole Bacterial Genomes
GNU General Public License v3.0
105 stars 26 forks source link

ERROR: incompatible with a bifurcating unrooted tree #125

Closed LeonardosMageiros closed 3 years ago

LeonardosMageiros commented 3 years ago

Hi,

I am running clonalframeML and I am having the following error message: ERROR: convert_NewickTree_to_marginal_tree(): Number of descendant nodes (4) incompatible with a bifurcating unrooted tree

Do you know what is going wrong and how I can fix this? The tree I am using has been produced using fasttree.

Thank you in advance Leonardos

xavierdidelot commented 3 years ago

Hi Leonardos,

ClonalFrameML does not allow multichotomies in the input tree (except for the root which is allowed to have three descendants since the tree is seen as unrooted). You could resolve this for example using the "multi2di" command of the R package ape.

Best wishes, Xavier