write_metric_gifti | R Documentation |
Write the data for the left or right cortex to a metric GIFTI file.
write_metric_gifti(
x,
gifti_fname,
hemisphere = c("left", "right"),
intent = NULL,
data_type = NULL,
encoding = NULL,
endian = c("LittleEndian", "BigEndian"),
col_names = NULL,
label_table = NULL
)
x |
A |
gifti_fname |
Where to write the GIFTI file. |
hemisphere |
|
intent |
"NIFTI_INTENT_*". |
data_type |
the type of |
encoding |
One of "ASCII", "Base64Binary", or "GZipBase64Binary". If
|
endian |
"LittleEndian" (default) or "BigEndian". If |
col_names |
The names of each data column in |
label_table |
A data.frame with labels along rows. The row names should be the label names. The column names should be among: "Key", "Red", "Green", "Blue", and "Alpha". The "Key" column is required whereas the others are optional (but very often included). Values in the "Key" column should be non-negative integers, typically beginning with 0. The other columns should be floating-point numbers between 0 and 1. Although CIFTI files support a different label table for each data column, GIFTI files only support a single label table. So this label table should be applicable to each data column. |
Whether the GIFTI was successfully written
Other writing:
separate_cifti()
,
write_cifti()
,
write_subcort_nifti()
,
write_surf_gifti()
,
write_xifti2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.