brainstat.mesh.interpolate.combine_parcellations

brainstat.mesh.interpolate.combine_parcellations(files, output_file)[source]

Combines multiple nifti files into one.

Parameters
  • files (list) – List of strings containing the paths to nifti files.

  • output_file (str) – Path to the output file.

Notes

This function assumes that 0’s are missing data. When multiple files have non-zero values in the same voxel, then the data from the first provided file is kept.