brainprep.interfaces.freesurfer: FreeSurfer functions.

FreeSurfer functions.

Functions

aparcstats2table(subjects, session, hemi, ...)

Summarizes the stats data '?h.aparc.stats' for both templates (Desikan & Destrieux) using FreeSurfer's aparcstats2table.

asegstats2table(subjects, session, output_dir)

Summarizes the volumetric data for subcortical brain structures 'aseg.stats' using FreeSurfer's asegstats2table.

brainmask(image_file, output_dir, entities)

Skull-strip a BIDS-compliant anatomical image using FreeSurfer's mri_synthstrip.

freesurfer_command_status(log_file, command)

Check the status of a FreeSurfer recon-all process from its log file.

freesurfer_features_summary(workspace_dir, ...)

Summarizes the generated FreeSurfer features for all subjects.

freesurfer_tissues(workspace_dir, ...[, ...])

Binary masks for white matter (WM), gray matter (GM), cerebrospinal fluid (CSF), and whole brain based on FreeSurfer ribbon and wmparc segmentations.

fsaveragesym_projection(left_reg_file, ...)

Project the different cortical features to the 'fsaverage_sym' template space using FreeSurfer's mris_apply_reg.

fsaveragesym_surfreg(output_dir, entities)

Interhemispheric surface-based registration using the fsaverage_sym template, and FreeSurfer's xhemireg and surfreg.

localgi(output_dir, entities)

Local Gyrification Index (localGI or lGI).

mgz_to_nii(output_dir, entities)

Convert FreeSurfer images back to original Nifti space.

mri_convert(src_file, trg_file, reference_file)

Convert a source image and resample it to match the resolution, orientation, and voxel grid of a reference image using FreeSurfer's mri_convert.

mris_apply_reg(src_file, trg_file, ...)

Apply a surface-based registration to a cortical surface data file.

nextbrain(t1_file, output_dir, entities)

Uses NextBrain probabilistic atlas of the human brain, to segment ~300 distinct ROIs per hemisphere.

reconall(t1_file, output_dir, entities[, ...])

Brain parcellation using FreeSurfer's recon-all.

reconall_longitudinal(workspace_dir, ...)

Longitudinal brain parcellation using FreeSurfer's recon-all.

surfreg(output_dir, entities)

Surface-based registration to fsaverage_sym symmetric template.

xhemireg(output_dir, entities)

Symmetric mapping of the right hemisphere to the left hemisphere space.