FreeSurfer: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 1: Line 1:
{{Draft}}
<languages />
 
<translate>
=Introduction=
=Introduction=
[https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki FreeSurfer] is a set of tools for analysis and visualization of structural and functional brain imaging data. FreeSurfer contains a fully automatic structural imaging stream for processing cross sectional and longitudinal data.
[https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki FreeSurfer] is a set of tools for analysis and visualization of structural and functional brain imaging data. FreeSurfer contains a fully automatic structural imaging stream for processing cross sectional and longitudinal data.
Line 8: Line 8:


FreeSurfer come up with a script <code>FreeSurferEnv.sh</code> that should be sourced to setup correctly the environment variables such as PATH and PERL5LIB:
FreeSurfer come up with a script <code>FreeSurferEnv.sh</code> that should be sourced to setup correctly the environment variables such as PATH and PERL5LIB:
 
</translate>
{{Commands
{{Commands
|module load freesurfer/5.3.0
|module load freesurfer/5.3.0
|source $EBROOTFREESURFER/FreeSurferEnv.sh
|source $EBROOTFREESURFER/FreeSurferEnv.sh
}}
}}
 
<translate>
=FreeSurfer 6.0 and newer versions=
=FreeSurfer 6.0 and newer versions=
Due to a change in the [https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense license terms], we '''now longer''' install the code as a central module. If needed, please install it in your home directory or in your project space with EasyBuild. Please follow the instructions below and if needed, contact the [[Technical Support|technical support]] for more assistance.  
Due to a change in the [https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense license terms], we '''now longer''' install the code as a central module. If needed, please install it in your home directory or in your project space with EasyBuild. Please follow the instructions below and if needed, contact the [[Technical Support|technical support]] for more assistance.  
Line 28: Line 28:
# register for the FreeSurfer license key [https://surfer.nmr.mgh.harvard.edu/registration.html]
# register for the FreeSurfer license key [https://surfer.nmr.mgh.harvard.edu/registration.html]
# Your user license will have to go in: <code>$HOME/.local/easybuild/software/2017/Core/freesurfer/6.0.0/.license</code>
# Your user license will have to go in: <code>$HOME/.local/easybuild/software/2017/Core/freesurfer/6.0.0/.license</code>
 
</translate>
{{Commands
{{Commands
|module load freesurfer/6.0.0
|module load freesurfer/6.0.0
|cd $FREESURFER_HOME
|cd $FREESURFER_HOME
}}
}}
 
<translate>
Use nano or any other text editor of your choice and create a file <code>/home/$USER/.license</code> and add the license text (example):
Use nano or any other text editor of your choice and create a file <code>/home/$USER/.license</code> and add the license text (example):
</translate>
<pre>
<pre>
name.name@university.ca
name.name@university.ca
Line 41: Line 42:
ABCd0EFgHijKl
ABCd0EFgHijKl
</pre>
</pre>
 
<translate>
To load the private module:  
To load the private module:  
<code>module load freesurfer/6.0.0</code>
<code>module load freesurfer/6.0.0</code>
Line 54: Line 55:


The instructions are:
The instructions are:
</translate>
<pre>
<pre>
newgrp def-someuser
newgrp def-someuser
Line 61: Line 63:
eb FreeSurfer-6.0.1-centos6_x86_64.eb --installpath-modules=${moduledir} --prefix=${installdir} --sourcepath=${pathtosrc}
eb FreeSurfer-6.0.1-centos6_x86_64.eb --installpath-modules=${moduledir} --prefix=${installdir} --sourcepath=${pathtosrc}
</pre>
</pre>
 
<translate>
If it complains about '''checksums''', add the option <code>--disable-enforce-checksums</code> to the <code>eb</code> command.
If it complains about '''checksums''', add the option <code>--disable-enforce-checksums</code> to the <code>eb</code> command.


Line 73: Line 75:


Each member of the group will need to create the directory <code>/home/$USER/.local/easybuild/modules/2017/Core/freesurfer</code> and put the file <code>6.0.1.lua</code>:
Each member of the group will need to create the directory <code>/home/$USER/.local/easybuild/modules/2017/Core/freesurfer</code> and put the file <code>6.0.1.lua</code>:
 
</translate>
{{Commands
{{Commands
|mkdir -p /home/$USER/.local/easybuild/modules/2017/Core/freesurfer
|mkdir -p /home/$USER/.local/easybuild/modules/2017/Core/freesurfer
|cp 6.0.1.lua /home/$USER/.local/easybuild/modules/2017/Core/freesurfer/
|cp 6.0.1.lua /home/$USER/.local/easybuild/modules/2017/Core/freesurfer/
}}
}}
 
<translate>
The above will set the module (only the module file that points to the installation directory under project) in their own directory.
The above will set the module (only the module file that points to the installation directory under project) in their own directory.


Line 89: Line 91:
==Hippocampus and brainstem processing==
==Hippocampus and brainstem processing==
To perform processing of the hippocampus and brainstem, download and install matlab runtime 2012b from the freesurfer website:
To perform processing of the hippocampus and brainstem, download and install matlab runtime 2012b from the freesurfer website:
 
</translate>
<pre>
<pre>
module load freesurfer/6.0.0
module load freesurfer/6.0.0
Line 96: Line 98:
tar xvf matlab_runtime2012bLinux.tar.gz  
tar xvf matlab_runtime2012bLinux.tar.gz  
</pre>
</pre>
 
<translate>
==Example of working batch script for freesurfer version >= 6.0.0==
==Example of working batch script for freesurfer version >= 6.0.0==
 
</translate>
{{File
{{File
|name=mysub.sh
|name=mysub.sh
Line 124: Line 126:
echo "Program finished with exit code $? at: `date`"
echo "Program finished with exit code $? at: `date`"
}}
}}
 
<translate>
==Examples of required walltimes==
==Examples of required walltimes==


Line 133: Line 135:
* recon-all -hippocampal-subfields-T1 : <code>#SBATCH --time=00:40:00</code>
* recon-all -hippocampal-subfields-T1 : <code>#SBATCH --time=00:40:00</code>
* recon-all -brainstem-structures: <code>#SBATCH --time=00:30:00</code>
* recon-all -brainstem-structures: <code>#SBATCH --time=00:30:00</code>
</translate>
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu