Downloading fasta sequences for PDB IDs in bulk
3
0
Entering edit mode
9.0 years ago

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 • 7.4k views
ADD COMMENT
1
Entering edit mode
9.0 years ago

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

ADD COMMENT
0
Entering edit mode

Thanks for your reply,

Yes I have a text file with 3000 PDB IDs. I want 3000 fasta files of the corresponding IDs downloaded. Do you mean, I need to go to this website (which is not working) http://www.rcsb.org/pdb/files/fasta.txt?structureIdList={} and enter parallel -a pdb_list.txt curl -o {}.fasta?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

From Windows platform please?

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode
9.0 years ago
HG ★ 1.2k

Have a look

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

ADD COMMENT
0
Entering edit mode
9.0 years ago
sarahhunter ▴ 600

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

ADD COMMENT
0
Entering edit mode

Thanks,

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

ADD REPLY

Login before adding your answer.

Traffic: 1577 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