This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to download sequence of a protein from all available species from NCBI?

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

Not R but you can use EntrezDirect:

esearch -db protein -query "dnaK" | efetch -format fasta > protein.fa

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

0 answers

No answers yet.

Log in to answer this question.