org.EcK12.egACCNUM      package:org.EcK12.eg.db      R Documentation

_M_a_p _E_n_t_r_e_z _G_e_n_e _i_d_e_n_t_i_f_i_e_r_s _t_o _G_e_n_B_a_n_k _A_c_c_e_s_s_i_o_n _N_u_m_b_e_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     org.EcK12.egACCNUM is an R object that contains mappings between 
     Entrez Gene identifiers and GenBank accession numbers.

_D_e_t_a_i_l_s:

     This object is a simple mapping of Entrez Gene identifiers <URL:
     http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene> to all
     possible GenBank  accession numbers.

     Mappings were based on data provided by: Entrez Gene (
     ftp://ftp.ncbi.nlm.nih.gov/gene/DATA ) on 2008-Sep2

_E_x_a_m_p_l_e_s:

         x <- org.EcK12.egACCNUM
         # Get the entrez gene identifiers that are mapped to an ACCNUM
         mapped_genes <- mappedkeys(x)
         # Convert to a list
         xx <- as.list(x[mapped_genes])
         if(length(xx) > 0) {
           # Get the ACCNUM for the first five genes
           xx[1:5]
           # Get the first one
           xx[[1]]
         }
         #For the reverse map ACCNUM2EG:
         # Convert to a list
         xx <- as.list(org.EcK12.egACCNUM2EG)
         if(length(xx) > 0){
            # Gets the entrez gene identifiers for the first five Entrez Gene IDs
            xx[1:5]
            # Get the first one
            xx[[1]]
         }

