Hello all,
I am trying to make a pipeline that ultimately converts all of our data into a BIDS-compatible format. When the sidecars get created for func, it seems that the resulting filename is some conglomeration of the intended filename and the protocol name key from the header. I am not sure what is causing this, but instead of getting files that look like sub-001_task-MID_run-01_bold.json
(or .nii.gz
), I instead get filenames approximately like sub-001_task-MID_run-01_bold.5_60sl_4_times_20210421094004.json
. The extraneous data seems to be coming from a few keys in the headers, but I’m not sure how to tell dcm2bids to ignore that stuff.
My config file is set up as such:
{
"descriptions": [
{
"dataType": "func",
"modalityLabel": "bold",
"customLabels": "task-MID",
"criteria": {
"SidecarFilename": "*8_*_EPI_2.5_60sl_4_times*"
}
},
{
"dataType": "func",
"modalityLabel": "bold",
"customLabels": "task-MID",
"criteria": {
"SidecarFilename": "*7_*_EPI_2.5_60sl_4_times*"
}
},
{
"dataType": "func",
"modalityLabel": "bold",
"customLabels": "task-SST",
"criteria": {
"SidecarFilename": "*10_*_EPI_2.5_60sl_4_times*"
}
},
{
"dataType": "func",
"modalityLabel": "bold",
"customLabels": "task-SST",
"criteria": {
"SidecarFilename": "*9_*_EPI_2.5_60sl_4_times*"
}
},
{
"dataType": "fmap",
"modalityLabel": "magnitude1",
"criteria": {
"SidecarFilename": "*_gre_field_mapping_230FOV_*_e1.json"
},
"intendedFor": [
0,
1,
2,
3
]
},
{
"dataType": "fmap",
"modalityLabel": "magnitude2",
"criteria": {
"SidecarFilename": "*_gre_field_mapping_230FOV_*_e2.json"
},
"intendedFor": [
0,
1,
2,
3
]
},
{
"dataType": "fmap",
"modalityLabel": "phasediff",
"criteria": {
"SidecarFilename": "*_gre_field_mapping_230FOV_*_e2_ph.json"
},
"intendedFor": [
0,
1,
2,
3
]
},
{
"dataType": "fmap",
"modalityLabel": "epi",
"customLabels": "dir-j",
"criteria": {
"SidecarFilename": "*_EPI_2_5_60sl_PA_*"
},
"intendedFor": [
0,
1,
2,
3
]
},
{
"dataType": "anat",
"modalityLabel": "T1w",
"criteria": {
"SeriesDescription": "t1_mprage_sag_p2"
}
}
]
}
Any help with this issue would be greatly appreciated. Of course, I can supply more information about my environment as needed.