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])

