I try to use dcm2bids or heudiconv to use fMRIprep at the end.
Anyway, will you recommend any program converting dicom to bids?
The data I have has different sessions from person to person, so it is hard to handle.
In addition, is it possible to use dcm2bids or heudiconv with Python (Jupyter notebook)?
Most of tutorials are done with MacOS, and handling multiple session in Linux is quite hard for me.
If it is possible, can you attach a code example of handling multiple sessions?
Is there any tips to organize folders before using dcm2bids or heudiconv when handling multiple subjects, multiple sessions?
Thank you for your question! Please find answers to your questions below:
Using dcm2bids or HeuDiConv are good converting programs. Depending on the size of your set, this could be a combination of using automated programs and a custom solution. We have tutorials for converting data into BIDS: showing a more custom solution and using HeuDiConv
HeuDiConv uses a heuristics.py file so not explicitly with python with but using it. The easiest way is using a docker image. Dcm2bids appears to be command-line mostly. I have not seen a jupyter notebook implementation but we have a BIDS starter kit that can be useful to look through!
The HeuDiConv tutorial showed a single subject with multiple sessions
Regarding folder organization pre-dcm2bids or HeuDiConv would be what makes making the programmatic solution more easier to implement and script
I just saw your post. I’m one of the main dev of dcm2bids and will be more than happy to help you if you decide to go with dcm2bids. We are starting a new cycle of development and new nice features will be shortly added to dcm2bids. Don’t hesitate to ask.
Have a good day and happy new year.