#!/bin/sh # Straightforward amore rotation function for a single model molecule # using Es (after Ian Tickle), somewhat automated. You can set the # parameters below as environment variables (see the toxd example). # Using Es rather than Fs is an improvement demonstrated in a CCP4 # newsletter article by Huub and Tickle. # It's possible (as originally) to do the RF by generating an HKLPCK0 # and HKLPCK1 for the target and model respectively, but a subsequent # TF needs the table from the sorting step. # Script by Dave Love, March, Nov. '95 # $Id: RF-with-Es,v 1.4 1995/11/29 18:40:32 fx Exp $ set -e ######### parameter section # Names of the data files: #modelpdb=${modelpdb:-$CEXAM/unix/runnable/1aal.brk} #mtzdata=${mtzdata:-$CEXAM/toxd/toxd.mtz} test "$modelpdb" = "" && echo "`basename $0`: Set variable modelpdb." && exit 1 test "$mtzdata" = "" && echo "`basename $0`: Set variable mtzdata." && exit 1 # Where to put the generated files. If you want to give them a unique # prefix, use something like OPDIR=./am1_ OPDIR=${OPDIR-"./"} # Column names in the $mtzdata file FPin=${FPin:-FP} SIGFPin=${SIGFPin:-SIG$FPin} # conventional derivation from FP # Resolution limits -- worth experimenting. hires=${hires:-3.0} lores=${lores:-10.0} # This is a factor by which to multiply the default integration radius # to try different radii (worth doing) . Rmult=${Rmult:-1.0} # Maximum BETA angle to consider. Set it to 90 if you have a 2 fold # axis perpendicular to the first rotation axis (e.g.in spacegroup # P212121, P6522, P41212 etc). If in doubt use 180. BMAX=${BMAX:-180} # If $keepmap is non-null the RF map won't be deleted. ############# you shouldn't need to touch below here # NB use an explicit extension for mtz and pdb file names. Otherwise, if # OPDIR contains a dot, the names will be taken as having an extension and # cuase considerable confusion. # Find the minimum dimension of the box containing the model and use # 75% of it for the integration radius $R (after IJT). Also provide # model cell dimensions for keyworded i/p as $CELL. eval `pdbset xyzin $modelpdb xyzout /dev/null ${OPDIR}solutionrc rm -f ${OPDIR}roting.log test "$keepmap" || rm -f ${OPDIR}data_ecalc_rotfun.map echo; echo "RF solutions are in ${OPDIR}solutionrc" rm -f ${OPDIR}model_rfcell.mtz ${OPDIR}model_rfcell.brk \ ${OPDIR}model_ecalc1.mtz ${OPDIR}data_ecalc.mtz ${OPDIR}model_ecalc.mtz #