Read and Write Restraint files for Discovery Studio

Discovery Studio will save any restraints (constraints) that have been defined for a molecule when it is saved as a DSV or MSV format file.    However, there are times when it is useful to save restraints to an ascii file and load them back (assuming the latter structure is identical except for the conformation).  This capability also allows restraints to be defined in a text editor or copied from a reference then applied to a molecule.

This script was originally written to be able to visualze restraints created for standalone CHARMM and CNX by moving them into Discovery Studio and visualizing by color coding the degree to which the restraints were statisfied.   The reader  DOES NOT handle all native CNX or CHARMM restraint types (there are very very many forms and speciallized wildcards), but it does I believe handle the common ones.

The asci restraint file format can be in CHARMM, CNX, or a hopefully easy to learn "free" format.