oneGOGraph              package:GOstats              R Documentation

_B_u_i_l_d _a _G_O _g_r_a_p_h _f_o_r _o_n_e _i_d_e_n_t_i_f_i_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Given a single GO identifier and a set of mappings to the less
     specific sets of nodes this function will construct  the graph
     that includes that node and all children down to the root node for
     the ontology.

_U_s_a_g_e:

     oneGOGraph(x, dataenv)

_A_r_g_u_m_e_n_t_s:

       x: A length one character vector with the name of the term. 

 dataenv: An environment for finding the parents of that term. 

_D_e_t_a_i_l_s:

     For any gene we define the induced GO graph to be that graph,
     based on the DAG structure (child - parent) of the GO ontology of
     terms.

_V_a_l_u_e:

     The induced GO graph (or NULL) for the given GO identifier.

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'makeGOGraph'

_E_x_a_m_p_l_e_s:

      g1 <- oneGOGraph("GO:0003680", GOMFPARENTS)
      g2 <- oneGOGraph("GO:0003701", GOMFPARENTS)
      g3 <- combGOGraph(g1, g2)

     if( require(Rgraphviz) && interactive() )
       plot(g3)

