Chris's scripts (mostly R) that may be of more general use.  NOT TESTED!