In case that it is helpful for anyone in the future the command I ran:
dcm2bids -d /home/administrator/dcm2bids-cpp/sourcedata/CPPID/ -p CPP00033A -s 1 -c /home/administrator/dcm2bids-cpp/code/dcm2bids_config.json -o /home/administrator/dcm2bids-cpp/BIDSified/ --auto_extract_entities
The configuration file I used:
{
“post_op”: [
{
“cmd”: “pydeface --outfile dst_file src_file”,
“datatype”: “anat”,
“suffix”: [
“T1w”,
“FLAIR”
]
}
],
“descriptions”: [
{
“datatype”: “anat”,
“suffix”: “T1w”,
“criteria”: {
“SeriesDescription”: “T1w_cor-mprage*”
}
},
{
“datatype”: “anat”,
“suffix”: “FLAIR”,
“criteria”: {
“SeriesDescription”: “FLAIR”
}
},
{
“id”: “dwi”,
“datatype”: “dwi”,
“suffix”: “dwi”,
“custom_entities”: “dir-AP”,
“criteria”: {
“SeriesDescription”: “dwi_dir-AP-sms3*”
}
},
{
“datatype”: “dwi”,
“suffix”: “dwi”,
“custom_entities”: “dir-B0PA”,
“criteria”: {
“SeriesDescription”: “dwi_dir-B0PA*”
},
“sidecar_changes”: {
“IntendedFor”: “dwi”
}
},
{
“id”: “task-rest”,
“datatype”: “func”,
“suffix”: “bold”,
“custom_entities”: “echo”,
“criteria”: {
“SeriesDescription”: “func-bold_task*”
},
“sidecar_changes”: {
“TaskName”: “rest”
}
},
{
“datatype”: “fmap”,
“suffix”: “epi”,
“criteria”: {
“SeriesDescription”: “fmap-epi_acq-se_dir-AP_CMRRC2P*”
},
“sidecar_changes”: {
“IntendedFor”: “task-rest”
}
},
{
“datatype”: “fmap”,
“suffix”: “epi”,
“criteria”: {
“SeriesDescription”: “fmap-epi_acq-se_dir-PA_CMRRC2P*”
},
“sidecar_changes”: {
“IntendedFor”: “task-rest”
}
},
{
“id”: “asl”,
“datatype”: “perf”,
“suffix”: “asl”,
“criteria”: {
“SeriesDescription”: “ASL-pcasl-low”
},
“sidecar_changes”: {
“BackgroundSuppression”:false,
“M0Type”:“Separate”
}
},
{
“datatype”: “perf”,
“suffix”: “m0scan”,
“criteria”: {
“SeriesDescription”: “ASL-pcasl-low_M0*”
},
“sidecar_changes”: {
“IntendedFor”: “asl”
}
}
]
}