part_of property

Class: term

Read-only numeric array containing GO identifiers of GO terms that have a “part of” relationship with this GO term

Description

part_of is a read-only property of the term class. part_of is a column vector containing GO identifiers. These GO identifiers specify other term objects to which the term object has a “part_of” relationship. The term object is a subset of the term objects specified by its part_of property.

Values

Possible values are identifiers of GO terms from the Gene Ontology database. Use the part_of property to determine GO identifiers of GO terms that have a “part of” relationship with a specific GO term.

Examples

Example 91. Using the part_of Property to Determine term Objects with a “part of” Relationship
  1. 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.
  2. Display the term objects to which the term object in the 18,703rd position has a “part of” relationship.

    GeneontObj.terms(18703).part_of
    
    ans =
    
           50802
    

Tip

You can also use the getancestors method of a geneont object with the 'Relationtype' property set to 'part_of' to determine term objects with a “part of” relationship.

Tip

If you know the GO identifier (for example, 42321) of a term object, instead of its index or position number (for example, 18703), you can use the following syntax to display the part_of property of a term object:

GeneontObj(42321).terms.part_of

For help converting the index or position number of a term object to its GO identifier, see the term.id property.