Description Usage Arguments Examples
View source: R/WriteMatrixToCifti.R
This function will write an R data matrix as a CIFTI pconn file, properly indexed. Unfortunately, this function requires a compiled matlab package, SurfConnectivity. Contact Eric Feczko to get the package.
1 2 3 4 5 6 7 8 9 | WriteMatrixToCifti(
metric_data,
ncols,
surf_template_file,
matlab_path,
surf_command,
output_file,
wb_command
)
|
ncols |
The number of columns in the matrix – used to write the array to a text 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 |
metric_data_matrix |
A numeric vector containing any values. Indexing must match the template file |
1 | WriteMatrixToCifti(metric_data,ncols,surf_template_file,matlab_path,surf_command,output_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.