Hello!
Is there a way to specify the number of volume as a criterion for conversion within the dcm2bids configuration JSON?
If not, has anyone figured out a way to implement this feature for their conversions?
Thanks!
-Tim
Hello!
Is there a way to specify the number of volume as a criterion for conversion within the dcm2bids configuration JSON?
If not, has anyone figured out a way to implement this feature for their conversions?
Thanks!
-Tim
Hi @tjhendrickson,
dcm2bids
only uses json metadata as criterion. If you converted dcm2nii, then add something in the json metadata about number of volumes (probably could do pretty easy with nibabel and json python packages, chatgpt would likely do a decent job), then run dcm2bids
with --skip_dcm2niix
using the metadata you added as a criterion, that is a possibility. But even then, there’s no less than / more than logic, so you would need to explicitly state how many volumes you are looking for (or create a config item for each number of possible volumes you would be okay with keeping). Alternatively, if you are looking to keep volumes that have at least X amount of volumes, you can put in another metadata json item for something like "volume_check":True
and then use volume_check
as a criterion.
Best,
Steven
MANAGED BY INCF