getBM                package:biomaRt                R Documentation

_R_e_t_r_i_e_v_e_s _i_n_f_o_r_m_a_t_i_o_n _f_r_o_m _t_h_e _B_i_o_M_a_r_t _d_a_t_a_b_a_s_e

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

     This function retrieves information from the BioMart database

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

     getBM(attributes, filter, values, mart)

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

attributes: Attributes you want to retrieve.  A possible list of
          attributes can be retrieved using the function
          listAttributes.

  filter: Filter that should be used in the query.  A possible list of
          filters can be retrieved using the function listFilters.

  values: Values of the filter, e.g. list of affy id's

    mart: object of class Mart, containing connections to the BioMart
          databases.  You can creat such an object using the function
          useMart and update the mart object by selecting a dataset
          using the function useDataset.

_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()){
     marts<-listMarts()
     index<-grep("ensembl",marts)
     mart <- useMart(marts[index])
     datasets <- listDatasets(mart)
     mart<-useDataset("hsapiens_gene_ensembl",mart)

     getBM(attributes=c("external_gene_id","chr_name","band"),filter="affy_hg_u95_v2",values=c("1939_at","1503_at","1454_at"), mart=mart)

     martDisconnect(mart = mart)
     }

