#!/bin/sh -f
# example script showing how autobuster can be run
# setup autoBUSTER 
. $BDG_home/setup.sh
# write results to a directory:
RESULTDIR="ab_runs/"$0"_result"
# 
(time refine                                    \
   -p 1osg_stripHOH_Brefine.pdb                 \
   -m 1osg.mtz                                  \
   -B "individual"  -noWAT  -r 0.006            \
   -d $RESULTDIR                                \
  ) > $0".log"
if [ $? -ne 0 ]
then
  exit 1;
fi
# copy out the pdb and mtz files to this directory.
cp $RESULTDIR"/refine.pdb" $0"_refine.pdb"
cp $RESULTDIR"/refine.mtz" $0"_refine.mtz"
