Slicer: Difference between revisions

From CCN Wiki
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
  tar -xzvf Slicer-*.tar.gz
  tar -xzvf Slicer-*.tar.gz
Move the unzipped directory to /opt/
Move the unzipped directory to /opt/
  sudo mv Slicer-4.5.0-1-linux-amd64 /opt/
  sudo mv Slicer-4.6.0-linux-amd64 /opt/
Edit your ~/.bashrc file to put the directory in your path
Edit your ~/.bashrc file to put the directory in your path
  PATH=/opt/Slicer-4.5.0-1-linux-amd64:${PATH}
  PATH=/opt/Slicer-4.6.0-linux-amd64:${PATH}
Reload your path by either logging out and logging in again or (quicker):
Reload your path by either logging out and logging in again or (quicker):
  source ~/.bashrc
  source ~/.bashrc

Revision as of 13:07, 27 October 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, as in the example:

/opt/Slicer-4.6.0-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.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.6.0-linux-amd64 /opt/

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

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

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

source ~/.bashrc