POP-OUT | CLOSE
 

Linking to the PDB through Your Browser

Articles in this newsletter have described the search query capabilities at the RCSB PDB site and have given a glimpse of extended capabilities that will become available in the future. However, a PDB user with a Web resource may wish to build structure retrieval mechanisms into the resource Web pages. To facilitate this type of activity, the CGI scripts at the RCSB PDB Web site may be used directly from a user's own Web page. For single structure retrieval, it is only necessary to provide an URL of the form

http://www.rcsb.org/pdb/cgi/explore.cgi?pdbId=XXXX

with the (case-insensitive) XXXX replaced by the four letter identification code for the respective entry. The URL will return to the browser the "Structure Explorer" page corresponding to that entry and this page allows a direct download of the corresponding cooordinate file. For example, the URL http://www.rcsb.org/pdb/cgi/explore.cgi?pdbId=2cpk will return the page on structure entry 2cpk.

An illustrative html code fragment that shows how to incorporate a CGI script at the RCSB PDB site for returning multiple entries to the browser is

<FORM ACTION="http://www.rcsb.org/pdb/cgi/import.cgi" METHOD="GET">
<INPUT TYPE="HIDDEN" VALUE="XXXX,XXXX,...." NAME="pdbIds">
<INPUT TYPE="SUBMIT" VALUE="Import to PDB">
</FORM>

in which the series of XXXX's may be replaced on the Web page by the four-letter identification codes for the required entries. This code fragment will create an "Import to PDB" button with an associated parameter field in which you may enter the PDB entry codes.

As a concrete example, the code fragment

<FORM ACTION="http://www.rcsb.org/pdb/cgi/import.cgi" METHOD="GET">
<SELECT NAME="pdbIds" SIZE="6" MULTIPLE>
<OPTION VALUE="2hhb">2hhb
<OPTION VALUE="3hhb">3hhb
<OPTION VALUE="4hhb">4hhb
<OPTION VALUE="1ber">1ber
<OPTION VALUE="9icg">9icg
<OPTION VALUE="1a02">1a02
</SELECT><INPUT TYPE="SUBMIT" VALUE="Import to PDB">

will create a utility function for selecting and returning information on any or all of the six defined structures.

More information on linking to the PDB may be found at http://www.rcsb.org/pdb/linking.html.