Slicer: Difference between revisions
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
#*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) | ||
You should now have <code>filename | You should now have <code>filename.mgz</code> alongside the original files | ||
== Installing Slicer == | == Installing Slicer == |
Revision as of 09:44, 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, as in the example:
/opt/Slicer-4.5.0-1-linux-amd64/Slicer
- Open the anatomical file
- File > Add Data > choose File(s) to add
- Navigate to MPRAGE folder select the source .nii 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)
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.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