This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Parsing uniprot gene names to get the correspondng entry names

I have a list of several human gene names (in a text file). Is it possible to get the corresponding entry names in UniProt and save them to another text file, using python for example?

uniprot

It seems from your comment below that by "gene names" you mean "Ensembl gene symbols". And by "uniprot entry names" you mean - what? IDs, such as P09874, or names such as PARP1_HUMAN?

Once your terms are defined correctly, we can craft an answer (which, by the way, is "BioMart").

Awesome thank you!
I'm trying the BioMart conversion from Ensembl Gene ID to UniProt/SwissProt ID.

2 answers

Why not just use the ID mapping service on the front page of http://www.uniprot.org/ ?

Because I have a file containing 27k queries, but the mapping system can only detect matches to 17k of them. My original file contains Ensembl identifiers for genes. For example, ENSG00000203815 appears in the unmapped list, even though a match is found in Ensembl: http://www.ensembl.org/Multi/Search/Results?q=ENSG00000203815;site=ensembl

I have two files to compare to uniprot in order to download the txt related page.

Thank you for your time.

ENSG00000203815 cannot be mapped to UniProt by the IDmapping service because this identifier is not in the current EnsEMBL database - it has been deprecated:

http://www.ensembl.org/Homo_sapiens/Gene/Idhistory?g=ENSG00000203815

Log in to answer this question.