write_xifti2 {ciftiTools} | R Documentation |
Write a "xifti"
object to GIFTI and NIFTI files
Description
Write metric or label GIFTIs for the cortical surface data and NIFTIs for the
subcortical labels and mask in a "xifti"
object. Each present
brainstructure will be written; if a brainstructure is absent the
corresponding file is not written.
Usage
write_xifti2(
xifti,
brainstructures = NULL,
cortexL_fname = NULL,
cortexR_fname = NULL,
subcortVol_fname = NULL,
subcortLabs_fname = NULL,
ROI_brainstructures = "all",
ROIcortexL_fname = NULL,
ROIcortexR_fname = NULL,
ROIsubcortVol_fname = NULL,
write_dir = NULL,
verbose = FALSE
)
Arguments
xifti |
A |
brainstructures |
(Optional) character vector indicating a subset of
brain structure(s) to write: |
cortexL_fname , cortexR_fname |
(Optional) GIFTI file names (*.[func/label].gii) to save the [left/right] cortex data to. dtseries and dscalar files should use "func", whereas dlabel files should use "label". If |
subcortVol_fname , subcortLabs_fname |
(Optional) NIFTI file names to save the subcortical [volume/labels] to. Provide both or neither. If |
ROI_brainstructures |
Which ROIs should be obtained? |
ROIcortexL_fname , ROIcortexR_fname |
(Optional) GIFTI file names (*.[func/label].gii) to save the [left/right] cortex ROI to. dtseries and dscalar files should use "func", whereas dlabel files should use "label". If The cortical ROIs typically represent the medial wall
mask, with values of 1 for in-ROI (non-medial wall) vertices and 0 for
out-of-ROI (medial wall) vertices. Will be written in |
ROIsubcortVol_fname |
(Optional) NIFTI file names to save the subcortical ROI to. If The subcortical ROI typically represents the volumetric
mask for the entire subcortical structure, with values of 1 for in-ROI
(in subcortex) voxels and 0 for out-of-ROI (not in subcortex) voxels. Will
be written in |
write_dir |
(Optional) A path to an existing directory. If provided,
every component in the |
verbose |
Should occasional updates be printed? Default: |
Value
List of written files
See Also
Other writing:
separate_cifti()
,
write_cifti()
,
write_metric_gifti()
,
write_subcort_nifti()
,
write_surf_gifti()