Difference between revisions of "Freesurfer"

From UFRC
Jump to navigation Jump to search
Line 1: Line 1:
==Description==
+
[[Category:Software]][[Category:Bioinformatics]][[Category:Neurology]]
FreeSurfer is a set of automated tools for reconstruction of the brain’s cortical surface from structural MRI data, and overlay of functional MRI data onto the reconstructed surface.
+
{|<!--CONFIGURATION: REQUIRED-->
 
+
|{{#vardefine:app|freesurfer}}
[http://surfer.nmr.mgh.harvard.edu/fswiki FreeSurfer Website]
+
|{{#vardefine:url|http://surfer.nmr.mgh.harvard.edu/}}
 
+
<!--CONFIGURATION: OPTIONAL (|1}} means it's ON)-->
==Environment Variables==
+
|{{#vardefine:conf|}}          <!--CONFIGURATION-->
In order for Freesurfer to work, the followings environment variables need to be set:
+
|{{#vardefine:exe|}}            <!--ADDITIONAL INFO-->
 
+
|{{#vardefine:pbs|}}            <!--PBS SCRIPTS-->
In bash:
+
|{{#vardefine:policy|}}        <!--POLICY-->
<pre>
+
|{{#vardefine:testing|}}      <!--PROFILING-->
$ export FREESURFER_HOME=/apps/freesurfer
+
|{{#vardefine:faq|}}            <!--FAQ-->
$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
+
|{{#vardefine:citation|}}      <!--CITATION-->
</pre>
+
|{{#vardefine:installation|}} <!--INSTALLATION-->
In tcsh:
+
|}
<pre>
+
<!--BODY-->
$ setenv FREESURFER_HOME /apps/freesurfer
+
<!--Description-->
$ source $FREESURFER_HOME/SetUpFreeSurfer.csh
+
{{#if: {{#var: url}}|
</pre>
+
{{App_Description|app={{#var:app}}|url={{#var:url}}|name={{#var:app}}}}|}}
 
 
In fact, you are going to have to grab the SetUpFreeSurfer script and copy it to your home directory so that it can be modified, as we do not have space in the installation area of the software for you to copy your image files to.
 
 
 
It is recommended that you copy your image files over to /scratch/hpc/$username and work on the files there, as that is where the fastest filesystem is located.
 
 
 
==Optional Configuration Settings==
 
The defaults declared in the SetUpFreeSurfer.csh script should work for most installations. However, users should feel free to edit this file to customize certain environment variables:
 
 
 
1. Your declaration of the FREESURFER_HOME variable could be moved within the SetUpFreeSurfer.csh script.
 
 
 
2. The default SUBJECTS_DIR, which is $FREESURFER_HOME/subjects, is most likely the first variable that you will want to customize, as you may keep different groups of subjects in different directories. You may include the following either directly in the SetUpFreeSurfer.csh script, or prior to calling it:
 
 
 
      setenv SUBJECTS_DIR <full path to subject dir>  
 
 
 
3. If you do NOT intend to use the functional tools, then add the following line to the additional configuration section:
 
 
 
      setenv NO_FSFAST
 
  
 +
Freesurfer is a set of automated tools for reconstruction of the brain’s cortical surface from structural MRI data, and overlay of functional MRI data onto the reconstructed surface.<!--Modules-->
 +
==Required Modules==
 +
===Serial===
 +
* {{#var:app}}
 +
<!--
 +
===Parallel (OpenMP)===
 +
* intel
 +
* {{#var:app}}
 +
===Parallel (MPI)===
 +
* intel
 +
* openmpi
 +
* {{#var:app}}
 +
-->
 +
==System Variables==
 +
* HPC_{{#uppercase:{{#var:app}}}}_DIR and FREESURFER_HOME - installation directory
 +
* HPC_FREESURFER_BIN - executable directory
 +
===Freesurfer configuration variables===
 +
The following variables are preset by the {{#var:app}} module:
 +
* SUBJECTS_DIR
 +
* FUNCTIONALS_DIR
 +
* FSFAST_HOME
 +
* MNI_DIR
 +
or load the ''freesurfer'' module and run
 +
source $HPC_FREESURFER_DIR/SetUpFreeSurfer.sh
 +
===Matlab configuration===
 
If you do intend to use the functional tools, then add these lines to your ~/matlab/startup.m file:
 
If you do intend to use the functional tools, then add these lines to your ~/matlab/startup.m file:
 
+
fsfasthome = getenv('FSFAST_HOME');
      fsfasthome = getenv('FSFAST_HOME');
+
fsfasttoolbox = sprintf('%s/toolbox',fsfasthome);
      fsfasttoolbox = sprintf('%s/toolbox',fsfasthome);
+
path(path,fsfasttoolbox);
      path(path,fsfasttoolbox);
+
<!--Configuration-->
 
+
{{#if: {{#var: conf}}|==Configuration==
4. You may also wish to declare a path to an FSL installation you might have:
+
See the [[{{PAGENAME}}_Configuration]] page for {{#var: app}} configuration details.
 
+
|}}
      setenv FSL_DIR /usr/local/fsl
+
<!--Run-->
 
+
{{#if: {{#var: exe}}|==Additional Information==
5. Save the file. You will need to source this file (SetUpFreeSurfer.csh) every time you want to use Freesurfer.
+
WRITE_ADDITIONAL_INSTRUCTIONS_ON_RUNNING_THE_SOFTWARE_IF_NECESSARY
 +
|}}
 +
<!--PBS scripts-->
 +
{{#if: {{#var: pbs}}|==PBS Script Examples==
 +
See the [[{{PAGENAME}}_PBS]] page for {{#var: app}} PBS script examples.
 +
|}}
 +
<!--Policy-->
 +
{{#if: {{#var: policy}}|==Usage Policy==
 +
WRITE USAGE POLICY HERE (Licensing, usage, access).
 +
|}}
 +
<!--Performance-->
 +
{{#if: {{#var: testing}}|==Performance==
 +
WRITE_PERFORMANCE_TESTING_RESULTS_HERE
 +
|}}
 +
<!--Faq-->
 +
{{#if: {{#var: faq}}|==FAQ==
 +
*'''Q:''' **'''A:'''|}}
 +
<!--Citation-->
 +
{{#if: {{#var: citation}}|==Citation==
 +
If you publish research that uses {{#var:app}} you have to cite it as follows:
 +
WRITE_CITATION_HERE
 +
|}}
 +
<!--Installation-->
 +
{{#if: {{#var: installation}}|==Installation==
 +
See the [[{{PAGENAME}}_Install]] page for {{#var: app}} installation notes.|}}
 +
<!--Turn the Table of Contents and Edit paragraph links ON/OFF-->
 +
__NOTOC____NOEDITSECTION__

Revision as of 22:19, 22 April 2013

Description

freesurfer website  

Freesurfer is a set of automated tools for reconstruction of the brain’s cortical surface from structural MRI data, and overlay of functional MRI data onto the reconstructed surface.

Required Modules

Serial

  • freesurfer

System Variables

  • HPC_{{#uppercase:freesurfer}}_DIR and FREESURFER_HOME - installation directory
  • HPC_FREESURFER_BIN - executable directory

Freesurfer configuration variables

The following variables are preset by the freesurfer module:

  • SUBJECTS_DIR
  • FUNCTIONALS_DIR
  • FSFAST_HOME
  • MNI_DIR

or load the freesurfer module and run

source $HPC_FREESURFER_DIR/SetUpFreeSurfer.sh

Matlab configuration

If you do intend to use the functional tools, then add these lines to your ~/matlab/startup.m file:

fsfasthome = getenv('FSFAST_HOME');
fsfasttoolbox = sprintf('%s/toolbox',fsfasthome);
path(path,fsfasttoolbox);