5.7. Dumping Pipeline Data

It is usually not required to check the data object but for debugging purposes one can do that. Since, there is no direct way to interact with it, junifer provides a way to dump the object before, in between and / or after pre-processing. It is controlled by the JUNIFER_PREPROCESSING_DUMP_LOCATION and JUNIFER_PREPROCESSING_DUMP_GRANULARITY configuration options.

junifer dumps the "data" attribute of the data object as proper files in their respective formats, for example, nibabel.Nifti1Image gets dumped as a .nii.gz file. As of now, junifer can dump nibabel.Nifti1Image and pandas.DataFrame (confound files) file formats. In case you add custom data types which support different file formats, you can create and register a custom dumper.