This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can I easily download the LOC... numbers of the genes of my peptide sequences?

Can I easily download the LOC... numbers of the genes of the peptide sequences? Anyone know about this? Or should I do it by entering the XP codes one by one?

gene loc peptid

Provide examples of XP id's and I can possibly show you one way.

XP_021978004.1 XP_021981154.1 XP_021981634.1 XP_021982728.1 XP_021982746.1 XP_021983621.1

they are some example XP codes.

1 answer

Using Entrezdirect:

$ for i in `cat id`; do printf "${i}\t"; esearch -db protein -query ${i} | elink -target gene | esummary | xtract -pattern DocumentSummary -element Name; done
XP_021978004.1  LOC110873394
XP_021981154.1  LOC110877312
XP_021981634.1  LOC110877745
XP_021982728.1  LOC110878680
XP_021982746.1  LOC110878702
XP_021983621.1  LOC110879465

id file contained your identifiers. One per line.

I can get their LOC number from gene search. Can i get them easily? u know?

See updated answer above.

Yes, i saw. Did you use a program like R or from NCBI?

From NCBI. It is linked above.

Log in to answer this question.