cisSnpTests             package:GGtools             R Documentation

_p_e_r_f_o_r_m _t_e_s_t_s _f_o_r _e_Q_T_L _c_i_s _t_o _s_p_e_c_i_f_i_e_d _g_e_n_e_s

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

     perform tests for eQTL cis to specified genes

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

     cisSnpTests(fmla, smls, radius, ...)

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

    fmla: standard formula. LHS can be a GeneSet with
          AnnotationIdentifier geneIdType.  RHS can be predictor
          formula component using variables in pData of 'smls' 

    smls: instance of smlSet 

  radius: numeric value: number of bases up and downstream from probe
          CHRLOC to be examined for SNP 

     ...: not in use 

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

     a list of cwSnpScreen instances

_N_o_t_e:

     Getting SNP locations is slow for the first event while metadata
     are brought into scope.  Subsequent calls are faster.

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

     VJ Carey <stvjc@channing.harvard.edu>

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

     library(GSEABase)
     # two genes on chr 20
     gs1 = GeneSet(c("CPNE1", "ADA"), geneIdType = SymbolIdentifier())
     gs2 = gs1
     organism(gs2) = "Homo sapiens"
     geneIdType(gs2) = AnnotationIdentifier("illuminaHumanv1.db")
     if (!exists("hmceuB36.2021")) data(hmceuB36.2021)
     cc = cisSnpTests(gs2~male, hmceuB36.2021, radius=1e5)
     lapply(cc, function(x) length(p.value(x@.Data[[1]])))
     cc = cisSnpTests(gs2~male, hmceuB36.2021, radius=1e6)
     lapply(cc, function(x) length(p.value(x@.Data[[1]])))

