getOntology             package:annotate             R Documentation

_G_e_t _G_O _t_e_r_m_s _f_o_r _a _s_p_e_c_i_f_i_e_d _o_n_t_o_l_o_g_y

_D_e_s_c_r_i_p_t_i_o_n:

     Find the subset of GO terms for the specified ontology, for each
     element  of the supplied list of associations. The input list is
     typically from one of the chip-specific meta-data files or from
     'GOENTREZID2GO'.

_U_s_a_g_e:

     getOntology(inlist, ontology=c("MF", "BP", "CC"))

_A_r_g_u_m_e_n_t_s:

  inlist: A list of GO associations

ontology: The name of the ontology you want returned. 

_D_e_t_a_i_l_s:

     The input list should be a list of lists, each element of 'inlist'
     is itself a list containing the information that maps from a
     specified  ID (usually LocusLink) to GO information. Each element
     of the inner list  is a list with elements 'GOID', 'Ontology' and
     'Evidence'.

_V_a_l_u_e:

     A list of the same length as the input list. Each element of this
     list will contain a vector of 'GOID's for those terms that match
     the requested ontology.

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'getEvidence', 'dropECode'

_E_x_a_m_p_l_e_s:

      library("GO")
      bb=GOENTREZID2GO$"4121"
      getOntology(bb)
      sapply(bb, function(x) x$Ontology)

