getOntology             package:GOstats             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
     GOLOCUSID2GO.

_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:

      bb=GOLOCUSID2GO$"4121"
      getOntology(bb)
      sapply(bb, function(x) x$Ontology)

