Hmmm - ccp4bb doesn't allow an attachement ... so script comes here:

---------------------- cut here ---------------------------
#!/bin/sh

[ $# -eq 0 ] && echo " ERROR: give some PDB identifier as argument"

type tkdiff >/dev/null 2>&1
[ $? -eq 0 ] && diff=tkdiff || diff=diff

for id in $@
do
  id=`echo $id | tr '[A-Z]' '[a-z]'`
  [ ! -f pdb${id}.ent.Z ] && \
    wget 
ftp://ftp.ebi.ac.uk/pub/databases/rcsb/pdb/data/structures/all/pdb/pdb${id}.ent.Z
  [ ! -f pdb${id}.ent.gz ] && \
    wget 
ftp://ftp.ebi.ac.uk/pub/databases/rcsb/pdb-remediated/data/structures/all/pdb/pdb${id}.ent.gz
  zcat pdb${id}.ent.Z > ${id}.v2.pdb
  gunzip -c pdb${id}.ent.gz > ${id}.v3.pdb
  echo "$diff ${id}.v2.pdb ${id}.v3.pdb   Continue?"
  read m
  $diff ${id}.v2.pdb ${id}.v3.pdb
done
---------------------- cut here ---------------------------


-- 

***************************************************************
* Clemens Vonrhein, Ph.D.     vonrhein AT GlobalPhasing DOT com
*
*  Global Phasing Ltd.
*  Sheraton House, Castle Park 
*  Cambridge CB3 0AX, UK
*--------------------------------------------------------------
* BUSTER Development Group      (http://www.globalphasing.com)
***************************************************************

Reply via email to