This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Matching protein IDs starting with WP_ to protein IDs starting with YP_

Hi all,

I have annotated genomes where all CDS have protein IDs starting with YP (e.g., YP_005225157.1). Is there a way to automatically convert protein IDs that start with YP to those starting with WP, without the need to search for them manually in the database?

Thank you.

id protein refseq

1 answer

Using EntrezDirect:

$ esearch -db ipg -query "YP_005225157" | esummary | xtract -pattern DocumentSummary -element Accession
WP_002888811.1

$ esearch -db ipg -query "YP_005229578" | esummary | xtract -pattern DocumentSummary -element Accession
WP_004151534.1

Log in to answer this question.