Switch between two versions of FSL

Last updated: Mon, 20 Feb 2017 14:06:26 GMT 0 comments

Most of the times we can rely on a single version of FSL. But recently I have been developing an update for FEAT (more info here), and needed to temporary switch between:

  1. FSL 5.0.9 (installed on my system);
  2. the patched FSL I was working on.

This short snippet allows to switch between the main FSL installation (available by default) and the development FSL version (available at /Users/cmaumet/Softs/external/fsl_patched):

export FSLDIR=/Users/cmaumet/Softs/external/fsl_patched
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
. ${FSLDIR}/etc/fslconf/fsl.sh