Find sum of residue based properties from a selection

This script was written specifically for  finding the sum of residue based indicators of quality of a homology model.  The actual residue- based properties that are summed can be easilly customized.   Currently SAS, pdf-total and pdf-PHPS are measured.  

The script should be run from a Discovery Studio script window.  The results are printed to the Output section of the script window.

If your interest is antibody loops have a look at   the SumAntibodyLoopProperties perl script.