mris_convert: Use Freesurfers MRIs Converter

View source: R/mris_convert.R

mris_convertR Documentation

Use Freesurfers MRIs Converter

Description

This function call mris_convert, a general conversion program for converting between cortical surface file formats

Usage

mris_convert(infile, outfile = NULL, ext = ".asc", opts = "", verbose = TRUE)

Arguments

infile

(character) file path for input file

outfile

(character) output file path

ext

(character) output file extension, default is set to .asc

opts

(character) additional options to add to front of command

verbose

(logical) print diagnostic messages

Value

Name of output file

Examples

if (have_fs()) {
 bert_surf_dir = file.path(fs_subj_dir(), "bert", "surf")
 asc_file = mris_convert(
 infile = file.path(bert_surf_dir, "lh.white")
 )  
} 

muschellij2/freesurfer documentation built on Nov. 28, 2023, 4:45 a.m.