sharedBy                package:SLGI                R Documentation

_F_i_n_d _t_h_e _g_e_n_e _p_a_i_r_s _t_h_a_t _s_h_a_r_e _a _d_o_m_a_i_n.

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

     'sharedBy' finds whether the given domain is in each of the
     elements of the domain list.

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

     sharedBy(domainL)

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

 domainL: is a list, each element of the list is a vector of domains. 

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

     'sharedBy' first remove all the elements with length 0 or have
     value 'NA'.  Then apply the reverseSplit on the remaining list.

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

     A list with each element represent a domain, and the values of the
     element are the pairs that share this domain.

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

     Z. Jiang

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

     'reverseSplit', 'domainDist', 'getSharedDomains'

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

     ## Load PFAM and SMART domains shared between Tong's Synthetic lethal data
     data(AtongFnDomain)
     ## Find pair that share identical domain
     sharedBy(AtongFnDomain$SharedPfam[1:20])

