| Bioinformatics Toolbox | ![]() |
Get handles to nodes
NodesHandles = getnodesbyid(BGobj, NodeIDs)
BGobj | Biograph object. |
NodeIDs | Enter a cell string of node identifications. |
NodesHandles = getnodesbyid(BGobj, NodeIDs) gets the node handles for the specified nodes (NodeIDs).
Create a biograph object.
species = {'Homosapiens','Pan','Gorilla','Pongo','Baboon',...
'Macaca','Gibbon'};
cm = magic(7)>25 & 1-eye(7);
bg = biograph(cm, species)
Find the handles to members of the Cercopithecidae family and members of the Hominidae family.
Cercopithecidae = {'Macaca','Baboon'};
Hominidae = {'Homosapiens','Pan','Gorilla','Pongo'};
CercopithecidaeNodes = getnodesbyid(bg,Cercopithecidae);
HominidaeNodes = getnodesbyid(bg,Hominidae);Color the families differently and draw a graph.
Bioinformatics Toolbox methods for the biograph object, biograph, dolayout, getancestors, getdescendants, getedgesbynodeid, getrelatives, view
MATLAB functions get, set
| gethmmtree | getpdb | ![]() |
© 1994-2005 The MathWorks, Inc.