Supplementary Data and Code for 

"Modularity of Stress Response Evolution" 

Amoolya H. Singh, Denise M. Wolf, Peggy Wang, Adam P. Arkin

University of California - Berkeley
Lawrence Berkeley Laboratory

http://genomics.lbl.gov/evmod/

All code is released under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.

Please see COPYING and COPYING.LESSER for details.

Queries to Amoolya Singh, <lastname>@embl.de

-------------------------------------------------------------------------------

* DOWNLOAD

Download EVMODULES.zip.  When unzipped, it has the the entire
directory structure you see here.

  db  -  general data files (species, trees, phenotypes, annotation labels)
  src -  Matlab scripts
  che -  data files for chemotaxis
  spo -  data files for sporulation
  com -  data files for competence
  COPYING, COPYING.LESSER - GNU Lesser General Public License
  README.txt  - this file
  matlab.el   - colorized Matlab fonts in Emacs
  methods_flowchart.tif (see below)

* RUN IT

- unzip EVMODULES.zip (tar xvzf EVMODULES.zip)
- start up Matlab
- cd src

If you want to repeat the entire analysis from the paper, run

- evmodules('che')
- evmodules('spo')
- evmodules('com')

If you are in a hurry and want to do further computations on each of
the pathways, simply 

- load che-cluster.mat
- load spo-cluster.mat
- load com-cluster.mat

to get all the data and variables from running evmodules on each
pathway.

* SYSTEM REQUIREMENTS

Working copy of Matlab including Statistics, Bioinformatics toolboxes.
This code was written using Matlab version 7 (R14).

* DOCUMENTATION

Please refer to methods_flowchart.tif for the relationships between
the different Matlab programs.

Excellent Matlab function documentation is available online:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtml
(If this link becomes outdated, start from www.mathworks.com.)

-------------------------------------------------------------------------------
* EYE RELIEF

To get pretty Emacs colors for Matlab, download "matlab.el" from the
top level directory add the following to your ~/.emacs file:

(global-font-lock-mode t)
(autoload 'matlab-mode "~/matlab.el" "Enter Matlab mode." t) 
(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist)) 
(autoload 'matlab-shell "~/matlab.el" "Interactive Matlab mode." t)

-------------------------------------------------------------------------------