Dcm2bids Parallel

Hey everyone.

I have some questions regarding parallel dcm2bids for running more than one participant in parallel.
I just followed the steps from this page:(Multiple participants in parallel - dcm2bids documentation)

But still I would like to know which is the output in the Bash shell. So, I’m looking for someone who had worked before with this software…

Thanks a lot!

Hi @dbg0899,

May you please rephrase this question, I am sorry but I am not sure I understand what you are asking.

But also, there are other ways to parallelize than what is listed in that documentation. For example, if you are on a cluster, you can use a SLURM job array for example, or even just looping over subjects and putting an & after your dcm2bids command will tell terminal to not wait to start the next dcm2bids command (the downside of that is that you do not explicitly state how many jobs can run at one time, so you have to be careful to have your loop only have as many subjects as you want to run in parallel. There probably is a way to control how many processes go at once, but I do not know the syntax off the top of my head, ChatGPT may be helpful in that regard).

Best,
Steven

Hey everyone.

I have one question because im trying to run dcm2bids with GNU parallel for 200 subjects, but it seems to have an error when it is running dcm2bids. It says: catrastophic error: found 3840 but expected 3880 slices. Next, cite the PARREC dir and says error unknown not magnitude, real, imaginary or phase (even the tmp dcm2bids have those files!!), and doesn’t convert the dicom files to bids…but only for some specific subjects, not all of them.

The thing is i have in the subjects folder different files such as: DICOM and PARREC file. Do you think this is the reason for what it is getting an error? Also, do I have to do dcm2bids helper even if there are 200 subjects and im working with GNU parallel?

Thank you in advance!

Hi @dbg0899,

It is hard to say without knowing your command you’re running, your config file, and some json contents.

Do you know what kind of files this is referring to? That is, is it when converting bold, dwi, anat, etc?

Do you notice any difference in the dcm2niix outputs for failing subjects?

Helper should only be run once, assuming everyone has the same or similar set of acquisitions, just so you can get the naming conventions right for the study.

Best,
Steven