| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
Convert geneont object into relationship matrix
[Matrix, ID, Relationship]
= getmatrix(GeneontObj)
[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.
| GeneontObj | A geneont object, such as created by the geneont constructor function. |
| Matrix | 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 | Column vector listing Gene Ontology IDs that correspond to the rows and columns of Matrix. |
| Relationship | Cell array of strings defining the types of relationships. |
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.
Convert this geneont object into a relationship matrix.
[MATRIX, ID, REL] = getmatrix(GO);
Bioinformatics Toolbox functions: goannotread, num2goid
Bioinformatics Toolbox class: term
![]() | getmatrix (biograph) | getmatrix (phytree) | ![]() |

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 |