## GARANT MACROS: writebest - example macro to write out assignments ## ## The macro writes out the current assignment in three forms: ## 1) the measured COSY, TOCSY and NOESY peaks together with ## their assignments, ## 2) lists of expected COSY, TOCSY and NOESY peaks, ## 3) an assignment report ## ## The following global variables are assumed to be defined: ## atomlist name of the atom list to be used for writing out peak ## lists ## dir path to be used for all files ## tocsypl name of assigned TOCSY peak list to write out ## cosypl name of assigned COSY peak list to write out ## noesypl name of assigned NOESY peak list to write out ## name suffix to be used for all written files reset possible assignments copyto possible assignments write peaks TOCSY $dir/{$tocsypl}_$name $dir/$atomlist write peaks COSY $dir/{$cosypl}_$name $dir/$atomlist write peaks NOESY $dir/{$noesypl}_$name $dir/$atomlist write expected peaks TOCSY $dir/E{$tocsypl}_$name $dir/$atomlist write expected peaks COSY $dir/E{$cosypl}_$name $dir/$atomlist write expected peaks NOESY $dir/E{$noesypl}_$name $dir/$atomlist report calculate write log $dir/$name report global report fragments report coherences H close log