Here are some scripts for running the same calculations as WebMOTIFS on a local computer.

The scripts (including a readme)
Some background and randomization calculations

These scripts are new, and despite my best efforts probably contain some bugs. If you have problems, please contact tamo@mit.edu and I'll fix them ASAP.