| Bioinformatics Toolbox | ![]() |
Select branches and leaves from a phytree object
S = getbyname(Tree, Expression)
| Tree | Phytree object created with the function phytree (phytree). |
| Expression | Regular expression. |
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.
| 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 |
% 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));
The MATLAB function regexp
| getblast | getdescendants (biograph) | ![]() |
© 1994-2005 The MathWorks, Inc.