(Logo) RasMol and Kinemages


IndexIndex to Course Material IndexIndex to Section 6 BackMovies NextOther Multimedia


The chemical/x-pdb, chemical/x-kinemage and other chemical-MIME types can be used to good effect in your documents, so long as whoever is reading them has the appropriate software installed and their WWW browser correctly configured.

RasMol

(N.B. before reading the following section, make sure you have RasMol installed as a helper application for your WWW client, configured for the chemical/x-pdb MIME-type. Refer to "Chemical MIME on the course technology page if necessary.

Existing Structures in the Protein Data Bank

If you wish to include a structure which is included in the PDB, you can give the absolute URL of the PDB file at Birkbeck:
http://www.cryst.bbk.ac.uk/PDB/pdb****.pdb
where **** is the 4-letter code. For example: http://www.cryst.bbk.ac.uk/PDB/pdb2ovo.pdb (a 57 Kb file)

When someone clicks on a link to such a URL, the PDB file will be served by the Birkbeck Crystallography WWW Server, stamped with the appropriate chemical-MIME type.

This is because the Crystallography server is configured to stamp all files which have the .pdb extension with the MIME-type chemical/x-pdb.

At the Brookhaven National Laboratories Protein Data Bank itself, you can obtain a PDB file from their WWW Server with a slightly more complex URL, because it involves sending a query to cgi-bin software (refer to the notes on WWW Server configuration). This is very useful because you can request the server to deliver the file either as plain text, or stamped with chemical-MIME.

The URL for the chemical-MIME file is:

http://www.pdb.bnl.gov/cgi-bin/get-pdb-entry?id=****&type=view&encoding=none
For plain text, replace &type=view with &type=text. E.g. http://www.pdb.bnl.gov/cgi-bin/get-pdb-entry?id=2ovo&type=view&encoding=none fires up RasMol, while http://www.pdb.bnl.gov/cgi-bin/get-pdb-entry?id=2ovo&type=text&encoding=none gives the file as text.

A similar principle operates at ExPASy, where

http://expasy.hcuge.ch/cgi-bin/get-pdb-entry-rasmol?2ovo
chemical-MIME stamps the file, and
http://expasy.hcuge.ch/cgi-bin/get-pdb-entry?2ovo
delivers the text.

If you want to serve a chemical-MIME stamped copy of a .pdb file stored locally on your own server (you would have to do this for any PDB-format files you might make yourslef, for example), then your server must be configured to do so- otherwise it will be served as plain text. Therefore, ask your 'Web-Person' about this.

RasMol Scripts

You can do much more than simply reference the MIME-stamped PDB file, however. You can write RasMol scripts which are equivalent to typing in commands at the RasMol command line prompt. As long as you are familiar with RasMol commands, producing scripts is very easy. You can even type write script <filename>, which will write a script to generate the current view in the RasMol display window. RasMol scripts are very useful as they enable you to deliver a structure to the reader, with particular elements highlighted in the manner you wish.

Getting these scripts delivered in the appropriate manner to whoever is browsing your hyperdocument is more difficult.

For example, the Birkbeck Crystallography server stamps files with the extension '.ras' with the MIME type chemical/x-ras, which means 'rasmol script file'. If the reader has his or her client configured correctly, i.e. to start RasMol and automatically read in the contents of the script, then they will get the desired result.

For example, for Unixsystems, the required line in .mailcap would be something like

chemical/x-ras; xterm  -e /local/IRIX52/bin/rasmol8 -script %s
The important thing here is the '-script' parameter.


IndexIndex to Course Material IndexIndex to Section 6 BackMovies NextOther Multimedia

Last updated 18th Mar '96