phangorn icon indicating copy to clipboard operation
phangorn copied to clipboard

unroot error in optim.pml

Open qifei9 opened this issue 7 years ago • 0 comments

When an alignment has only 2 unique sequences after dropping duplicated tips, the optim.pml with rearrangement = 'stochastic', 'NNI' or 'ratchet' will run into error like: cannot unroot the tree. Perhaps due to line 2468 in R/phylo.R and maybe a check should be added before unroot.

qifei9 avatar Mar 22 '17 22:03 qifei9