write_spheres: Generate GIFTI sphere surface files

View source: R/resample_gifti.R

write_spheresR Documentation

Generate GIFTI sphere surface files

Description

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.

Usage

write_spheres(sphereL_fname, sphereR_fname, resamp_res, write_dir = NULL)

Arguments

sphereL_fname

File path to left-hemisphere spherical GIFTI to be created

sphereR_fname

File path to right-hemisphere spherical GIFTI to be created

resamp_res

Target resolution for resampling (number of cortical surface vertices per hemisphere).

write_dir

(Optional) directory to place the sphere files in. If NULL (default), do not append any directory to the sphere file paths.

Value

The names of the written sphere files, invisibly


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.