View on GitHub

Bss

bss

Download this project as a .zip file Download this project as a tar.gz file

BrainSuite 2013 Statistics Toolbox (bss)


The BrainSuite statistics toolbox allows the application of advanced statistical models to surface and curve based outputs generated from BrainSuite. This enables population or group modeling of cortical or sulcal morphology. Some features of the toolbox are:

Download

Currently download from https://bitbucket.org/bmapdev/bss/

Requirements (short version)

Requirements (long version)

To stick to a pure python execution, one could skip installing R, and Rpy2. However, in our benchmarks, Rpy2+R currently shows the best performance.

Thus, to get all the functionality of the toolbox, it is recommended to install the following software on your computer.

NOTE: Alternately, you could download Canopy express, a comprehensive python framework geared towards scientifc computing, available for free.

Installation for Mac OSX/Linux - Approach 1

To be followed if all the requirements above are satisfied.

It is recommended to create a virtual python environment in your BrainSuite directory.

For e.g., if your BrainSuite installation is located at /Applications/Brainsuite13a, and the unzipped bss package is located at ~/bss-0.1dev, then open the terminal and type

virtualenv --system-site-packages /Applications/Brainsuite13a/bssenv
/Applications/Brainsuite13a/bssenv/bin/python ~/bss-0.1dev/setup.py install

Installation for Mac OSX/Linux - Approach 2

To be developed.

Bootstrap everything. Start with a basic python installation

Create a virtualenv in the BrainSuite directory

Install all the packages in virtualenv

Install the bss package in virtualenv

Example for running ANOVA for model comparison

The source package includes a test directory with sample data. Assuming the unzipped source directory is located at: ~/bmapdev-bss, open the file

~/bmapdev-bss/bss/test/data/sample1/modelspec.ini

and change the respective paths for the variables

subjectdir, demographics, phenotype_attribute_matrix, atlas_surface

to correspond to the paths on your file system. Then type,

/Applications/Brainsuite13a/bssenv/bin/bss_model.py -modelspec
~/bmapdev-bss/bss/test/data/sample1/modelspec.ini -outdir ~/ -statsengine R

License

BrainSuite/MIT