CL-GODB: Standard Generic Function GET-PARENT-TERMS

Generic function GET-PARENT-TERMS

Package:

GODB

Syntax:

  get-parent-terms go-handle accession
  => parent-term-objects
  

Arguments and Values:

go-handle---an object of type go-handle

accession---a string

Description:

The generic function get-parent-terms is used to find all parents of a term using the is-a hierarchy. It takes two parameters, go-handle, to preserve the session, and accession to identify the term whose parents to find. It returns a list of objects of type TERM

Known Methods:

  •   get-parent-terms (go-handle-object go-handle) (accession string)
      =>  parent-term-objects
      

Affected By:

None.

Examples:

cl-prompt: (godb:get-parent-terms mygohandle "GO:0007610")
(#<CL-GODB:TERM 212A8A64>)

cl-prompt:  Describe (first *)
#<CL-GODB:TERM 212A8A64> is a CL-GODB:TERM
TERM-ID          4776
NAME             "biological_process"
ACCESSION        CL-GODB::GO\:0008150
TERM-TYPE        "process"
DEFINITION       #<unbound slot>
IS-OBSOLETE      0
IS-ROOT          0
IS-A             (#<CL-GODB:TERM 21A56CB4>)
PART-OF          NIL
CHILDREN         (#<CL-GODB:TERM 212A042C> #<CL-GODB:TERM 212A0364> #<CL-GODB:TERM 212A02F4> 
                 #<CL-GODB:TERM 212A022C> #<CL-GODB:TERM 212A0194> #<CL-GODB:TERM 20673A74> 
                 #<CL-GODB:TERM 206739B4>)
COMPONENTS       NIL

Exceptional Situations:

None.

See Also:

GET-CHILD-TERMS
GET-COMPONENT-TERMS
GET-CONTAINER-TERMS

Notes:

This function finds the ids for all parents of the input accession then it checks if they are already in the hash table. If they are not, they are then added. In both cases, the "is-a" slot of the child's term object is filled with a list of references to the parents' term objects.


News

News in chronological order, most recent on top.

  • 2005-07-29
    Completed description.