You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with a tree structure where nodes are labeled as A->B->C. I am attempting to use the drop.tip function to remove node C from the tree. However, when I execute the function, it returns NULL.
Steps to Reproduce
Create a tree structure with nodes A->B->C.
Use the drop.tip function to remove node C.
Expected Behavior
I expect the drop.tip function to remove node C from the tree and return the modified tree structure.
Actual Behavior
The drop.tip function returns NULL instead of the expected modified tree structure.
The text was updated successfully, but these errors were encountered:
Firstly, treeio is primarily meant to work with phylogenetic trees and thus it expects that nodes will have two (or more) children.
drop.tip does not merely remove the tip(s) from a tree, but also reduces the resultant tree to only contain the remaining tips collapsing internal nodes as necessary. This is the intended behaviour. Your tree does not contain any other tips so reducing the tree leaves an empty tree.
Problem Description
I am working with a tree structure where nodes are labeled as A->B->C. I am attempting to use the
drop.tip
function to remove node C from the tree. However, when I execute the function, it returns NULL.Steps to Reproduce
drop.tip
function to remove node C.Expected Behavior
I expect the
drop.tip
function to remove node C from the tree and return the modified tree structure.Actual Behavior
The
drop.tip
function returns NULL instead of the expected modified tree structure.The text was updated successfully, but these errors were encountered: