This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Downloading fasta sequences for PDB IDs in bulk

Hello,

I have a list of 3000 pdb IDs, for which I need (1) fasta sequences from PDB and (2) Uniprot sequences. Is there a simpler way of downloading the sequences instead of manually downloading for each ID?

thanks in advance!

sequence

3 answers

Lets say you have a txt file with pdb IDs:

2AID
4RLB

You can do something like:

parallel -a pdb_list.txt curl -o {}.fasta http://www.rcsb.org/pdb/files/fasta.txt?structureIdList={}

If you do not have parallel:

while read line; do curl -o ${line}.fasta http://www.rcsb.org/pdb/files/fasta.txt?structureIdList=${line}; done < pdb_list.txt

Try similar approach for Uniprot

No. Please do it from your terminal on Mac or Linux

The uniprot facility which I link to below is web-based and therefore works for any platform. The limit of number of IDs you can give (in a file) is in the 10s of thousands, so you shouldn't have a problem. If you do, contact uniprot help.

Have a look

http://seqanswers.com/forums/showthread.php?p=149802

Uniprot provides a facility to do bulk download through their website.

http://www.uniprot.org/uploadlists/

Through this feature you can get any sequence contained within the uniparc archive, including PDBseqs

Thanks,

Can you help me downloading the PDB fasta sequences if PDB IDs are submitted?

Log in to answer this question.