Summary of what happened:
I am running the dcm2bids converter. The config.json file is set up to BIDSify anat, func and fmaps. So far it does it correctly, but I would like the fmaps filenaming convention follow that of the func > task-rest and func > task-sessionName bold files. We have two sessions: Reward and Threat. Is it possible to include the label “task-description” in the func file name similar to the func files I mentioned before?
Please see below for the config file:
Command used (and if a helper script was used, a link to the helper script or the command generated):
{
"extractors": {
"SeriesDescription": [
"(?P<echo>[0-9])"
]
},
"descriptions": [
{
"datatype": "anat",
"suffix": "T1w",
"criteria": {
"SeriesDescription": "T1w_MPR",
"EchoTime": 0.00222
},
"sidecar_changes": {
"ProtocolName": "T1w_MPR"
}
},
{
"id": "task_rest",
"datatype": "func",
"suffix": "bold",
"custom_entities": "task-rest",
"criteria": {
"ProtocolName": "bold_2mm_rest",
"SeriesDescription": "bold_2mm_rest",
"SeriesNumber": 8,
"ImageType": ["ORIG*", "PRIMARY", "M", "ND", "NORM", "MOSAIC", "MAGNITUDE"]
},
"sidecar_changes": {
"TaskName": "rest"
}
},
{
"datatype": "fmap",
"suffix": "epi",
"criteria": {
"ProtocolName": "ep2d_bold_2mm_A>P",
"SeriesNumber": 6,
"PhaseEncodingDirection": "j-",
"TotalReadoutTime": 0.0711195
},
"sidecar_changes": {
"TaskName": "rest"
}
},
{
"datatype": "fmap",
"suffix": "epi",
"criteria": {
"ProtocolName": "ep2d_bold_2mm_P>A",
"SeriesNumber": 7,
"PhaseEncodingDirection": "j",
"TotalReadoutTime": 0.0711195
},
"sidecar_changes": {
"TaskName": "rest"
}
},
{
"id": "task_reward",
"datatype": "func",
"suffix": "bold",
"custom_entities": "task-reward",
"criteria": {
"ProtocolName": "bold_2mm_task",
"SeriesDescription": "bold_2mm_task",
"SeriesNumber": 11,
"ImageType": ["ORIG*", "PRIMARY", "M", "ND", "NORM", "MOSAIC", "MAGNITUDE"]
},
"sidecar_changes": {
"TaskName": "reward"
}
},
{
"datatype": "fmap",
"suffix": "epi",
"criteria": {
"ProtocolName": "ep2d_bold_2mm_A>P",
"SeriesNumber": 9,
"PhaseEncodingDirection": "j-",
"TotalReadoutTime": 0.0711195
},
"sidecar_changes": {
"TaskName": "reward"
}
},
{
"datatype": "fmap",
"suffix": "epi",
"criteria": {
"ProtocolName": "ep2d_bold_2mm_P>A",
"SeriesNumber": 10,
"PhaseEncodingDirection": "j",
"TotalReadoutTime": 0.0711195
},
"sidecar_changes": {
"TaskName": "reward"
}
}
]
}
Version:
dcm2bids version: 3.2.0
Based on BIDS version: v1.9.0
Environment (Docker, Singularity / Apptainer, custom installation):
dcm2bids was installed through the Terminal and is being used in conjunction with a Python script.
Data formatted according to a validatable standard? Please provide the output of the validator:
PASTE VALIDATOR OUTPUT HERE
Relevant log outputs (up to 20 lines):
PASTE LOG OUTPUT HERE