How to download sequence of a protein from all available species from NCBI?
0
0
Entering edit mode
3.3 years ago

I want to download sequences from all available species in NCBI protein database for one particular protein. Any available methods in R? It takes a long time doing it manually.

NCBI protein sequence R • 623 views
ADD COMMENT
0
Entering edit mode

Not R but you can use EntrezDirect:

esearch -db protein -query "dnaK" | efetch -format fasta > protein.fa
ADD REPLY
0
Entering edit mode

You can use the package Rentrez in R with a similar syntax to what @GenoMax suggested.

ADD REPLY

Login before adding your answer.

Traffic: 1468 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6