- 
                Notifications
    
You must be signed in to change notification settings  - Fork 307
 
Description
What happened?
I use fmriprep 25.2.3 together with the --subject-anatomical-reference sessionwise argument to preprocess my subject data session-wise. The reason for this is that the scanner settings have changed throughout the study. fmriprep finishes succesfully but for the sessions (where the scanner parameter have changed) it does not use fieldmap correction.
What command did you use?
sbatch \
 --job-name fmriprep-25.2.3_sub-6IECX \
 --output /zi/home/johannes.wiesner/work/slurm/project_bernn/log_files/fmriprep/fmriprep-25.2.3_sub-6IECX_job-%j.out \
 --cpus-per-task 16 \
 --mem 64G \
 --mail-user [email protected] \
 --mail-type END \
 --partition snip,cpu \
 --chdir /zi/home/johannes.wiesner \
 --wrap "bash -c 'export KRB5CCNAME=FILE:/tmp/krb5cc_\$(id -u)_\${SLURM_JOB_ID} && \
  kinit [email protected] -k -t /zi/home/johannes.wiesner/johannes.wiesner.keytab && \
  krenew -b -K 60 && \
  export TMPDIR=/data/\${SLURM_JOB_ID} && \
  mkdir /zi/home/johannes.wiesner/work/slurm/project_bernn/tmp/\${SLURM_JOB_ID}_fmriprep && \
  module load fmriprep/25.2.3 && \
  fmriprep /zi/flstorage/group_csp/in_house_datasets/bernn/mri/rawdata/ /zi/home/johannes.wiesner/work/slurm/project_bernn/tmp/\${SLURM_JOB_ID}_fmriprep participant \
 --fs-license-file /zi/home/johannes.wiesner/work/it/freesurfer_license.txt \
 --n_cpus 16 \
 --skip-bids-validation  \
 --work-dir /zi/home/johannes.wiesner/work/slurm/project_bernn/work_dirs/fmriprep/ \
 --fs-no-reconall  \
 --subject-anatomical-reference sessionwise \
 --participant-label 6IECX && \
  while ! rsync -av --ignore-existing /zi/home/johannes.wiesner/work/slurm/project_bernn/tmp/\${SLURM_JOB_ID}_fmriprep/ /zi/flstorage/group_csp/in_house_datasets/bernn/mri/derivatives/fmriprep_25.2.3;do sleep 5;done && \
  rm -rf /zi/home/johannes.wiesner/work/slurm/project_bernn/tmp/\${SLURM_JOB_ID}_fmriprep'"What version of fMRIPrep are you running?
25.2.3
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Additional information / screenshots
These are the fieldmap sidecars for the first session (where fieldmap distortion correction is applied)
sub-YL4AS_ses-01_dir-AP_epi.json
sub-YL4AS_ses-01_dir-PA_epi.json
And these are the ones for session 5 where the scanner settings have changed and where fieldmap correction is not applied:
sub-YL4AS_ses-05_dir-AP_epi.json
sub-YL4AS_ses-05_dir-PA_epi.json
I used https://www.diffchecker.com/text-compare/ to compare the respective AP/PA sidecars for ses-01 vs. ses-05 but could not find out if there's something wrong in the sidecars of ses-05 that would hinder fmriprep from running fieldmap correction for this session
Here's the full log: