get (phytree)

Get information about a phylogenetic tree object

Syntax

[Value1,Value2, ...] = GET(Tree,
                           'Name1', 'Name2', ...)

Arguments

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

Description

[Value1,Value2, ...] = GET(Tree, 'Name1', 'Name2', ...) returns the specified properties from a phytree object (Tree).

The valid choices for 'Name' are

'Pointers' Branch to leaf/branch connectivity list
'Distances'Edge length for every leaf/branch
'NumLeaves'Number of leaves
'NumBranches'Number of branches
'NumNodes' Number of nodes (NumLeaves + Numbranches)
'LeafNames' Names of the leaves
'BranchNames' Names of the branches
'NodeNames' Names of all the nodes

Examples

tr = phytreeread('pf00002.tree')
protein_names = get(tr,'LeafNames')

See Also

Bioinformatics Toolbox functions phytree (phytree), phytreeread, and phytree object method select (phytree)


© 1994-2005 The MathWorks, Inc.