Table Of Contents

Previous topic

Statistical Coupling Analysis in python.

Next topic

Getting Started

This Page


1. Downloading the code

The pySCA package, tutorials, and associated scripts are available for download from: yet to be determined website address

2. Package Dependencies

Before running pySCA, you will need to download and install the following (free) packages:

  1. Anaconda Scientific Python - this package will install python, as well as several libraries necessary for the operation of pySCA (NumPy, SciPy, iPython, and Matplotlib).

  2. Install biopython - this can be done in two ways:

    1. from the command line, run:

      >>> conda install biopython
    2. download (and install) from here:

  3. Install a robust pairwise alignment program. Either of the below will work with pySCA, in our hands ggsearch is fastest. This is critical for the script.

    1. ggsearch - part of the FASTA software package,
    2. needle - part of the EMBOSS software package,

    The following steps are optional but highly recommended.

  4. Download pfamseq.txt - a file containing phylogenetic annotations for PFAM sequences. This is necessary if you would like to annotate PFAM alignments with taxonomic/phylogenetic information using the script provided by pySCA.

  5. Install PyMol ( - necessary if you would like to use pySCA’s automated structure mapping scripts, and useful for mapping the sectors to structure in general

  6. Install mpld3 ( - a package that allows more interactive plot visualization in ipython notebooks . If you choose not to install this (optional) package, you will need to comment out the line “import mpld3” at the beginning of the tutorials.

3. Path Modifications

Following the successful installation of these packages, edit the following variables in the “PATHS” of to reflect the locations of these files on your computer:

path2pfamseq = ‘pfamseq.txt’ location of the pfam.seq database file

path2structures = ‘Inputs/’ location of your PDB structures for analysis

path2pymol = ‘/Applications/’ location of your PyMOL executable

path2needle = ‘/usr/local/bin’ location of the needle executable, if you have installed EMBOSS needle

You may also need to modify the “shebang” line (!#) at the top of the following scripts to appropriately reflect the path of your python installation:

4. Getting started and Running the tutorials

The “getting started” section of this documentation provides instructions on how to run some initial calculations and the tutorials.

All tutorials are written as ipython notebooks. For more on how ipython notebooks work, see: To begin the tutorial in interactive python from the command line, type:

>>> ipython notebook script_dhfr.ipynb