qsirecon.interfaces.freesurfer module
FreeSurfer tools interfaces
Fetch some example data:
>>> import os
>>> from niworkflows import data
>>> data_root = data.get_bids_examples(variant='BIDS-examples-1-enh-ds054')
>>> os.chdir(data_root)
Disable warnings:
>>> from nipype import logging
>>> logging.getLogger('nipype.interface').setLevel('ERROR')
- qsirecon.interfaces.freesurfer.find_fs_path(freesurfer_dir, subject_id, session_id=None)[source]
Find a freesurfer dir for subject or subject+session.
- Parameters:
freesurfer_dir (str) – The directory containing the freesurfer outputs.
subject_id (str) – The subject ID.
session_id (list or str or None, optional) – The session ID. May be None, a string, or a list containing strings and Query.NONE objects.
- Returns:
path – The path to the freesurfer directory.
- Return type:
Path or None