Slicer: Difference between revisions

From CCN Wiki
Jump to navigation Jump to search
(Created page with "Slicer is a graphical linux utility for manipulating structural MRI data. We use it for converting between data formats. It is run from the Linux command-line. To check if it...")
 
No edit summary
Line 12: Line 12:
#Open the anatomical file
#Open the anatomical file
#*File > Add Data > choose File(s) to add
#*File > Add Data > choose File(s) to add
#*Navigate to MPRAGE folder select orig.nii or highres00*.nii
#*Navigate to MPRAGE folder select the source .nii file
#Re-save the file as a .mgz file:
#Re-save the file as a .mgz file:
#*File > Save (screenshot forthcoming of dialog box: select .mgz filetype, and uncheck the Scene checkbox so that only the file is saved)
#*File > Save (screenshot forthcoming of dialog box: select .mgz filetype, and uncheck the Scene checkbox so that only the file is saved)

Revision as of 09:43, 6 April 2016

Slicer is a graphical linux utility for manipulating structural MRI data. We use it for converting between data formats. It is run from the Linux command-line.

To check if it is installed, open up a Linux terminal and type:

Slicer

If you get a message indicating that the command can't be found, see the instructions below for installation and/or ask for help from a lab administrator.

If Slicer is in your path, you can run slicer from the console

Slicer

Alternately, if it’s not, you should be able to run it specifying the complete path:

/opt/Slicer-4.5.0-1-linux-amd64/Slicer
  1. Open the anatomical file
    • File > Add Data > choose File(s) to add
    • Navigate to MPRAGE folder select the source .nii file
  2. Re-save the file as a .mgz file:
    • File > Save (screenshot forthcoming of dialog box: select .mgz filetype, and uncheck the Scene checkbox so that only the file is saved)

You should now have filename.nii.mgz alongside the original files

Installing Slicer

Visit http://download.slicer.org/ and get the latest stable build (the examples below assume the most stable build is Slicer-4.5.0-1, so edit the commands below as appropriate). Unzip the tarball

tar -xzvf Slicer-*.tar.gz

Move the unzipped directory to /opt/

sudo mv Slicer-4.5.0-1-linux-amd64 /opt/

Edit your ~/.bashrc file to put the directory in your path

PATH=/opt/Slicer-4.5.0-1-linux-amd64:${PATH}

Reload your path by either logging out and logging in again or (quicker):

source ~/.bashrc