translateID             package:RpsiXML             R Documentation

_F_i_n_d_s _i_d_e_n_t_i_f_i_e_r_s _o_f _a _g_i_v_e_n _o_b_j_e_c_t

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

     see 'translateID-methods'

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

     translateID(r, ...)

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

       r: An object of psimi25Graph, psimi25Hypergraph,
          psimi25Interactor or a list of 'psimi25Interactor'

     ...: the symbol of the ID to translate

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

     see 'translateID-methods'

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

     The object of the same class as the parameter

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

     Jitao David Zhang <j.zhang@dkfz.de>

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

     see 'translateID-methods'

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

     xmlDir <- system.file("/extdata/psi25files",package="RpsiXML")

     hprdxml <- file.path(xmlDir, "hprd_200709_test.xml")
     hprdSet <- parsePsimi25Interaction(hprdxml, HPRD.PSIMI25)

     it <- interactors(hprdSet)[[1]]
     translateID(it, "uniprot")
     translateID(it, "entrezgene")

     ##Not run
     intactxml <- file.path(xmlDir, "intact_2008_test.xml")
     intactSet <- parsePsimi25Interaction(intactxml, INTACT.PSIMI25)
     intactGraph <- psimi25XML2Graph(intactxml, INTACT.PSIMI25)
     intactGraphNew <- translateID(intactGraph,"sourceId")## translate the nodes of the graph to another identifier
                                   
     intactSetInteractors <- interactors(intactSet)
     intactXrefExample <- xref(intactSetInteractors[[1]])
     translateID(intactSetInteractors,"intact")
     translateID(intactSetInteractors[[1]],"intact")

     intactComplexxml <- file.path(xmlDir,"intact_complexSample.xml")
     intactComplexSet <- parsePsimi25Complex(intactComplexxml, INTACT.PSIMI25)
     intactComplexGraph <- psimi25XML2Graph(intactComplexxml, INTACT.PSIMI25, type="complex")
     translateID(intactComplexGraph, "intact", "P49432")
     translateID(intactComplexGraph, "intact", NA)
     ## End(Not run)

