Hi Arnaud,
Thanks for the help! I’m not sure how to use PR 260 - I’m using the dcm2bids container. I tried to get into the container to inspect the code and make the change, but for some reason when I “apptainer shell dcm2bids_3.0.2.sif”, it won’t let me inside the container. (Maybe I’m doing something wrong, I’m fairly new to containers.) But here’s the whole config file:
{
"_comment": "dcm2bids config file for UT NECTARY study data - June 23, 2023",
"descriptions": [
{
"datatype": "anat",
"suffix": "T2w",
"custom_entities": "rec-orig",
"criteria": {
"SeriesDescription": "*T2*",
"ImageTypeText": [
"ORIGINAL",
"PRIMARY",
"M",
"DIS2D"
]
},
"sidecar_changes": {
"ProtocolName": "T2 - original scan"
}
},
{
"datatype": "anat",
"suffix": "T2w",
"custom_entities": "rec-norm",
"criteria": {
"SeriesDescription": "*T2*",
"ImageTypeText": [
"ORIGINAL",
"PRIMARY",
"M",
"NORM",
"DIS2D"
]
},
"sidecar_changes": {
"ProtocolName": "T2 - normalized scan"
}
},
{
"datatype": "anat",
"suffix": "T1w",
"custom_entities": "rec-orig",
"criteria": {
"SeriesDescription": "*T1*",
"ImageTypeText": [
"ORIGINAL",
"PRIMARY",
"M",
"DIS2D"
]
},
"sidecar_changes": {
"ProtocolName": "T1 - original scan"
}
},
{
"datatype": "anat",
"suffix": "T1w",
"custom_entities": "rec-norm",
"criteria": {
"SeriesDescription": "*T1*",
"ImageTypeText": [
"ORIGINAL",
"PRIMARY",
"M",
"NORM",
"DIS2D"
]
},
"sidecar_changes": {
"ProtocolName": "T1 - normalized scan"
}
},
{
"_comment": "NECTARY resting state config files",
"id": "id_rest_AP",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-rest",
"dir-AP"
],
"criteria": {
"SeriesDescription": "*REST*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"TaskName": "rest AP"
}
},
{
"_comment": "NECTARY resting state config files",
"id": "id_rest_PAWD",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-rest",
"dir-PAWD"
],
"criteria": {
"SeriesDescription": "*REST*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"TaskName": "rest AP, but taken PA"
}
},
{
"_comment": "NECTARY resting state phase map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-restDmap",
"dir-PA"
],
"criteria": {
"SeriesDescription": "*REST*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"IntendedFor": [
"id_rest_AP",
"id_rest_PAWD"
],
"TaskName": "rest dmap PA"
}
},
{
"_comment": "NECTARY resting state phase map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-restDmap",
"dir-APWD"
],
"criteria": {
"SeriesDescription": "*REST*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"IntendedFor": [
"id_rest_AP",
"id_rest_PAWD"
],
"TaskName": "rest dmap PA, but taken AP"
}
},
{
"_comment": "NECTARY MID task (card guessing) config files",
"id": "id_mid_AP",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-mid",
"dir-AP"
],
"criteria": {
"SeriesDescription": "*MID*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"TaskName": "mid"
}
},
{
"_comment": "NECTARY MID task (card guessing) config files",
"id": "id_mid_PAWD",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-mid",
"dir-PAWD"
],
"criteria": {
"SeriesDescription": "*MID*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"TaskName": "mid"
}
},
{
"_comment": "NECTARY Social Reward task config files",
"id": "id_soc_AP",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-soc",
"dir-AP"
],
"criteria": {
"SeriesDescription": "*SOCIAL_dir-AP*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"TaskName": "social likeability task Healey, 2014"
}
},
{
"_comment": "NECTARY Social Reward task WRONG DIRECTION config files",
"id": "id_soc_PAWD",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-soc",
"dir-PAWD"
],
"criteria": {
"SeriesDescription": "*SOCIAL_dir-AP*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"TaskName": "social likeability task Healey, 2014 wrong direction"
}
},
{
"_comment": "NECTARY distortion map for MID task (card guessing) and SWT",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-fMRIdist",
"dir-PA"
],
"criteria": {
"SeriesDescription": "*fMRIdist_dir-PA*",
"PhaseEncodingDirection":"j",
"ProtocolName": "*distmap*"
},
"sidecar_changes": {
"IntendedFor": [
"id_mid_AP",
"id_mid_PAWD",
"id_soc_AP",
"id_soc_PAWD"
]
}
},
{
"_comment": "NECTARY distortion map WRONG DIR for MID (card guessing) and SWT",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-fMRIdist",
"dir-APWD"
],
"criteria": {
"SeriesDescription": "*fMRIdist_dir-PA*",
"PhaseEncodingDirection": "j-",
"ProtocolName": "*distmap*"
},
"sidecar_changes": {
"IntendedFor": [
"id_mid_AP",
"id_mid_PAWD",
"id_soc_AP",
"id_soc_PAWD"
]
}
},
{
"_comment": "NECTARY Cyberball task config files",
"id": "id_cyb_AP",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-cyb",
"dir-AP"
],
"criteria": {
"SeriesDescription": "*Cyberball_dir-AP*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"TaskName": "cyberball"
}
},
{
"_comment": "NECTARY Cyberball task config files",
"id": "id_cyb_PAWD",
"datatype": "func",
"suffix": "bold",
"custom_entities": [
"task-cyb",
"dir-PAWD"
],
"criteria": {
"SeriesDescription": "*Cyberball_dir-AP*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"TaskName": "cyberball task wrong direction"
}
},
{
"_comment": "NECTARY Cyberball distortion map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-cybDmap",
"dir-PA"
],
"criteria": {
"SeriesDescription": "*Cyberball_dir-PA*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"IntendedFor": [
"id_cyb_AP",
"id_cyb_PAWD"
]
}
},
{
"_comment": "NECTARY Cyberball distortion map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-cybDmap",
"dir-APWD"
],
"criteria": {
"SeriesDescription": "*Cyberball_dir-PA*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"IntendedFor": [
"id_cyb_AP",
"id_cyb_PAWD"
]
}
},
{
"_comment": "NECTARY DWI 80-direction acquisition config files",
"id": "id_dwi_AP",
"datatype": "dwi",
"suffix": "dwi",
"custom_entities": "dir-AP",
"criteria": {
"SeriesDescription": "*dwi*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j-",
"ImageType": [
"ORIGINAL",
"PRIMARY",
"DIFFUSION",
"NONE"
]
}
},
{
"_comment": "NECTARY DWI 80-dir WRONG DIRECTION acquisition config files",
"id": "id_dwi_PAWD",
"datatype": "dwi",
"suffix": "dwi",
"custom_entities": "dir-PAWD",
"criteria": {
"SeriesDescription": "*dwi*",
"ProtocolName": "*dir-AP*",
"PhaseEncodingDirection": "j",
"ImageType": [
"ORIGINAL",
"PRIMARY",
"DIFFUSION",
"NONE"
]
}
},
{
"_comment": "NECTARY DWI distortion map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-dwi",
"dir-PA"
],
"criteria": {
"SeriesDescription": "*dwi*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j"
},
"sidecar_changes": {
"IntendedFor": [
"id_dwi_AP",
"id_dwi_PAWD"
]
}
},
{
"_comment": "NECTARY DWI distortion map config files",
"datatype": "fmap",
"suffix": "epi",
"custom_entities": [
"acq-dwi",
"dir-APWD"
],
"criteria": {
"SeriesDescription": "*dwi*",
"ProtocolName": "*distmap*",
"PhaseEncodingDirection": "j-"
},
"sidecar_changes": {
"IntendedFor": [
"id_dwi_AP",
"id_dwi_PAWD"
]
}
}
]
}