OOC-class             package:ontoTools             R Documentation

_C_l_a_s_s "_O_O_C" _o_b_j_e_c_t-_o_n_t_o_l_o_g_y _c_o_m_p_l_e_x

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

     Object that binds ontology (structured vocabulary) with an
     object-term map.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("OOC", ...)'.

_S_l_o_t_s:

     '_o_n_t_o_l_o_g_y': Object of class '"ontology"' instance of
          ontoTools::ontology 

     '_O_O_m_a_p': Object of class '"namedSparse"' SparseM::matrix.csr bound
          with dimnames facilities 

_M_e_t_h_o_d_s:

     _c_o_v_e_r_a_g_e_M_a_t 'signature(x = "OOC")': return a namedSparse incidence
          matrix with r,c element indicating whether term c covers
          object r  

     _o_n_t_o_l_o_g_y 'signature(x = "OOC")': accessor 

     _O_O_m_a_p 'signature(x = "OOC")': accessor 

     _s_h_o_w 'signature(object = "OOC")': concise printer 

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

     VJ Carey <stvjc@channing.harvard.edu>

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

     data(litOnto)
     g1 <- new("rootedDAG", DAG=litOnto, root="A")
     o1 <- new("ontology", name="demo", version="0.1",
             rDAG=g1)
     kvlist <- list(W="E", X="K", Y="B", Z=c("D","G"))
     litMap <- otkvList2namedSparse( names(kvlist), LETTERS[1:12], kvlist )
     print(litMap)
     ooc1 <- makeOOC( o1, litMap )
     show(ooc1)
     print(coverageMat(ooc1))
     # note the following will be slow with large OOCs
     print(conceptProbs(ooc1))
     # for larger OOCs it is useful to precompute the accessibility
     # matrix of the ontology and the map from objects to terms -- these
     # can be supplied as additional arguments to conceptProbs

