Class: term
Read-only array containing GO terms that are synonyms of this GO term
synonym is a read-only property of the term
class. synonym is a two-column cell array containing
GO terms that are synonyms of this GO term. The first column contains
a character vector specifying the type of synonym, such as 'exact_synonym', 'related_synonym', 'broad_synonym', 'narrow_synonym',
or 'alt_id'. The second column contains the GO
identifier of the synonymous term or a character vector describing
the synonymous term.
Possible values are identifiers of GO terms from the Gene Ontology
database. Use the synonym property to determine
GO identifiers of synonymous term objects.
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.
Display the term objects that are synonymous to the
term object in the third position in the geneont object, GeneontObj.
synonyms = GeneontObj.terms(3).synonym
synonyms =
'alt_id' 'GO:0019952'
'alt_id' 'GO:0050876'
'exact_synonym' [1x39 char]Because the exact synonym does not have a GO identifier listed, display the text of this synonym.
synonyms(3,2)
ans =
'"reproductive physiological process" []'Display the term objects that are synonymous to the
term object in the 352nd position in the geneont object, GeneontObj.
GeneontObj.terms(352).synonym
ans =
'alt_id' 'GO:0006374'
'alt_id' 'GO:0006375'
'related_synonym' [1x26 char]
'related_synonym' [1x26 char]
'narrow_synonym' [1x51 char]
'narrow_synonym' [1x50 char]
'broad_synonym' '"mRNA splicing" []'
'broad_synonym' [1x22 char]Tip
If you know the GO identifier (for example, 398) of a term object, instead of its index or position number (for example, 352), you can use the following syntax to display the synonym of a term object:
GeneontObj(398).terms.synonym
For help converting the index or position number of a term object
to its GO identifier, see the term.id property.