Learn R Programming

freesurfer (version 1.6.10)

mri_surf2surf: Use Freesurfers mri_surf2surf function to resamples one cortical surface onto another

Description

This function calls Freesurfer mri_surf2surf to resample one cortical surface onto another

Usage

mri_surf2surf(
  subject = NULL,
  target_subject = NULL,
  trg_type = c("curv", "w", "mgh", "nii"),
  src_type = c("curv", "w"),
  outfile = NULL,
  hemi = c("lh", "rh"),
  sval = c("thickness"),
  subj_dir = NULL,
  opts = "",
  verbose = TRUE
)

Value

Name of output file

Arguments

subject

(character) vector of subject name

target_subject

(character) vector of target subject name

trg_type

(character) target file type, can be curv, paint (w), mgh, or nii

src_type

(character) source file type, can be curv or paint (w)

outfile

(character) output filename

hemi

(character) hemisphere to run statistics

sval

(character) source file

subj_dir

(character path) if a different subjects directory is to be used other than SUBJECTS_DIR from shell, it can be specified here. Use with care as if the command fail, it may not reset the SUBJECTS_DIR back correctly after the error

opts

(character) additional options to mri_surf2surf

verbose

(logical) print diagnostic messages

Examples

Run this code
if (have_fs()) {
   out = mri_surf2surf( 
   subject = 'bert',
   target_subject = 'fsaverage', 
   trg_type  = 'curv', 
   src_type  = 'curv', 
   hemi = "rh",
   sval = "thickness")
} 

Run the code above in your browser using DataLab