getGene               package:biomaRt               R Documentation

_R_e_t_r_i_e_v_e_s _G_e_n_e _i_n_f_o_r_m_a_t_i_o_n

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

     This function function retrieves gene information from Ensemble
     given a gene identifier

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

     getGene( id, type, array, species, db = "ensembl", mart)

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

      id: gene identifier

    type: type of identifier, value should be either affy, entrezgene,
          embl, hugo, ensembl or refseq

   array: array identifier only to be used if gene identifiers are from
          affy arrays. An overview of the accepted identifiers can be
          obtained with the function: getAffyArrays()

 species: species, only to be used if type equals locuslink.  Accepted
          values for species can be retrieved with the function
          getSpecies()

      db: database you want to query either ensembl (default) or vega

    mart: object of class Mart, containing connections to the BioMart
          databases.  You can creat such an object using the function
          martConnect.

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

     Steffen Durinck, <URL: http://www.esat.kuleuven.ac.be/~sdurinck>

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

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

     if(interactive()){

     mart <- martConnect( biomarts = c("ensembl","vega"))

     #example using affy id from Ensembl

     g = getGene( id = "1939_at", array = "hg_u95av2", mart = mart)
     show(g)

     #example using locuslink id from vega

     g = getGene( id = 100, type = "entrezgene", species = "hsapiens", db = "vega", mart = mart)
     show(g)

     martDisconnect(mart = mart)

     }

