write_gifti¶
Import in python using from mcutils.utils.write_gifti import write_gifti
-
mcutils.utils.write_gifti.
write_gifti
(filename, arr_list, brain_structure, intent_list=None, color_map=None, meta_list=None, **kwargs)[source]¶ - Parameters
filename – output filename
arr_list – list of arrays to be stored
brain_structure – ‘CortexLeft’ or ‘CortexRight’
intent_list – intent of each array (list of same length as arr_list)
color_map – None for non-label giftis, ‘default’ for default qualitative colour map, dict mapping value to RGBA values otherwise
meta_list – list of dictionaries with the array metadata
kwargs – additional values to be stored to the meta data