findClosestGene             package:ACME             R Documentation

_F_i_n_d _c_l_o_s_e_s_t _r_e_f_s_e_q _g_e_n_e

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

     This function is used to find the nearest refseq transcript(s) to
     a point in the genome specified.  Note that it is limited to the
     refseq transcripts listed at genome.ucsc.edu, where this function
     goes for information.

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

     findClosestGene(chrom, pos, genome = "hg17", position = "txStart")

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

   chrom: Usually specified like 'chr1', 'chr2', etc. 

     pos: A position in base pairs in the genome 

  genome: Something like 'hg16', 'hg17', 'mm6', etc. 

position: The location to measure distance from: one of 'txStart',
          'txEnd', 'cdsStart', 'cdsEnd'

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

     The first time the function is run, it checks to see if the
     refflat table for the given genome is present in the package
     environment.  If not, it downloads it to the /tmp directory and
     gunzips it (using getRefflat.  It is then stored so that in future
     calls, there is no re-download required.

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

     A data frame with the gene name, refseq id(s), txStart, txEnd,
     cdsStart, cdsEnd, exon count, and distance.  Note that distance is
     measured as pos-position, so negative values mean that the point
     in the gene is to the left of the point specified in the function
     call (with the p-tel on the left).

_N_o_t_e:

     The function may return more than one transcript, as several
     transcripts may have the same start site

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

     Sean Davis <sdavis2@mail.nih.gov>

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

     findClosestGene('chr1',100000000,'hg17')

