Is the final preprocessed BOLD image returned by fmriprep not skull-stripped?

Hi guys,

I’m fairly new to fmriprep, and have been using a custom pipeline my lab uses so far. The thing is, once the pre-processing is done, we generally parcellate the brain into a fixed number of ROIs (Regions of Interest) using different Atlases.

The issue I’m running into is that the final preprocessed file (sub-02_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii) returned by fmriprep does not appear to be skull-stripped. The approximated brain mask looks pretty accurate. Even in the visual quality assessment reports, the brain boundary is clearly marked in the brain signal. Yet, the final image is not skull stripped as shown below:

desc_preproc-bold

brain_mask

However, when I run my lab’s custom scripts, the final BOLD preprocessed image is skull stripped as shown below. This is the final image we run the parcellation scripts on.
image

I also used niftiRead on both the fmriprep output and the lab pipeline output. The fmriprep output file was of size = [ 57,68,58,200] while the lab pipeline output was [91,109,91,200]. (The raw file was of size = [64,64,48,200] for reference) Can I get the fmriprep output also in a [91,109,91,200] format?

Is the fact that there is no skull-stripping in the final fmriprep BOLD output an error? Is there a way I can obtain a skull-stripped output BOLD file from fmriprep?

Can I get the fmriprep output also in a [91,109,91,200] format?

You can probably reset the bounding box with nilearn or some other tool, but fMRIPrep does not directly offer expanding the bounding box.

I’m going to interpret this question in the spirit of “I want to make voxel-to-voxel comparisons between two preprocessing pipelines.” For that, I think even resetting the bounding box would be insufficient, as there’s no guarantee that your voxels are actually aligned. You’re better off performing a rigid registration with AFNI’s 3dvolreg, antsRegistration, FreeSurfer’s mri_coreg, FSL FLIRT or SPM’s coreg. This should handle both alignment and resampling, at which point you will have results as close as possible to comparability. You could also try something like mri_robust_register to output to a halfway space, to ensure that both images are equally distorted by the registration.

An alternative is to perform voxel-wise comparisons in the template MNI space, and then perform some summary statistics of interest in the T1w space, to explore further.

Is the fact that there is no skull-stripping in the final fmriprep BOLD output an error? Is there a way I can obtain a skull-stripped output BOLD file from fmriprep?

That is the case, and yes, you can apply the brain mask found next to the BOLD series.

3 Likes

91x109x91 is the matrix size of FSL’s MNI template with 2mm isotropic resolution.

You can get that kind of preprocessed file out of fMRIPrep by setting MNI152NLin6Asym:res-2 among the parameters given to the --output-spaces argument.

1 Like