yarden/MISO — pull request #21 by ericsuh (2012-03-27 16:41:22+00:00)
Title: SGE/virtualenv compatability fixes, fixes to sashimi_plot for headless mode

SGE doesn't preserve local environmental variables, so to run MISO with `virtualenv`, the job script requires the ability to insert a "preflight" command to run the `activate` script. This adds a `preflight_cmd` setting to MISO which can insert arbitrary commands into the job script to execute before running MISO itself.

`sashimi_plot` doesn't require a GUI, so added a fix to the matplotlib import in order to use a headless image backend, thus obviating the need to do `ssh -X` on a remote server.