I have a list of genes i.e.:

    FOXG1
    SNRNP70
    CREBBP
    JUN
    FHL1
    SNW1
    FHL3
    FHL2
    ...
    ...

My question is how can I use python or perl to automatically retrieve the corresponding accession numbers for the UniProt database? I'm looking for the name of the package and classes/methods as I'll be able to figure out the programming myself. I'm just having difficulties identifying the correct tools for the job.

Thanks
You can use one of the APIs for biomart. Here's <a href="http://www.ensembl.org/biomart/martview/e99bfa17814575e94e22563ca037c491?VIRTUALSCHEMANAME=default&ATTRIBUTES=hsapiens_gene_ensembl.default.feature_page.ensembl_gene_id|hsapiens_gene_ensembl.default.feature_page.uniprot_swissprot|hsapiens_gene_ensembl.default.feature_page.external_gene_name&FILTERS=hsapiens_gene_ensembl.default.filters.hgnc_symbol.&quot;FOXG1,SNRNP70,CREBBP,JUN,FHL1,SNW1,FHL3,FHL2&quot;&VISIBLEPANEL=filterpanel">an example query</a>, just click on the perl link for how to reproduce it with the perl API.
