Hey Steven,
please excuse the delay - it took some time for me to get back to this issue.
When I run the helper I get these sequences (showing nii.gz files only here):
├── 005_02022_all_T1wC_biobankTRR_1_KS-s-a-1-1-2-88-1010103D-2-2000_20220809183753.nii.gz
├── 007_02022_all_boldB_TRR-rest-SMS_1-1_KS-t-a-1-6-1-8-24242400-38-869_20220809183753.nii.gz
├── 008_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e1.nii.gz
├── 008_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e2.nii.gz
├── 010_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e2_ph.nii.gz
└── 012_02022_all_boldB_TRR-SST-SMS_1-1_KS-t-a-1-6-1-8-24242400-38-869_20220809183753.nii.gz
(for proper ordering I added numbers to the front)
The config file looks like this now (based on the one on your link):
{
"descriptions": [
{
"datatype": "anat",
"suffix": "T1w",
"criteria": {
"SeriesDescription": "*T1*"
},
"sidecar_changes": {
"ProtocolName": "T1"
}
},
{
"id": "task_rest",
"datatype": "func",
"suffix": "bold",
"criteria": {
"ProtocolName": "*boldB_TRR-rest*"
}
},
{
"id": "id_task_SST",
"datatype": "func",
"suffix": "bold",
"criteria": {
"ProtocolName": "*boldB_TRR-SST*",
"SeriesDescription": "bold_task-SST"
},
"sidecar_changes": {
"TaskName": "SST"
}
},
{
"datatype": "fmap",
"suffix": "magnitude1",
"criteria": {
"ProtocolName": "*fmapB*",
"SeriesDescription": "fmap_task-SST"
},
"sidecar_changes": {
"TaskName": "SST",
"IntendedFor": "task_rest",
"IntendedFor": "task_SST"
}
},
{
"datatype": "fmap",
"suffix": "magnitude2",
"criteria": {
"ProtocolName": "*fmapB*",
"SeriesDescription": "fmap_task-SST"
},
"sidecar_changes": {
"TaskName": "SST",
"IntendedFor": "task_rest",
"IntendedFor": "task_SST"
}
},
{
"datatype": "fmap",
"suffix": "phase",
"criteria": {
"ProtocolName": "*fmapB*",
"SeriesDescription": "fmap_task-SST"
},
"sidecar_changes": {
"TaskName": "SST",
"IntendedFor": "task_rest",
"IntendedFor": "task_SST"
}
}
]
}
Which produces this output:
➜ output /home/marco/.local/bin/dcm2bids -d /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/10101/prisma/02022_all -p 001 -s 001 -c /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/mandatory_BIDS_files/dcm2bids_config_10101-prisma-12.json -o /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output
INFO | --- dcm2bids start ---
INFO | Running the following command: /home/marco/.local/bin/dcm2bids -d /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/10101/prisma/02022_all -p 001 -s 001 -c /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/mandatory_BIDS_files/dcm2bids_config_10101-prisma-12.json -o /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output
INFO | OS version: Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
INFO | Python version: 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
INFO | dcm2bids version: 3.1.1
INFO | dcm2niix version: v1.0.20240202
INFO | Checking for software update
INFO | Currently using the latest version of dcm2bids.
INFO | Currently using the latest version of dcm2niix.
INFO | participant: sub-001
INFO | session: ses-001
INFO | config: /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/mandatory_BIDS_files/dcm2bids_config_10101-prisma-12.json
INFO | BIDS directory: /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output
INFO | Auto extract entities: False
INFO | Validate BIDS: False
INFO | Running: dcm2niix -b y -ba y -z y -f %3s_%f_%p_%t -o /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output/tmp_dcm2bids/sub-001_ses-001 /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/10101/prisma/02022_all
INFO | Check log file for dcm2niix output
INFO | SIDECAR PAIRING
INFO | sub-001_ses-001_T1w <- 005_02022_all_T1wC_biobankTRR_1_KS-s-a-1-1-2-88-1010103D-2-2000_20220809183753
INFO | sub-001_ses-001_bold <- 007_02022_all_boldB_TRR-rest-SMS_1-1_KS-t-a-1-6-1-8-24242400-38-869_20220809183753
INFO | No Pairing <- 008_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e1
INFO | No Pairing <- 008_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e2
INFO | No Pairing <- 010_02022_all_fmapB_2p4mm_1-1_KS-t-a-2-1-1-8-24242400-5-698_20220809183753_e2_ph
INFO | No Pairing <- 012_02022_all_boldB_TRR-SST-SMS_1-1_KS-t-a-1-6-1-8-24242400-38-869_20220809183753
INFO | Moving acquisitions into BIDS folder "/mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output/sub-001/ses-001".
INFO | Logs saved in /mnt/c/Users/marco/HiDrive/KKB/QA/dcm2bids_mriqc_pipeline/output/tmp_dcm2bids/log/sub-001_ses-001_20240605-184922.log
INFO | --- dcm2bids end ---
So it only recognizes the 007 bold measurement and the 005 T1, and misses the 012 bold measurement and the fieldmap (008, 012).
Do you have any clue how to fix the config file?
Thank you so much for your work and best wishes,
Marco