Hi all,
I am testing using fMRIprep to preprocess my fMRI data. In my first try, everything looks good. But today, when I ran them again, I met the problem related to RepetitionTime. The key ‘RepetitionTime’ is present in the .json file. I searched this question, and found some people have the same problem in older version. I followed suggestions in their post but still cannot figure it out. Here is my traceback information:
Process Process-2:
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/multiprocessing/process.py”, line 297, in _bootstrap
self.run()
File “/usr/local/miniconda/lib/python3.7/multiprocessing/process.py”, line 99, in run
self._target(*self._args, **self._kwargs)
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/run.py”, line 751, in build_workflow
ignore_aroma_err=opts.ignore_aroma_denoising_errors,
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py”, line 218, in init_fmriprep_wf
ignore_aroma_err=ignore_aroma_err,
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py”, line 516, in init_single_subject_wf
num_bold=len(subject_data[‘bold’]))
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/bold/base.py”, line 683, in init_func_preproc_wf
name=‘carpetplot_wf’)
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/bold/confounds.py”, line 370, in init_carpetplot_wf
tr=metadata[‘RepetitionTime’],
KeyError: ‘RepetitionTime’
fMRIPrep: Please report errors to https://github.com/poldracklab/fmriprep/issues
My data passed BIDS validator:
This dataset appears to be BIDS compatible.
Summary: 800 Files, 2.46GB, 1 - Subject, 1 - Session
Available Tasks: fMRI_test
Available Modalities: T1w, bold, events, fieldmap
I also tried:
find $BIDS_DIR -name ‘_bold.’
find $BIDS_DIR -name ‘*_bold.json’ -exec grep RepetitionTime “{}” +
and can get related information:
./func/sub-01_task-test_run-01_bold.json
./func/sub-01_task-test_run-02_bold.nii.gz
./func/sub-01_task-test_run-02_bold.json
./func/sub-01_task-test_run-01_bold.nii.gz
./func/sub-01_task-test_run-01_bold.json: “RepetitionTime”: 1.74
./func/sub-01_task-test_run-02_bold.json: “RepetitionTime”: 1.74
So I am guessing, is it because ‘RepetitionTime’ cannot be recognized by fMRIPrep?
In addition, my second question is, I added filedmap data for distortion correction, and they were detected in BIDS validation(as you ca see in brief report from validation). However. in preprocessing, it said “SDC: no fieldmaps found or they were ignored (/data/Derivatives/fmriprep/sub-01/func/sub-01_task-test_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz).” I collected two phase and two magnitude images as fieldmaps and organized them in following way:
Does anyone know if I did it in the wrong way? Or if not, what should I do to solve this?
Thanks in advance!