Write vertex-wise brain surface data to a file in FreeSurfer ascii 'curv' format.

write.fs.morph.asc(filepath, data, coords = NULL)

Arguments

filepath

string. Full path to the output curv file. If it ends with ".gz", the file is written in gzipped format. Note that this is not common, and that other software may not handle this transparently.

data

vector of doubles. The brain morphometry data to write, one value per vertex.

coords

optional, nx3 matrix of x,y,z coordinates, one row per vertex in 'data'. If `NULL`, all zeroes will be written instead.

See also