NII to BIDS (no dicoms)

Dear Sisters and Brothers in Neuroscience! ;D

I received a dataset that I will be analyzing. Unfortunately, I got only nifti files and there is no way to get the dicoms. Is there a method of converting the data into BIDS? Especially I need the json files to be created for each nii.

Does anyone know a tool that supports conversion from nii to BIDS?

A couple of BIDS converters can work with nifti files:

  • bidsme
  • explore asl
  • data2bids

See the list of converters here: Brain Imaging Data Structure

However

  • They may not work with the datatype you have (for example not sure that explore ASL can deal with func data).
  • Many of them still expect that you have a json side car for each nifti (BIDSme for example - from the top of my head).
  • They may expect a certain input structure to work efficiently, so we may have to move files around.

Not played with it but, from the README, data2bids sounds pretty flexible but may require you to play with python and json files for configuration.

Regarding the “missing” JSON files

Depending on the datatype you are dealing with this can be more of less annoying.

2 examples:

For the most typical anat files, they don’t have any REQUIRED metadata, so you could have just the data files without any accompanying JSON. If you get into more exotic anat files (like for quantitative MRI) then this may become a problem.

For func files you only need TaskName and RepetitionTime and the former you can decide what it is and the latter should be in the Nifti header. So you should be OKish there too.

Obviously you will be missing some metadata that would be required for some type of preprocessing (like slice timing info).

Tips

2 Likes

Based on your description, you may also want to consider the enigma project halfpipe siftware:

https://onlinelibrary.wiley.com/doi/full/10.1002/hbm.25829