ZDOCK Analysis - find poses with specified residues in the binding interface

Both Dock Proteins (ZDOCK) and Process Poses (ZDOCK) have options to select a set of residues to filter the resulting poses against. However, if you specify more than one residue as the Site Residues, the poses which are returned will contain ALL the specified residues.
Often times you will want to list the poses that contain the specified residues (in the interface) regardless of whether all specified residues are there. This script produces a text file with a list of poses for each selected residue. Here's an excerpt of such a file:

2ptn::VAL90
Pose11
Pose18
Pose22
Pose50

2sta_I:I:ASP513
Pose2
Pose5
Pose12

In addition to the text file, new attribute columns (one per selected residue) are added to the ProteinPose tab of the active window's Data Table. In these new attributes, a cell is filled with the value '1' if that pose has the specified residue in it's binding interface. A convenient way to then view this information would be to select all the newly created attributes and create a Heat Map.

Note, this script is intended for use with DS 2.0