Downloading PDB files from BindingDB by script
0
0
Entering edit mode
7.0 years ago

Hello everyone,

I am trying to find a way to download PDB files of a proteins that have co-crystalized ligand by using BindingDB. So, I have a file of BindingDB IDS, and I want for each ID to download pdb files for each ligand that binds to that protein. Previously I was using a script to download directly specific PDB files from RSCB: PDB, but now I have to do the same, but I have BindingDB IDs.

Previous script that I've used looks like this:

#! usr/bin/perl -w

open (NDX, 'file.txt');
@ndx_ar = <NDX>;
close NDX;
$ndx_sz = scalar@ndx_ar;
for ($c = 0; $c < $ndx_sz; ++$c)
{
     chomp $ndx_ar[$c];
     if ($ndx_ar[$c] =~ /pdb/)
     {
      $ndx_ar[$c] =~ s/.pdb//;
      `wget 'http://www.pdb.org/pdb/download/downloadFile.do?fileFormat=pdb&compression=NO&structureId=$ndx_ar[$c]' -O $ndx_ar[$c].pdb`;
     }
     else
     {
      `wget 'http://www.pdb.org/pdb/download/downloadFile.do?fileFormat=pdb&compression=NO&structureId=$ndx_ar[$c]' -O $ndx_ar[$c].pdb`;
     }
}

exit;

Maybe some other way to download these data exists, but I couldn't find it so far.

Many thanks!

perl • 1.7k views
ADD COMMENT

Login before adding your answer.

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