as.xifti | R Documentation |
"xifti"
from dataAssembles cortical data, subcortical data, and/or surface geometry to form a
"xifti"
. The inputs must be data objects (vectors, matrices or
arrays, depending on the argument).
as.xifti(
cortexL = NULL,
cortexL_mwall = NULL,
cortexR = NULL,
cortexR_mwall = NULL,
mwall_values = c(NA, NaN),
subcortVol = NULL,
subcortLabs = NULL,
subcortMask = NULL,
surfL = NULL,
surfR = NULL,
col_names = NULL,
HCP_32k_auto_mwall = TRUE,
validate = TRUE
)
as_xifti(
cortexL = NULL,
cortexL_mwall = NULL,
cortexR = NULL,
cortexR_mwall = NULL,
mwall_values = c(NA, NaN),
subcortVol = NULL,
subcortLabs = NULL,
subcortMask = NULL,
surfL = NULL,
surfR = NULL
)
as.cifti(
cortexL = NULL,
cortexL_mwall = NULL,
cortexR = NULL,
cortexR_mwall = NULL,
mwall_values = c(NA, NaN),
subcortVol = NULL,
subcortLabs = NULL,
subcortMask = NULL,
surfL = NULL,
surfR = NULL
)
as_cifti(
cortexL = NULL,
cortexL_mwall = NULL,
cortexR = NULL,
cortexR_mwall = NULL,
mwall_values = c(NA, NaN),
subcortVol = NULL,
subcortLabs = NULL,
subcortMask = NULL,
surfL = NULL,
surfR = NULL
)
cortexL , cortexL_mwall |
Left cortex data and ROI. Each must be a data matrix or vector. If If Since the unmasked cortices must have the same number of vertices,
|
cortexR , cortexR_mwall |
Right cortex data and ROI. Each must be a data matrix or vector. If If Since the unmasked cortices must have the same number of vertices,
|
mwall_values |
If |
subcortVol , subcortLabs , subcortMask |
|
surfL , surfR |
(Optional) Surface geometries for the left or right cortex.
Can be a surface GIFTI file path or |
col_names |
Names of each measurement/column in the data. |
HCP_32k_auto_mwall |
If left and/or right cortex data is provided, and
the number of vertices matches that of the HCP 32k mesh (29696 on left, and
29716 on right), should the medial wall masks be added to the |
validate |
Validate that the result is a |
Each data or surface component is optional. Metadata components
(cortex[L/R]_mwall
, subcortLabs
, and subcortMask
) will
be ignored if its corresponding data component is not provided. If no data or
surface components are provided, then the template_xifti
will
be returned.
If cortical data are provided without a corresponding medial wall mask, or
if the provided mask is invalid or empty, then the medial wall will be
inferred from data rows that are constantly a value in mwall_values
.
But if mwall_values
is NULL
, no attempt to infer the medial
wall will be made and the medial wall metadata entry will be NULL
.
The total number of grayordinates will be
G = (V_L - mwall_L) + (V_R - mwall_R) + V_S
: V_L - mwall_L
left
vertices, V_R - mwall_R
right vertices and V_S
subcortical
voxels. T
, the total number of measurements (columns of data), must be
the same for each brainstructure.
A "xifti"
Other reading:
info_cifti()
,
load_parc()
,
load_surf()
,
read_cifti()
,
read_surf()
,
read_xifti2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.