View source: R/read_cifti_convert.R
read_cifti_convert | R Documentation |
Read a CIFTI file by exporting it as a single GIFTI
using -cifti-convert -to-gifti-ext
(read_cifti_flat
),
and obtaining the brainordinate mapping using
-cifti-export-dense-mapping
(info_cifti
).
read_cifti_convert(
cifti_fname,
surfL_fname = NULL,
surfR_fname = NULL,
brainstructures = "all",
idx = NULL,
mwall_values = c(NA, NaN),
verbose = FALSE,
...
)
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. |
mwall_values |
If the medial wall mask is not present in the CIFTI,
infer it from these data values. Default: |
verbose |
Should occasional updates be printed? Default: |
... |
Additional arguments to |
A "xifti"
object. See is.xifti
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.