Products & Services Solutions Academia Support User Community Company

Learn more about Bioinformatics Toolbox   

getmatrix - Class: geneont

Convert geneont object into relationship matrix

Syntax

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

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.

Inputs

GeneontObjA geneont object, such as created by the geneont constructor function.

Outputs

MatrixMatrix 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.
IDColumn vector listing Gene Ontology IDs that correspond to the rows and columns of Matrix.
RelationshipCell array of strings defining the types of relationships.

Examples

  1. Download the current version of the Gene Ontology database from the Web into a geneont object in the MATLAB software.

    GO = geneont('LIVE',true) 

    The MATLAB software creates a geneont object and displays the number of terms in the database.

    Gene Ontology object with 27595 Terms.
  2. Convert this geneont object into a relationship matrix.

    [MATRIX, ID, REL] = getmatrix(GO); 

See Also

Bioinformatics Toolbox functions: goannotread, num2goid

Bioinformatics Toolbox class: term

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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