Inheritance diagram for nipype.interfaces.freesurfer:
digraph inheritance1cbe1fbbdc { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "base.Interface" [shape=ellipse,URL="nipype.interfaces.base.html#nipype.interfaces.base.Interface",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" [shape=ellipse,URL="nipype.interfaces.fsl.html#nipype.interfaces.fsl.FSLCommand",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "base.CommandLine" -> "fsl.FSLCommand" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.Resample" [shape=ellipse,URL="#nipype.interfaces.freesurfer.Resample",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "freesurfer.FSCommandLine" -> "freesurfer.Resample" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.FSCommandLine" [shape=ellipse,URL="#nipype.interfaces.freesurfer.FSCommandLine",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "base.CommandLine" -> "freesurfer.FSCommandLine" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.BBRegister" [shape=ellipse,URL="#nipype.interfaces.freesurfer.BBRegister",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" -> "freesurfer.BBRegister" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.ApplyVolTransform" [shape=ellipse,URL="#nipype.interfaces.freesurfer.ApplyVolTransform",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" -> "freesurfer.ApplyVolTransform" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.SurfConcat" [shape=ellipse,URL="#nipype.interfaces.freesurfer.SurfConcat",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" -> "freesurfer.SurfConcat" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.Smooth" [shape=ellipse,URL="#nipype.interfaces.freesurfer.Smooth",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" -> "freesurfer.Smooth" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.ReconAll" [shape=ellipse,URL="#nipype.interfaces.freesurfer.ReconAll",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "freesurfer.FSCommandLine" -> "freesurfer.ReconAll" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.Dicom2Nifti" [shape=ellipse,URL="#nipype.interfaces.freesurfer.Dicom2Nifti",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "freesurfer.FSCommandLine" -> "freesurfer.Dicom2Nifti" [arrowsize=0.5,style="setlinewidth(0.5)"]; "freesurfer.OneSampleTTest" [shape=ellipse,URL="#nipype.interfaces.freesurfer.OneSampleTTest",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "fsl.FSLCommand" -> "freesurfer.OneSampleTTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "base.CommandLine" [shape=ellipse,URL="nipype.interfaces.base.html#nipype.interfaces.base.CommandLine",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "base.Interface" -> "base.CommandLine" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
The freesurfer module provides basic functions for interfacing with freesurfer tools.
Currently these tools are supported:
- Dicom2Nifti: using mri_convert
- Resample: using mri_convert
See the docstrings for the individual classes for ‘working’ examples.
Bases: nipype.interfaces.fsl.FSLCommand
Use FreeSurfer mri_vol2vol to apply a transform.
| Parameters: | To see optional arguments : ApplyVolTransform().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces.freesurfer import ApplyVolTransform
>>> applyreg = ApplyVolTransform(tkreg='me.dat', sourcefile='foo.nii', fstarg=True)
>>> applyreg.cmdline
'mri_vol2vol --fstarg --mov foo.nii --reg me.dat --o foo_warped.nii'
Bases: nipype.interfaces.fsl.FSLCommand
Use FreeSurfer bbregister to register a volume two a surface mesh
This program performs within-subject, cross-modal registration using a boundary-based cost function. The registration is constrained to be 6 DOF (rigid). It is required that you have an anatomical scan of the subject that has been analyzed in freesurfer.
| Parameters: | To see optional arguments : BBRegister().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces.freesurfer import BBRegister
>>> bbreg = BBRegister(subject_id='me', sourcefile='foo.nii', init_header=True, t2_contrast=True)
>>> bbreg.cmdline
'bbregister --init-header --mov foo.nii --s me --t2 --reg foo_bbreg_me.dat'
Bases: nipype.interfaces.freesurfer.FSCommandLine
use fs mri_convert to convert dicom files to nifti-1 files
| Parameters: | To see optional arguments : Dicom2Nifti().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces import freesurfer
>>> cvt = freesurfer.Dicom2Nifti()
>>> cvt.inputs.dicomdir = '/software/data/STUT/RAWDATA/TrioTim-35115-20090428-081900-234000/'
>>> cvt.inputs.file_mapping = [('nifti','*.nii'),('info','dicom*.txt'),('dti','*dti.bv*')]
>>> #out = cvt.run() # commented out as above directories are not installed
Provides information about file inputs to copy or link to cwd.
Notes
see spm.Realign.get_input_info
| Parameters: | (all default to None and are unset) : dicomdir : /path/to/dicomfiles
base_output_dir : /path/to/outputdir
subject_dir_template : string
subject_id : string or int
file_mapping : list of tuples
flags = unsupported flags, use at your own risk : |
|---|
Execute the command.
| Returns: | results : InterfaceResult
|
|---|
Bases: nipype.interfaces.base.CommandLine
Called to populate outputs
Currently, search for discussion of this on private e-mails between Dav and Satra (ugh!). This needs to get in here!
Provides information about file inputs to copy or link to cwd.
Notes
see spm.Realign.get_input_info
Execute the command.
| Returns: | results : InterfaceResult
|
|---|
Bases: nipype.interfaces.fsl.FSLCommand
Use FreeSurfer mri_glmfit to prepare a group of contrasts for a second level analysis
| Parameters: | To see optional arguments : SurfConcat().inputs_help() : |
|---|
Bases: nipype.interfaces.freesurfer.FSCommandLine
Use FreeSurfer recon-all to generate surfaces and parcellations of structural data from an anatomical image of a subject.
| Parameters: | To see optional arguments : ReconAll().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces import freesurfer
>>> reconall = freesurfer.ReconAll()
>>> reconall.inputs.subject_id = 'foo'
>>> reconall.inputs.directive = '-all'
>>> reconall.inputs.parent_dir = '.'
>>> reconall.inputs.T1files = 'structfile.nii'
>>> out = reconall.run() # doctest +SKIP
Provides information about file inputs to copy or link to cwd.
Notes
see spm.Realign.get_input_info
| Parameters: | (all default to None and are unset) : T1files: filename(s) :
hemi: string :
parent_dir: string :
test: :
flags: :
|
|---|
Execute the command.
| Returns: | results : InterfaceResult
|
|---|
Bases: nipype.interfaces.freesurfer.FSCommandLine
Use FreeSurfer mri_convert to up or down-sample image files
| Parameters: | To see optional arguments : Resample().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces import freesurfer
>>> resampler = freesurfer.Resample()
>>> resampler.inputs.infile = 'infile.nii'
>>> resampler.inputs.voxel_size = [2, 2, 2]
>>> out = resampler.run()
Provides information about file inputs to copy or link to cwd.
Notes
see spm.Realign.get_input_info
| Parameters: | (all default to None and are unset) : infile : string or list
voxel_size: 3-element list :
outfile_postfix : string
flags = unsupported flags, use at your own risk : |
|---|
Execute the command.
| Returns: | results : InterfaceResult
|
|---|
Bases: nipype.interfaces.fsl.FSLCommand
Use FreeSurfer mris_volsmooth to smooth a volume
This function smoothes cortical regions on a surface and non-cortical regions in volume.
| Parameters: | To see optional arguments : Smooth().inputs_help() : |
|---|
Examples
>>> from nipype.interfaces.freesurfer import Smooth
>>> smoothvol = Smooth(sourcefile='foo.nii', regfile='reg.dat', surface_fwhm=10, vol_fwhm=6)
>>> smoothvol.cmdline
'mris_volsmooth --reg reg.dat --i foo.nii --fwhm 10 --vol-fwhm 6 --o foo_surfsmooth.nii'
Bases: nipype.interfaces.fsl.FSLCommand
Use FreeSurfer mris_preproc to prepare a group of contrasts for a second level analysis
| Parameters: | To see optional arguments : SurfConcat().inputs_help() : |
|---|
Check for freesurfer version on system
| Parameters: | None : |
|---|---|
| Returns: | version : string
|
Check and or set the global SUBJECTS_DIR
| Parameters: | subjects_dir : string
|
|---|---|
| Returns: | subject_dir : string
|