addSnpPdata          package:GeneRegionScan          R Documentation

_A_d_d _S_N_P _d_a_t_a _f_r_o_m _h_a_p_m_a_p-_s_t_y_l_e _d_a_t_a _f_i_l_e _t_o _p_D_a_t_a _o_f _E_x_p_r_e_s_s_i_o_n_S_e_t

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

     Function that will add genotypes to an ExpressionSet when given a
     data file with genotypes in the same format as outputted by
     http://www.hapmap.org.

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

         addSnpPdata(object, listOfSnps)

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

  object: A ProbeLevelSet object or a regular ExpressionSet object (in
          which case a probeData argument is required). See
          getLocalProbeIntensities and related functions on how to
          create a ProbeLevelSet.

listOfSnps: A character string giving the path of a file containing SNP
          data in the same format as used by the export function of
          www.hapmap.org.

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

     A function that takes an ExpressionSet and the path for a
     SNP-file. The SNP-file should have the same format as  files
     downloaded from http://www.hapmap.org. The function then checks if
     the sampleNames are present in the SNP-file. If they are, it
     decorates the ExpressionSet with the SNPs. If the snp name already
     exists as a column name in the pData, the function tries to merge
     the new information from listOfSnps with the new. Original NA
     values are overwritten by new values. Original values that are the
     same as new values are kept the same. Original values that are not
     the same as new values are preserved in their original state and a
     warning is given.

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

     The same ProbeLevelSet or ExpressionSet given as argument, but
     with the SNP type data added to the pData and with the extra
     information of the listOfSnps file added to the notes section.

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

     Lasse Folkersen

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

     'getLocalProbeIntensities','plotOnGene'

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

             ## Not run: 
             hapmapformatdata<-"~/somefile.txt"
             probelevelsetwithsnps<-addSnpPdata(probelevelset,hapmapformatdata)
             
     ## End(Not run)

