get (phytree)

Retrieve information about phylogenetic tree object


[Value1, Value2,...] = get(Tree, 'Property1','Property2',...)
V = get(Tree)


TreePhytree object created with the function phytree.
NameProperty name for a phytree object.


[Value1, Value2,...] = get(Tree, 'Property1','Property2',...) returns the specified properties from a phytree object (Tree).

Properties for a phytree object are listed in the following table.

NumLeavesNumber of leaves
NumBranchesNumber of branches
NumNodesNumber of nodes (NumLeaves + NumBranches)
PointersBranch to leaf/branch connectivity list
Distances Edge length for every leaf/branch
LeafNamesNames of the leaves
BranchNamesNames of the branches
NodeNamesNames of all the nodes

get(Tree) displays all property names and their current values for a phytree object (Tree).

V = get(Tree) returns a structure where each field name is the name of a property of a phytree object (Tree) and each field contains the value of that property.


  1. Read in a phylogenetic tree from a file.

    tr = phytreeread('pf00002.tree')
    Phylogenetic tree object with 33 leaves (32 branches)
  2. Get the names of the leaves.

    protein_names = get(tr,'LeafNames')
    protein_names = 

More About

Was this topic helpful?