| 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 |
Data structure containing Gene Ontology (GO) information
A geneont object is a data structure containing Gene Ontology information. You can explore and traverse Gene Ontology terms using "is_a" and "part_of" relationships.
| geneont | Create geneont object and term objects |
| getancestors | Find terms that are ancestors of specified Gene Ontology (GO) term |
| getdescendants | Find terms that are descendants of specified Gene Ontology (GO) term |
| getmatrix | Convert geneont object into relationship matrix |
| getrelatives | Find terms that are relatives of specified Gene Ontology (GO) term |
| date | Read-only string containing date and time OBO file was last updated |
| default_namespace | Read-only string containing namespace to which GO terms are assigned |
| format_version | Read-only string containing version of encoding of OBO file |
| terms | Read-only column vector with handles to term objects of geneont object |
A geneont object contains term objects.
Handle. To learn how this affects your use of the class, see Copying Objects in the MATLAB Programming Fundamentals documentation.
You can use parenthesis () indexing with either GO identifiers (numbers) or by GO terms (term objects) to create a subontology. See Examples below.
Indexing into a geneont Object Using the GO Identifier
You can create a subontology by indexing into a geneont object by using the GO identifier.
Download the current version of the Gene Ontology database from the Web into a geneont object in the MATLAB software.
GeneontObj = geneont('LIVE', true)The MATLAB software creates a geneont object and displays the number of term objects associated with the geneont object.
Gene Ontology object with 27769 Terms.
Create a subontology by returning the terms with GO identifiers of GO:000005 through GO:000010.
subontology1 = GeneontObj(5:10) Gene Ontology object with 6 Terms.
Create a subontology by returning the term with a GO identifier of GO:000100.
subontology2 = GeneontObj(100) Gene Ontology object with 1 Terms.
Indexing into a geneont Object Using the GO Term
You can create a subontology by indexing into a geneont object by using the GO term.
Download the current version of the Gene Ontology database from the Web into a geneont object in the MATLAB software.
GeneontObj = geneont('LIVE', true)The MATLAB software creates a geneont object and displays the number of term objects associated with the geneont object.
Gene Ontology object with 27769 Terms.
Create an array of term objects containing the fifth through tenth terms of the geneont object.
termObject = GeneontObj.terms(5:10)
6x1 struct array with fields:
id
name
ontology
definition
comment
synonym
is_a
part_of
obsoleteNote The GO term of 5 is the position of the term object in the geneont object, and is not necessarily the same as the term object with a GO identifier of GO:000005 used in the first example. This is because there are many terms that are obsolete and are not included as term objects in the geneont object. |
Create a subontology by returning the fifth through tenth terms of the geneont object.
subontology3 = GeneontObj(termObject) Gene Ontology object with 6 Terms.
Bioinformatics Toolbox functions: goannotread, num2goid
Bioinformatics Toolbox class: term
![]() | genelowvalfilter | geneont | ![]() |

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 |