IUBio Biosequences .. Software .. Molbio soft .. Network News .. FTP

PDB Structures w/ SRS-WWW

Rodrigo Lopez rodrigol at biomaster.uio.no
Thu Oct 5 04:56:44 EST 1995

Here follows a simple modificatiom to the showpdb csh script that should
enable managers using the standard PDB distribution directories (i.e.
storing entries in various directories) to use the approach I posted 
yesterday to get SRS-WWW to 'serve' structures to a PDBviewer.
The original posting works if you have PDB in a single directory.

#!/sbin/csh -f

while ("$1" != "")
set tst=`echo $argv[1] | tr '[A-Z]' '[a-z]'`

echo Content-type: chemical/x-pdb;

# The following contains the absolute path of where you store
# the PDB distribution files. Uncomment the following line if
# you have PDB in a single directory.
# cat /usr3/PDB/"$tst"
# For PDB stored in various directories. Replace the period with
# the absolute path (where the top PDB distribution directory is)
# Could look somethin like this:
# find /databases/PDB -name "$tst" -print -exec cat {}\;

find . -name "$tst" -print -exec cat {}\;



More information about the Bio-srs mailing list

Send comments to us at biosci-help [At] net.bio.net