make_xifti | R Documentation |
"xifti"
objectAssembles cortical data, subcortical data, and/or surface geometry to form a
"xifti"
object. The inputs can be file paths, GIFTI or NIFTI files
which have been read in, or data objects (vectors, matrices or arrays,
depending on the argument). See as.xifti
for a user-function wrapper
that only works with data objects.
make_xifti(
cortexL = NULL,
cortexL_mwall = NULL,
cortexR = NULL,
cortexR_mwall = NULL,
subcortVol = NULL,
subcortLabs = NULL,
subcortMask = NULL,
mwall_values = c(NA, NaN),
cifti_info = NULL,
surfL = NULL,
surfR = NULL,
idx = NULL,
col_names = NULL,
HCP_32k_auto_mwall = TRUE,
read_dir = NULL,
validate = TRUE
)
cortexL , cortexL_mwall |
Left cortex data and ROI. Each must be a path to
a GIFTI file, 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 path to
a GIFTI file, If If Since the unmasked cortices must have the same number of vertices,
|
subcortVol , subcortLabs , subcortMask |
|
mwall_values |
If |
cifti_info |
(Optional) The result of Column names from
|
surfL , surfR |
(Optional) Surface geometries for the left or right cortex.
Can be a surface GIFTI file path or |
idx |
For file paths provided to |
col_names |
Names of each measurement/column in the data. Overrides
names indicated in |
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 |
read_dir |
(Optional) Append a directory to all file names in the
arguments. If |
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"
object; see template_xifti
xifti$meta$subcort$labels
is a factor with the following levels:
Cortex-L
Cortex-R
Accumbens-L
Accumbens-R
Amygdala-L
Amygdala-R
Brain Stem
Caudate-L
Caudate-R
Cerebellum-L
Cerebellum-R
Diencephalon-L
Diencephalon-R
Hippocampus-L
Hippocampus-R
Pallidum-L
Pallidum-R
Putamen-L
Putamen-R
Thalamus-L
Thalamus-R
These correspond to the same structures as given by
ft_read_cifti
in the cifti-matlab
MATLAB toolbox. Note that
the first two levels (left and right cortex) are not used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.