Can't understand what's wrong with my BIDS config file

Hi everyone,

I’m now at the piloting stage and just had my first fMRI scans ever :slight_smile:

I tried to convert my dicom images into the proper BIDS format but it seems like something is wrong with my config file, as the BIDS validator is very mad at my file names for some reason.

This is the error I get, I have one for each of the functional scans

This is the configuration file I used with dcm2bids in order to convert it to the right formart

{
  "descriptions": [
    {
      "datatype": "anat",
      "suffix": "T1w",
      "criteria": {
        "SeriesDescription": "*t1_mprage*"
      },
      "sidecar_changes": {
        "ProtocolName": "T1"
      }
    },
    {
      "datatype": "func",
      "suffix": "bold",
      "criteria": {
        "ProtocolName": "*mb*mm*tr*te*HIPPO*"
      },
	  "sidecar_changes": {
        "TaskName": "testing"
      }
    }
  ]
}

There seem to be no problem with the anatomical files

If anyone knows why does the BIDS validator give me an error message and the solution for it, it’d be great help!

Thanks a lot!
Shahar

BOLD requires a task entity. I don’t know much about dcm2bids for how to add that, but you should be able to do it.

Could you try validating with the https://deno.land/x/bids_validator? We have been working on improving error messages for invalid filenames.

1 Like

Hi @Shahar_Ben_Noun,

Please look at the documentation here: Create a config file - dcm2bids documentation

In particular, you need to add "custom_entities": "task-XX" to your config.

Best,
Steven

1 Like

Thank you! I totally missed that custom_entities is a mandatory field, this worked :))