Closed MarioJose closed 4 years ago
Dear @liamrevell,
I wrote the function drop.tip.label that solve the problem. It can remove tips and preserve singletons.
All the best,
Mario
Dear @liamrevell,
I just update phytools to 0.6-20 version and the problem persist.
All the best,
Mario
ape::drop.tip
now has an option (collapse.singles=TRUE
) that drops tips from a tree with non-splitting nodes, and that also allows the resulting tree to contain these nodes. I recommend using that function.
Dear @liamrevell,
I'm using the function 'drop.tip.singleton' and having some problems with node labels. The final tree has some node labels of excluded nodes. For instance:
Note that 'rollinia' and 'guetteria' nodes labels must be dropped, but the function changed 'duguetia' and 'xylopia' nodes labels to labels of nodes that was deleted.
Best regards,
Mario