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, mart)

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

      id: gene identifier

    type: type of identifier, value should be either entrezgene, embl,
          hugo, ensembl, unigene, agilentprobe 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()

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

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

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

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

     if(interactive()){

     mart = useMart("ensembl", dataset="hsapiens_gene_ensembl")

     #example using affy id

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

     #example using Entrez Gene id

     g = getGene( id = "100", type = "entrezgene", mart = mart)
     show(g)

     martDisconnect(mart = mart)

     }

