Import in python using from mcutils.scripts.split.merge import merge_files
mcutils.scripts.split.merge.
merge_files
Merges the given files into a single file
paths – NIFTI filenames
out_path – output NIFTI file
clean – whether to clean the input files after merging