This function generates a pair of GIFTI vertex-matched left and right spheres in the target resolution. These are required for resampling CIFTI and GIFTI files.
write_spheres(
sphereL_fname,
sphereR_fname,
resamp_res,
write_dir = NULL,
wb_path = NULL
)
File path to left-hemisphere spherical GIFTI to be created
File path to right-hemisphere spherical GIFTI to be created
Target resolution for resampling (number of cortical surface vertices per hemisphere).
(Optional) directory to place the sphere files in. If
NULL
(default), do not append any directory to the sphere file paths.
(Optional) Path to Connectome Workbench folder or executable.
If not provided, should be set with
ciftiTools.setOption("wb_path", "path/to/workbench")
.
The names of the written sphere files, invisibly