Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.interfaces.nextbrain¶
- brainprep.interfaces.nextbrain(t1_file, output_dir, entities)[source]¶
Uses NextBrain probabilistic atlas of the human brain, to segment ~300 distinct ROIs per hemisphere.
Segmentation relies on a Bayesian algorithm and is thus robust against changes in MRI pulse sequence (e.g., T1-weighted, T2-weighted, FLAIR, etc).
- Parameters:
- t1_fileFile
Path to the input T1w image file.
- output_dirDirectory
FreeSurfer working directory containing all the subjects.
- entitiesdict
A dictionary of parsed BIDS entities including modality.
- Returns:
- commandlist[str]
NextBrain parcellation command-lines.
- outputstuple[File]
left_seg_file : File - Generated left hemisphere NextBrain atlas.
right_seg_file : File - Generated right hemisphere NextBrain atlas.
References