bug with --use-aroma and curvefit in frmiprep 23.1.4
What happened?
Why is it that when I use fMRIPrep version 23.1.4 and specify the --use-aroma and --me-t2s-fit-method curvefit parameters, it doesn't perform ICA-AROMA and still uses the old loglinear method instead of curvefit?
What command did you use?
/opt/conda/envs/fmriprep/bin/fmriprep /home1/zhairq/multiechotest/ME0001ZHAIRONGQUAN/dataset/ /home1/zhairq/multiechotest/ME0001ZHAIRONGQUAN/postfmriprep91kmeL23/ participant --participant-label sub-001 --skip-bids-validation --nprocs 22 --bold2t1w-dof 12 --fs-subjects-dir /home1/zhairq/multiechotest/ME0001ZHAIRONGQUAN/postfmriprep91kmeL23/freesurfer/ --force-bbr --use-aroma --fs-license-file /home1/zhairq/multiechotest/license.txt --cifti-output 91k -w /home1/zhairq/multiechotest/ME0001ZHAIRONGQUAN/postfmriprep91kmeL23/tmp/ --output-spaces MNI152NLin6Asym:res-2 fsaverage fsLR --me-output-echos --me-t2s-fit-method curvefit
What version of fMRIPrep are you running?
23.1.4
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
FreeSurfer
Please copy and paste any relevant log output.
Results included in this manuscript come from preprocessing performed using fMRIPrep 23.1.4 (Esteban et al. (2019); Esteban et al. (2018); RRID:SCR_016216), which is based on Nipype 1.8.6 (K. Gorgolewski et al. (2011); K. J. Gorgolewski et al. (2018); RRID:SCR_002502).
Preprocessing of B0 inhomogeneity mappings
A total of 1 fieldmaps were found available within the input BIDS structure for this particular subject. A B0-nonuniformity map (or fieldmap) was estimated based on two (or more) echo-planar imaging (EPI) references with topup (Andersson, Skare, and Ashburner (2003); FSL None).
Anatomical data preprocessing
A total of 1 T1-weighted (T1w) images were found within the input BIDS dataset.The T1-weighted (T1w) image was corrected for intensity non-uniformity (INU) with N4BiasFieldCorrection (Tustison et al. 2010), distributed with ANTs (version unknown) (Avants et al. 2008, RRID:SCR_004757), and used as T1w-reference throughout the workflow. The T1w-reference was then skull-stripped with a Nipype implementation of the antsBrainExtraction.sh workflow (from ANTs), using OASIS30ANTs as target template. Brain tissue segmentation of cerebrospinal fluid (CSF), white-matter (WM) and gray-matter (GM) was performed on the brain-extracted T1w using fast (FSL (version unknown), RRID:SCR_002823, Zhang, Brady, and Smith 2001). Brain surfaces were reconstructed using recon-all (FreeSurfer 7.3.2, RRID:SCR_001847, Dale, Fischl, and Sereno 1999), and the brain mask estimated previously was refined with a custom variation of the method to reconcile ANTs-derived and FreeSurfer-derived segmentations of the cortical gray-matter of Mindboggle (RRID:SCR_002438, Klein et al. 2017). Grayordinate “dscalar” files (Glasser et al. 2013) containing 91k samples were also generated using the highest-resolution fsaverage as an intermediate standardized surface space. Volume-based spatial normalization to two standard spaces (MNI152NLin6Asym, MNI152NLin2009cAsym) was performed through nonlinear registration with antsRegistration (ANTs (version unknown)), using brain-extracted versions of both T1w reference and the T1w template. The following templates were were selected for spatial normalization and accessed with TemplateFlow (23.0.0, Ciric et al. 2022): FSL’s MNI ICBM 152 non-linear 6th Generation Asymmetric Average Brain Stereotaxic Registration Model [Evans et al. (2012), RRID:SCR_002823; TemplateFlow ID: MNI152NLin6Asym], ICBM 152 Nonlinear Asymmetrical template version 2009c [Fonov et al. (2009), RRID:SCR_008796; TemplateFlow ID: MNI152NLin2009cAsym].
Functional data preprocessing
For each of the 1 BOLD runs found per subject (across all tasks and sessions), the following preprocessing was performed. First, a reference volume and its skull-stripped version were generated from the shortest echo of the BOLD run using a custom methodology of fMRIPrep. Head-motion parameters with respect to the BOLD reference (transformation matrices, and six corresponding rotation and translation parameters) are estimated before any spatiotemporal filtering using mcflirt (FSL , Jenkinson et al. 2002). The estimated fieldmap was then aligned with rigid-registration to the target EPI (echo-planar imaging) reference run. The field coefficients were mapped on to the reference EPI using the transform. BOLD runs were slice-time corrected to 0.908s (0.5 of slice acquisition range 0s-1.81s) using 3dTshift from AFNI (Cox and Hyde 1997, RRID:SCR_005927). A T2★ map was estimated from the preprocessed EPI echoes, by voxel-wise fitting the maximal number of echoes with reliable signal in that voxel to a monoexponential signal decay model with nonlinear regression. The T2★/S0 estimates from a log-linear regression fit were used for initial values. The calculated T2★ map was then used to optimally combine preprocessed BOLD across echoes following the method described in (Posse et al. 1999). The optimally combined time series was carried forward as the preprocessed BOLD. The BOLD reference was then co-registered to the T1w reference using bbregister (FreeSurfer) which implements boundary-based registration (Greve and Fischl 2009). Co-registration was configured with twelve degrees of freedomto account for distortions remaining in the BOLD reference. First, a reference volume and its skull-stripped version were generated using a custom methodology of fMRIPrep. Several confounding time-series were calculated based on the preprocessed BOLD: framewise displacement (FD), DVARS and three region-wise global signals. FD was computed using two formulations following Power (absolute sum of relative motions, Power et al. (2014)) and Jenkinson (relative root mean square displacement between affines, Jenkinson et al. (2002)). FD and DVARS are calculated for each functional run, both using their implementations in Nipype (following the definitions by Power et al. 2014). The three global signals are extracted within the CSF, the WM, and the whole-brain masks. Additionally, a set of physiological regressors were extracted to allow for component-based noise correction (CompCor, Behzadi et al. 2007). Principal components are estimated after high-pass filtering the preprocessed BOLD time-series (using a discrete cosine filter with 128s cut-off) for the two CompCor variants: temporal (tCompCor) and anatomical (aCompCor). tCompCor components are then calculated from the top 2% variable voxels within the brain mask. For aCompCor, three probabilistic masks (CSF, WM and combined CSF+WM) are generated in anatomical space. The implementation differs from that of Behzadi et al. in that instead of eroding the masks by 2 pixels on BOLD space, a mask of pixels that likely contain a volume fraction of GM is subtracted from the aCompCor masks. This mask is obtained by dilating a GM mask extracted from the FreeSurfer’s aseg segmentation, and it ensures components are not extracted from voxels containing a minimal fraction of GM. Finally, these masks are resampled into BOLD space and binarized by thresholding at 0.99 (as in the original implementation). Components are also calculated separately within the WM and CSF masks. For each CompCor decomposition, the k components with the largest singular values are retained, such that the retained components’ time series are sufficient to explain 50 percent of variance across the nuisance mask (CSF, WM, combined, or temporal). The remaining components are dropped from consideration. The head-motion estimates calculated in the correction step were also placed within the corresponding confounds file. The confound time series derived from head motion estimates and global signals were expanded with the inclusion of temporal derivatives and quadratic terms for each (Satterthwaite et al. 2013). Frames that exceeded a threshold of 0.5 mm FD or 1.5 standardized DVARS were annotated as motion outliers. Additional nuisance timeseries are calculated by means of principal components analysis of the signal found within a thin band (crown) of voxels around the edge of the brain, as proposed by (Patriat, Reynolds, and Birn 2017). The BOLD time-series were resampled into standard space, generating a preprocessed BOLD run in MNI152NLin6Asym space. First, a reference volume and its skull-stripped version were generated using a custom methodology of fMRIPrep. The BOLD time-series were resampled onto the following surfaces (FreeSurfer reconstruction nomenclature): fsaverage. The BOLD time-series were resampled onto the left/right-symmetric template “fsLR” (Glasser et al. 2013). Grayordinates files (Glasser et al. 2013) containing 91k samples were also generated using the highest-resolution fsaverage as intermediate standardized surface space. All resamplings can be performed with a single interpolation step by composing all the pertinent transformations (i.e. head-motion transform matrices, susceptibility distortion correction when available, and co-registrations to anatomical and output spaces). Gridded (volumetric) resamplings were performed using antsApplyTransforms (ANTs), configured with Lanczos interpolation to minimize the smoothing effects of other kernels (Lanczos 1964). Non-gridded (surface) resamplings were performed using mri_vol2surf (FreeSurfer).
Many internal operations of fMRIPrep use Nilearn 0.10.1 (Abraham et al. 2014, RRID:SCR_001362), mostly within the functional processing workflow. For more details of the pipeline, see the section corresponding to workflows in fMRIPrep’s documentation.
Additional information / screenshots
ICA-AROMA was removed from fMRIPrep. See https://github.com/nipreps/fmripost-aroma/ for running AROMA.
Does the curvefit issue still reproduce in 25.0.0?
we falied to excute this command in 25.0.0, only successful in 23.1.4
this is the output of fmriprep25
So it looks like it's using the monoexponential curve fit method. Any remaining issues?
But we falied to excute this command in 25.0.0 to get the fsLR output, only successful in 23.1.4,we have to excute tihs command in 23.1.4, but we failed to use the monoexponential curve fit method in 23.1.4. above is the error
output of fmriprep 25
also failed in 24.1.1
more details for 24.1.1
If you're still seeing issues on 25.2.0, could you share a subject with us?
The curvefit issue is resolved. Please open a new issue with the specific problem you're seeing with surface sampling.