WriteVectorToGifti: WriteVectorToGifti - Output an R data vector into an...

Description Usage Arguments Examples

View source: R/WriteVectorToGifti.R

Description

This function will write an R data vector as a GIFTI file, properly indexed. Unfortunately, this function requires a compiled matlab package, SurfConnectivity. Contact Eric Feczko to get the package.

Usage

1
2
3
4
5
6
7
WriteVectorToGifti(
  metric_data,
  surf_template_file,
  matlab_path,
  surf_command,
  output_file
)

Arguments

metric_data

A numeric vector containing any values. Indexing must match the template file

surf_template_file

A character string representing the path to the surface template file, only used for indexing.

matlab_path

A character string representing the path to the matlab compiler

surf_command

A character string representing the path to the compiled SurfConnectivity folder

output_file

A character string representing the path to the output gifti file

Examples

1
WriteVectorToGifti(metric_data,surf_template_file,matlab_path,surf_command,output_file)

DCAN-Labs/MarginalModelCIFTI documentation built on Nov. 30, 2021, 3:40 p.m.