This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to bioinformatically locate information about genes (and corresponding proteins) given the gene name only?

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

protein gene perl python api

2 answers

You can use one of the APIs for biomart. Here's an example query, just click on the perl link for how to reproduce it with the perl API.

Have a look at this page:

http://www.uniprot.org/help/gene_symbol_mapping

Log in to answer this question.