Data analysis code for the myconnectome project
The goal of this project is to demonstrate reproducible analysis for a large and complex dataset. The package provides a set of scripts that will implement all of the statistical analyses and some of the preprocessing steps for the data from the MyConnectome study, as reported by Poldrack et al. (submitted). Code is not currently included for the cortical parcellation steps that were performed at Washington University, which is available [here] (http://www.nil.wustl.edu/labs/petersen/Resources_files/Surface_parcellation_distribute.zip).
Users who wish to use this package in a turnkey fashion should try the Myconnectome-VM which will automatically set up a virtual machine that will complete the full statistical analysis workflow.
The code shared here requires a number of dependencies:
If you don't already have a scientific Python distribution installed, I would recommend Anaconda. Beyond the standard scientific Python stack, a number of additional packages are required, which you can install using the following set of commands (assuming that you have Anaconda already installed):
pip install setuptools
conda install --yes pip numpy scipy nose traits networkx
conda install --yes dateutil ipython-notebook matplotlib
conda install --yes statsmodels boto pandas scikit-learn
pip install nibabel
pip install gtf_to_genes
pip install suds
pip install mygene
The packages used here require R 3.0 or greater; I would recommend installing the latest version from CRAN. The R scripts in the package will attempt to automatically install all necessary packages, so you shouldn't need to install any additional packages yourself.
Some of the processing operations require the [Connectome Workbench] (http://www.humanconnectome.org/software/get-connectome-workbench.html), which can also be used to visualize the surface-based results.
Some of the resting fMRI processing operations using MATLAB with the Brain Connectivity Toolbox. If you wish for those to be completed on your machine, you must have MATLAB installed with the BCT in your MATLAB path. If MATLAB is not installed, then those results will be downloaded directly from our archive.
To install the package, first clone it to your local machine:
git clone https://github.com/poldrack/myconnectome.git
Then run the setup script:
cd myconnectome
python setup.py install
Once this is installed, you need to set some environment variables: