write_cifti_from_separate: Write a CIFTI file from NIFTI and GIFTI files

View source: R/write_cifti_from_separate.R

write_cifti_from_separateR Documentation

Write a CIFTI file from NIFTI and GIFTI files

Description

Make a CIFTI file from component NIFTI/GIFTI files using the -cifti-create-... Connectome Workbench commands.

Usage

write_cifti_from_separate(
  cifti_fname,
  cortexL_fname = NULL,
  ROIcortexL_fname = NULL,
  cortexR_fname = NULL,
  ROIcortexR_fname = NULL,
  subcortVol_fname = NULL,
  subcortLabs_fname = NULL,
  timestep = NULL,
  timestart = NULL,
  names = NULL
)

Arguments

cifti_fname

Path to the CIFTI to write.

cortexL_fname

The left cortex file.

ROIcortexL_fname

The left cortex ROI file.

cortexR_fname

The right cortex file.

ROIcortexR_fname

The right cortex ROI file.

subcortVol_fname

The subcortical data file.

subcortLabs_fname

The subcortical labels file.

timestep

If a dense time series ("dtseries.nii") file is being written, this is the time between measurements. If NULL, use the Connectome Workbench default (1.0).

timestart

If a dense time series ("dtseries.nii") file is being written, this is starting time. If NULL, use the Connectome Workbench default (0.0).

names

For "dscalar.nii" or "dlabel.nii", these are the column names.

Details

Every provided component will be included. The ROIs are only used if the corresponding cortex is provided. Either both or none of the subcortical NIFTIs should be provided.


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.