convertSmc               package:PGSEA               R Documentation

_C_o_n_v_e_r_t _E_n_t_r_e_z _I_D _b_a_s_e_d "_s_m_c" _o_b_j_e_c_t

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

     This function will convert the Entrez IDs of an smc object to the
     corresponding Entrez IDs from a different species. Data from the
     homologene project is downloaded and used within this function.

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

     convertSmc(mcs, fromSpecies = "h", toSpecies = "r",hgX="./homologene.data")

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

     mcs: a list of "smc" objects

fromSpecies: character - a single letter describing the species to
          convert from ie, h=human, r= rat, etc..

toSpecies: character - a single letter describing the species to
          convert to ie, h=human, r= rat, etc.. 

     hgX: character - file name of homologene data file 

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

     This function will not work if you have not downloaded the
     homologene data file. Please use this command to do so:
     download.file("ftp://ftp.ncbi.nih.gov/pub/HomoloGene/current/homologene.data",destfile="homologene.data",mode="wb")

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

     a list of converted "smc" objects

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

     Karl Dykema <karl.dykema@vai.org>

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

     ## Not run: 
             download.file("ftp://ftp.ncbi.nih.gov/pub/HomoloGene/current/homologene.data",destfile="homologene.data",mode="wb")
             
             datadir <- system.file("data", package = "PGSEA")
             sample <- readGmt(file.path(datadir, "sample.gmt"))
             
             converted <- convertSmc(sample[1:2],"h","r")
             str(converted)
     ## End(Not run)

