Dear Dr. Yan
I encountered an error when I ran my data (not have DICOM data, start with FunImg and T1Img) by using DpabiSurf. The data have passed the data organization checcking and successfully converted into BIDS. But, the error was reported during the “Preprocessing with fmriprep” stage for every subject. The error log is the following figure. Since this is not DICOM data, I manually entered TR=2 (but I confirm that this is correct). I confirmed that I have correctly installed the DpbaiSurf as I have successfully run the DemoData (start from FunRaw) posted on this website.
The BIDS directory orgaization like:
Sub-** ses-1 func *** rest_bold.nii & ***rest_bold.json anat ***T1w.nii (NOT have .json file) ses-2 func *** rest_bold.nii & ***rest_bold.json The ***rest_bold.json file are all same such as: {"RepetitionTime":2,"SliceTiming":[0,1,0.055556,1.0556,0.11111,1.1111,0.16667,1.1667,0.22222,1.2222,0.27778,1.2778,0.33333,1.3333,0.38889,1.3889,0.44444,1.4444,0.5,1.5,0.55556,1.5556,0.61111,1.6111,0.66667,1.6667,0.72222,1.7222,0.77778,1.7778,0.83333,1.8333,0.88889,1.8889,0.94444,1.9444],"TaskName":"REST"}
Also, I tried to use the same setting option to run an open access data (not have DICOM data). Unfountatly, the same error was encountered. However, these two datasets can successfully run in DPARSF without involving fmriprep. The problem seems to be I used the FunImg instead of the FunRaw that can not available for my dataset?
I also tried to debug according to the error information (provided weblinks). However, I can’t find what error derives from since the DPABISurf is a user-friendly toolbox that invokes the code from fmriprep what I am not familiar with.
Have you encountered similar problems or other people have also asked about this problem? Do you have any suggestions on this problem? Thank you in advance for any help.
The text vertion of the error log:
Preprocessing with fmriprep, this process is very time consuming, please be patient... bids-validator@1.4.0
Attachment | Size |
---|---|
ERROR LOG | 65.7 KB |
YAN Chao-Gan
Fri, 06/18/2021 - 07:26
Permalink
The TR info in your NIfTI
The TR info in your NIfTI files (FunImg) were incorrect. You can change the TR info in your NIfTI files.
Or you can try to add one line in DPABISurf_run.m
Line 488:
Command = sprintf('%s --skip_bids_validation', Command);
Zeqiang Linli
Mon, 08/09/2021 - 10:44
Permalink
Dear Prof. Yan,
Dear Prof. Yan,
I comfirm my TR=2 is correct, since this TR setting have successfully been applied in DPARSF.
I also tried add a command one line in DPABISurf_run.m Line 488:
Command = sprintf('%s --skip_bids_validation', Command);But, Similiar error occurred, the log is as following:
Can your recommed other possible solutions for this error? Thank you and best wishes!
Zeqiang
YAN Chao-Gan
Wed, 08/18/2021 - 05:48
Permalink
You can try the developing
You can try the developing version from github: https://github.com/Chaogan-Yan/DPABI
Remember to use the Remove First X Time Points.
The program will change the TR info in NIfTI header if they are different from DPABISurf_Pipeline setting.
Line 409 in DPABISurf_run.m
%YAN Chao-Gan, 210818. In case the TR info in NIfTI header is incorrect.
if Cfg.TR~=0
try
if Header.private.timing.tspace ~= Cfg.TR
Header.private.timing.tspace=Cfg.TR;
end
catch
end
end
Zeqiang Linli
Sat, 08/21/2021 - 14:31
Permalink
Dear Dr. Yan, Thanks for your
Dear Dr. Yan, Thanks for your solution!
Although the developing version of DPARSFSurf cannot seem to solve this error, the problem was resolved by changing the TR info in NIfTI header for every subject in BIDS directory, which is inspired by the code you gave above. Luckly, the DPARSFSurf can successfully run after changing the TR info. The code I used is as following, which maybe helpful for other people who encounter the same error:
Again, thank you for your expensive time on this problem!
Zeqiang