get_brain_model¶
Import in python using from mcot.core._scripts.cifti.ptx2dconn import get_brain_model
-
mcot.core._scripts.cifti.ptx2dconn.get_brain_model(filename: str, assumed_hemis=None) → nibabel.cifti2.cifti2_axes.BrainModelAxis[source]¶ Creates a CIFTI BrainModel axis based on the provided file
Parameters: - filename –
can be one of the following:
- dense CIFTI file, whose BrainModel axis should be adopted
- single volume (NIFTI) or surface (GIFTI/ASCII) used as a mask
- list of volumes and surfaces
- assumed_hemis – editable list of hemispheres each surface is assumed to be
Returns: BrainModelAxis describing the dataset
- filename –