Hi Martin,
I am trying to use the BIDS export on a brainstorm dataset and I get the following error when I try to validate the BIDS dataset on OpenNeuro:
Hi Guys,
It seems that you are not creating NIFTI files according to the BIDS format. See this discussion: https://github.com/bids-standard/bids-validator/issues/565.
In the function out_mri_nii, line 103, you have dimension=4. This causes the dataset to have errors when validating. I changed it to 3 and now it works...for what that is worth.
Hi Martin,
I just completed the successful export of my dataset to BIDS and upload to OpenNeuro. This really is a great addition to Brainstorm. I would make just two suggestions. 1). In the dataset_description.json, if the author is missing, OpenNeuro fails to make a DOI on the dataset. Might want to make this clear or at the very least include it in the json as an empty string. 2). Maybe you could have the option to use a defaced MRI in the export. I was happy to see that I could get defaced MRI's but after the export to BIDS, I had to manually go back and deface them and export them to the BIDS dataset.
Just some suggestions. Great work!
Thank you for the kind words and the valuable feedback. I added an empty AUTHORS field in the dataset_description.json, and added a checkbox in the process options to deface the MRI beforehand. If this option is checked and multiple MRIs are present including a defaced one (identified with the " | deface" suffix), it does not deface it again but rather just exports the defaced one.
One drawback is that there is an extra user interaction required towards the beginning of the export process which is to choose which software to use for defacing (SPM vs Freesurfer). I guess to alleviate this you could make a pipeline first with the MRI deface process, which gives you all options including the software to use, followed by the export to BIDS process.
I tried to export a BST protocol to BIDS, checking the deface option. In the final BIDS-folder the original MRIs are saved, even though the defacing was successful: they were saved in the database (MRI | deface). When I run the exporter a second time it does not deface again, but still saves the original MRIs in the BIDS folder. I'm using the Brainstorm version at the BIC (/meg/meg1)