-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dcm2bids_config -"intendedFor": 0- writes the reference file path without session number #67
Comments
Hi @agriffa , The One other thing. Are you sure that |
Dear @dlevitas , Thank you very much for your answer! I understand that the My problem is that if I specify I don't get errors or warnings from the bids-validator when using |
Got it, sorry for the misunderstanding. Are you using the most current version of dcm2bids (2.1.4)? This was an issue in earlier versions, but in the newest version it should be resolved. |
Yes, I do have dcm2bids v2.1.4
I can try to git clone dcm2bids and reinstall. |
After |
Thanks so much for opening this issue @agriffa. I couldn't get why I was getting this problem until I found your issue. After many attempts at validating my files, I found out that if someone Maybe #81 should be reviewed/merged to make sure it doesn't happen? To validate my hypothesis, I freshly installed dcm2bids on my local computer in a virtual env and looked into the structure.py to find the missing code. Here's what I found: I couldn't find these last 2 lines from the master branch.
|
Just installed it in a fresh venv and it seems to be there!
|
Hello!
I'm running dcm2bids on a set of fMRI and fieldmap data.
I would like to refer the fieldmap data to the fMRI acquisition.
I therefore use the option "intendedFor" in the dcm2bids_config.json file (pasted below).
After running dcm2bids on my data, the fieldmap json contains the following line:
"IntendedFor": "func/sub-HPNC040_ses-01_task-rest7min_bold.nii.gz",
which gives an error in the online bids validator:
Error 1: [Code 37] INTENDED_FOR.
'IntendedFor' property of this fieldmap does not point to an existing file'.
Modifying the fieldmap json with the following line corrects the bids validator error:
"IntendedFor": "ses-01/func/sub-HPNC040_ses-01_task-rest7min_bold.nii.gz".
Is there a problem with how dcm2bids handles the "intendedFor" option, or am I missing some fundamental step?
Thank you very much for your help and work!
I hope I am posting this issue in the right place.
Best regards,
Alessandra
My dcm2bids_config.json file looks like this:
{
"searchMethod": "fnmatch",
"defaceTpl": "pydeface --outfile {dstFile} {srcFile}",
"descriptions": [
{
"dataType": "func",
"modalityLabel": "bold",
"customLabels": "task-rest7min",
"criteria": {
"SeriesDescription": "cmrr_mbep2d_bold_tr1000"
},
},
{
"dataType": "fmap",
"modalityLabel": "phasediff",
"criteria": {
"SeriesDescription": "gre_field_mapping",
"SeriesNumber": 7
},
"sidecarChanges": {
"EchoTime1": 0.00449,
"EchoTime2": 0.00695
},
"intendedFor": 0
}
]
}
The text was updated successfully, but these errors were encountered: