mris_convert_curv {freesurfer} | R Documentation |
Convert Curvature file
Description
This function call mris_convert
,
using the -c
option
Usage
mris_convert_curv(curv, opts = "", ...)
Arguments
curv |
(character) scalar curv overlay file |
opts |
(character) additional options to
|
... |
additional arguments to |
Value
Result of mris_convert
Note
The filename of the output may change due to how Freesurfer does curvature conversions and you may need to paste the prefix to get the correct filename, as seen in the example.
Examples
if (have_fs()) {
bert_surf_dir = file.path(fs_subj_dir(), "bert", "surf")
asc_file = mris_convert_curv(
infile = file.path(bert_surf_dir, "lh.white"),
curv = file.path(bert_surf_dir, "lh.thickness")
)
if (!file.exists(asc_file)) {
asc_file = file.path(dirname(asc_file), paste0("lh.",
basename(asc_file)))
}
res = read_fs_table(asc_file, header = FALSE)
colnames(res) = c("index", "coord_1", "coord_2", "coord_3", "value")
head(res)
}
[Package freesurfer version 1.6.10 Index]