Skip to content

branch lengths are lost when rerooting a tree imported with read.iqtree() #134

@andreaniml

Description

@andreaniml

While importing a tree made with iqtree that has the support values for alrt and ultrafast bootstrap at the nodes with the formating "Number1/Number2" using treeio:read.iqtree(), the data is imported correctly.

However, when rerooting using treeio::root(t, outgroup = "Reference tip", resolve.root = TRUE), the resulting tree loses the branch lengths, transforming into a cladogram.

t <- treeio::read.iqtree("iqtree_ufbandalrt.treefile") #unrooted tree

ggtree(t) #this one has a data section with ufb and alrt

tree_rooted <- treeio::root(t, outgroup = "Outgroup_tip_label", resolve.root = TRUE) #branch-lengths are gone

ggtree(tree_rooted) # cladogram

Removing "resolve root" does not alter the branch length loss.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions