Description Usage Arguments Details Value
View source: R/read_cifti_separate.R
Read a CIFTI file by writing each component into a GIFTI and NIFTI file
(separate_cifti
), optionally resampling the GIFTIs,
(resample_gifti
), and then reading each separated
component into R (make_xifti
). Surfaces can also be provided;
they will be resampled along with the CIFTI for viewing.
1 2 3 4 5 6 7 8 9 10 |
cifti_fname |
File path to a CIFTI file (ending in ".d*.nii"). |
surfL_fname |
(Optional) File path to a GIFTI surface geometry file representing the left cortex. |
surfR_fname |
(Optional) File path to a GIFTI surface geometry file representing the right cortex. |
brainstructures |
Character vector indicating which brain structure(s)
to obtain: If a brain structure is indicated but does not exist in the CIFTI file, a warning will occur and that brain structure will be skipped. |
idx |
Numeric vector indicating the data indices (columns) to read. If
For high-resolution CIFTI files, reading in only a subset of the data saves memory, but will be slower than reading in the entire file due to the required intermediate steps. |
resamp_res |
(Optional) Target resolution for resampling (number of
cortical surface vertices per hemisphere). If |
mwall_values |
If the medial wall locations are not indicated in the
CIFTI, use these values to infer the medial wall mask. Default:
|
verbose |
Should occasional updates be printed? Default: |
The subcortical component (NIFTI) is not resampled.
A "xifti"
object. See is.xifti
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.