snpsNear               package:GGBase               R Documentation

_o_b_t_a_i_n _l_i_s_t _o_f _r_s _n_u_m_b_e_r_s _f_o_r _s_n_p_s _n_e_a_r _a _g_e_n_e

_D_e_s_c_r_i_p_t_i_o_n:

     obtain list of rs numbers for snps near a gene

_U_s_a_g_e:

     snpsNear(sym, radius=1e+05, chrnum)

_A_r_g_u_m_e_n_t_s:

     sym: instance of genesym class [e.g., use genesym(string) for gene
          'string'], or of rsid class, or of numeric class

  radius: number of base-pairs in each direction to look

  chrnum: chrnum instance .. optional

_D_e_t_a_i_l_s:

     simple arithmetic based on output of snpLocs.Hs

_V_a_l_u_e:

     character vector of rsxxxxxx, dbSNP id, according to locations
     from SNPlocs.Hsapiens.dbSNP.20071016 package, as transferred to
     snpLocs.Hs resource in GGBase

_N_o_t_e:

     first invocation can take longer than subsequent, if snpLocs.Hs
     has not been invoked previously

_A_u_t_h_o_r(_s):

     Vince Carey <stvjc@channing.harvard.edu>

_E_x_a_m_p_l_e_s:

     nearc = snpsNear(genesym("CPNE1"), 10000, chrnum(20))
     library(GGtools)
     data(hmceuB36.2021)
     ss = smList(hmceuB36.2021)[[1]]
     # following calculation requires new "[" for j an instance of rsid
     clo = ss[ , rsid(snpsNear(rsid("rs6060535"), rad=1500, chrnum(20))) ]
     clo

