getbyname (phytree)

Select branches and leaves from a phytree object

Syntax

S = getbyname(Tree, Expression)

Arguments

TreePhytree object created with the function phytree (phytree).
ExpressionRegular expression.

Description

S = getbyname(Tree, Expression) returns a logical vector (S) of size NumNodes-by-1 with the node names of a phylogenetic tree (Tree) that match the regular expression (Expression) regardless of letter case. When Expression is a cell array of strings, getbyname returns a matrix where each column corresponds to a query in Expression

For information about the symbols that you can use in a matching regular expression, see the MATLAB function regexp.

Method Summary

get (phytree)Get information about a phylogenetic tree object
getbyname (phytree)Select branches and leaves from a phytree object
pdist (phytree)Calculate the pairwise patristic distances in a phytree object
phytree (phytree)Object constructor for a phylogenetic tree object
plot (phytree)Draw a phylogenetic tree
prune (phytree)Remove branch nodes from phylogenetic tree
select (phytree)Select tree branches and leaves in phytree object
view (phytree)View phylogenetic tree

Examples

% Load a phylogenetic tree created from a protein family:
tr = phytreeread('pf00002.tree');

% Select all the 'mouse' and 'human' proteins:
sel = getbyname(tr,{'mouse','human'});
view(tr,any(sel,2));

See Also

The MATLAB function regexp


© 1994-2005 The MathWorks, Inc.