Help with getting the whole pdb data from rcsb for further parsing
0
0
Entering edit mode
7.4 years ago
Ali HEBRA • 0

Hi biostars Currently, I have decided to evaluate a docking program by inputting some PDB files from rcsb.org. I have written this piece of code of PHP but I don't know why it doesn't work at all for getting the pdb data from RCSB?

$identifier = "2efj" $web = "http://www.rcsb.org/pdb/explore/explore.do?structureId=" . $identifier; $handle = file_get_contents($web); if ($handle !== false) { $filename = "sequences/" . $identifier . ".html";
$f=@fopen($filename,"a"); fwrite($f,$handle); fclose($f);

Is there any way to get the whole RCSB page and it's contents? Note that i don't want to have just .pdb files, and I need the informations like PMID, Images and other fields of the main page. look the : "http://www.rcsb.org/pdb/explore/explore.do?structureId=2efj" for instance I really appreciate your help to solve this stupid problem :-)

software error • 1.2k views
ADD COMMENT

Login before adding your answer.

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