Differences between revisions 47 and 53 (spanning 6 versions)
Revision 47 as of 2017-03-14 13:04:25
Size: 4576
Editor: ZekeKaufman
Comment:
Revision 53 as of 2017-03-30 11:01:12
Size: 5387
Editor: ZekeKaufman
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
 * Laptops/workstations should have the Freesurfer v6 [[https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall|Freesurfer v6]] installed. [[ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/tutorial_versions/|Development Version]] of freesurfer installed either locally, or via a central server.  * Laptops/workstations should have [[https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall|Freesurfer v6]] installed.
Line 15: Line 15:
 * ''Optional:'' If the course is doing the [[FsFastTutorial|FSFAST]] tutorial, than laptops should have the [[http://www.mathworks.com/products/compiler/mcr/|Matlab runtime]] installed (version 8.3, no license required). However, the commands requiring Matlab have been marked and can be skipped because the output data has already been provided. So Matlab is not an absolute requirement.  * Laptops/workstations should have [[http://www.mathworks.com/products/compiler/mcr/|Matlab runtime]] version 8.3 installed (no license required). (Matlab is required for the [[FsFastTutorial|FSFAST]] only, and the commands requiring Matlab have been marked and can be skipped because the output data has already been provided. So Matlab is not an absolute requirement.)

 * A prepackaged tarball has been created which contains Freesurfer v6, FSL, and the Matlab runtime, (along with a custom {{{.bashrc}}} file), so that all these packages can be installed in one step. This tarball can be downloaded from the following link:

 [[ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/tutorial_packages/centos6/freesurfer-fsl-matlab-Linux-centos6_x86_64-stable-pub-v6.0.0-tutorial.tar.gz|freesurfer-fsl-matlab-Linux-centos6_x86_64-stable-pub-v6.0.0-tutorial.tar.gz]]
Line 18: Line 23:
 * Laptops/workstations should have access to the "Lightweight" version of freesurfer [[FsTutorial/Data|tutorial data]] either downloaded locally, or via a central server, or external storage device (thumb drive, external hard drive, etc). Note that it is important for each laptop to have access its own sandboxed version of the data, with read/write access, because course participants will be creating files within their workspace. ## * Laptops/workstations should have access to the "Lightweight" version of freesurfer [[FsTutorial/Data|tutorial data]] either downloaded locally, or via a central server, or external storage device (thumb drive, external hard drive, etc). Note that it is important for each laptop to have access its own sandboxed version of the data, with read/write access, because course participants will be creating files within their workspace.
 * See the [[FsTutorial/Data|Data]] page for intructions on how to download and install the various datasets required to do the tutorials. Because some of the data files are modified during the tutorials, each workstation will need access to its own version of the data set.
Line 21: Line 27:
 * The following lines should be added to a {{{.bashrc}}} file in the users home directory so that freesurfer is automatically sourced (and other environment variables set) whenever a terminal window is opened.
Line 23: Line 28:
{{{  * A {{{.basrch}}} file comes with the Freesurfer/FSL/Matlab runtime package from above. The course administrator should link either link the users {{{.bashrc}}} to the one in the freesurfer installation:

 {{{
cd ~
ln -s freesurfer/.bashrc
 }}}

 or copy its contents into the users already existing {{{.bashrc}}} file:

 {{{
## set deflaut location of freesurfer
FSHOME=~/freesurfer
Line 25: Line 42:
export TUTORIAL_DATA=<location_of_tutorial_data> export TUTORIAL_DATA=~/tutorial_data
Line 28: Line 45:
export FSLDIR=<location_of_fsl_installation> export FSLDIR=$FSHOME/fsl_507
Line 31: Line 48:
export FS_MCRROOT=<location_of_matlab_installation> export FS_MCRROOT=$FSHOME/MCRv83/v83
Line 35: Line 52:
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu":"/lib/x86_64-linux-gnu":"$LD_LIBRARY_PATH"
Line 40: Line 58:
export FREESURFER_HOME=<location_of_freesurfer_installation> export FREESURFER_HOME=$FSHOME
Line 42: Line 60:
}}}  }}}
Line 46: Line 64:
{{{  {{{
Line 51: Line 69:
}}}  }}}
Line 53: Line 71:
 * A more automated way to test your setup is to run the [[https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/patches/test_tutorials.sh|test_tutorials.sh]] script. The script can be run in the following ways (after sourcing freesurfer and properly setting TUTORIAL_DATA): ## * A more automated way to test your setup is to run the [[https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/patches/test_tutorials.sh|test_tutorials.sh]] script. The script can be run in the following ways (after sourcing freesurfer and properly setting TUTORIAL_DATA):
Line 55: Line 73:
{{{ ##{{{
Line 57: Line 75:
$> test_tutorials.sh -quick ## $> test_tutorials.sh -quick
Line 63: Line 81:
$> test_tutorials.sh -multimodal ## $> test_tutorials.sh -multimodal
Line 66: Line 84:
$> test_tutorials.sh -tracula ## $> test_tutorials.sh -tracula
Line 69: Line 87:
$> test_tutorials.sh -help
}}}
## $> test_tutorials.sh -help
##}}}

FreeSurfer Course Setup

This purpose of this page is to describe how one would go about setting up laptops (or workstations) for a Freesurfer course.

Hardware

  • Laptops/workstations should have an Operating System and hardware which meet or exceed the recommended System Requirements for running freesurfer.

  • Laptops/workstations should have internet access. (For following course tutorials and performing last minute updates of the data set)
  • In addition to the listed System Requirements, laptops should have 17" screens to facilitate viewing of images on the screen.

Software

  • Laptops/workstations should have Freesurfer v6 installed.

  • Laptops/workstations should have a recent version of FSL installed. (FSL is required for the Diffusion and TRACULA tutorials)

  • Laptops/workstations should have Matlab runtime version 8.3 installed (no license required). (Matlab is required for the FSFAST only, and the commands requiring Matlab have been marked and can be skipped because the output data has already been provided. So Matlab is not an absolute requirement.)

  • A prepackaged tarball has been created which contains Freesurfer v6, FSL, and the Matlab runtime, (along with a custom .bashrc file), so that all these packages can be installed in one step. This tarball can be downloaded from the following link:

    freesurfer-fsl-matlab-Linux-centos6_x86_64-stable-pub-v6.0.0-tutorial.tar.gz

Tutorial Data

  • See the Data page for intructions on how to download and install the various datasets required to do the tutorials. Because some of the data files are modified during the tutorials, each workstation will need access to its own version of the data set.

Startup Script

  • A .basrch file comes with the Freesurfer/FSL/Matlab runtime package from above. The course administrator should link either link the users .bashrc to the one in the freesurfer installation:

    cd ~
    ln -s freesurfer/.bashrc

    or copy its contents into the users already existing .bashrc file:

    ## set deflaut location of freesurfer
    FSHOME=~/freesurfer
    
    ## Set location of tutorial data
    export TUTORIAL_DATA=~/tutorial_data
    
    ## Set location of FSL (Required for Diffusion and TRACULA tutorials only)
    export FSLDIR=$FSHOME/fsl_507
    
    ## Set location of Matlab and other Matlab/FSFAST related variables (Required for FSFAST tutorial only)
    export FS_MCRROOT=$FSHOME/MCRv83/v83
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$FS_MCRROOT/runtime/glnxa64"
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$FS_MCRROOT/bin/glnxa64"
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$FS_MCRROOT/sys/os/glnxa64"
    export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu":"/lib/x86_64-linux-gnu":"$LD_LIBRARY_PATH"
    export FS_SPMREG_USE_BIN=1
    export FS_MKCON_USE_BIN=1
    export FS_SXA3_USE_BIN=1
    
    ## Source freesurfer
    export FREESURFER_HOME=$FSHOME
    source $FREESURFER_HOME/SetUpFreeSurfer.sh

Testing

  • Make sure the TUTORIAL_DATA environment variable is set correctly by typing ls $TUTORIAL_DATA in a terminal window. You should see the output below:

    $> ls $TUTORIAL_DATA
    buckner_data                    fsfast-functional
    diffusion_recons                fsfast-tutorial.subjects
    diffusion_tutorial              long-tutorial
  • Once you verify freesurfer is sourced correctly and the TUTORIAL_DATA environment variable is set correctly, the best and most reliable way to test your setup is simply to run thru one or more of the tutorials.

FsTutorial/CourseLaptopSetup (last edited 2017-03-30 11:01:12 by ZekeKaufman)