cifti.axes.to.maps: Group axes into MatrixIndicesMap elements.

cifti.axes.to.mapsR Documentation

Group axes into MatrixIndicesMap elements.

Description

A CIFTI-2 file describes its matrix dimensions with MatrixIndicesMap elements, and the format says that the same element must be used for both dimensions when they describe the same thing. This is the case for connectome files (a .dconn or .pconn has the same brainordinates or parcels in both dimensions), and Connectome Workbench writes such a file with a single element that applies to both dimensions, while nibabel writes one per dimension. The merged form is what this writer produces.

Usage

cifti.axes.to.maps(axes)

Arguments

axes

list of axes, named by matrix dimension.

Value

a list of lists with the entries 'axis' (the axis) and 'dims' (the matrix dimensions it describes).


freesurferformats documentation built on Sept. 25, 2026, 1:07 a.m.