Skip to content

VISTASOFT is the main software repository of the VISTA lab at Stanford University.

Notifications You must be signed in to change notification settings


Repository files navigation


VISTASOFT is the main software repository of the Vista lab at Stanford University. It contains Matlab code to perform a variety of analysis on MRI data, including functional MRI and diffusion MRI.


(c) Vista lab, Stanford University.

Unless otherwise noted, all our code is released under the GPL


Vistasoft contains the following modules:

  • mrAlign : Aligning functional and anatomical data
  • mrAnatomy: Handling anatomical MRI data.
  • mrBOLD : analysis of functional MRI data.
  • mrDiffusion : Diffusion MRI, including DTI and tractography.
  • mrMesh : displaying MR data on rendered 3D surface representations of the brain.
  • mrQuant : quantitative MRI (see also mrQ)
  • mrScripts : a variety of useful scripts

And in addition:

  • utilities
  • setup
  • tutorials
  • external: functions written by others that we use as dependencies (see optional packages).

External dependencies

Vistasoft depends on the following packages:

  • Matlab
    • The code has been validated for Matlab 2014b (8.4) - Matlab 2017b (9.3)
  • SPM

Optional Packages


For detailed documentation, please visit the VISTA lab wiki.


To install Vistasoft:

  1. Clone the Vistasoft repository on your local machine; for example:

    > cd ~/matlab
    > git clone
  2. Start Matlab and Add the Vistasoft repository's base directory to your Matlab path:


    Note that if you have installed additional Matlab packages (such as the RemoteDataToolbox), you will have to ensure that these packages are on your path as well.

For help with the new mrInit intialization method, please see the Initialization Page.