getmatrix (geneont) - Convert geneont object into relationship matrix

Syntax

[Matrix, ID, Relationship] = getmatrix(GeneontObj)

Arguments

GeneontObjgeneont object created by geneont (object constructor)

Description

[Matrix, ID, Relationship] = getmatrix(GeneontObj) converts a geneont object, GeneontObj, into Matrix, a matrix of relationship values between nodes (row and column indices), in which 0 indicates no relationship, 1 indicates an "is_a" relationship, and 2 indicates a "part_of" relationship. ID is a column vector listing Gene Ontology IDs that correspond to the rows and columns of Matrix. Relationship is a cell array of strings defining the types of relationships.

Examples

GO = geneont('LIVE',true);
[MATRIX, ID, REL] = getmatrix(GO); 

See Also

Bioinformatics Toolbox™ functions: geneont (object constructor), goannotread, num2goid

Bioinformatics Toolbox object: geneont object

Bioinformatics Toolbox methods of geneont object:getancestors, getdescendants, getmatrix, getrelatives

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS