Learn R Programming

ciftiTools (version 0.3.1)

resample_cifti_from_template: Resample a CIFTI from a template

Description

Resample a CIFTI from a template CIFTI using the -cifti-resample Connectome Workbench command.

Usage

resample_cifti_from_template(original_fname, template_fname, target_fname)

Arguments

original_fname

A CIFTI file to resample.

template_fname

A CIFTI file to use as the template.

target_fname

The file name to save the resampled CIFTI.

Value

The target_fname, invisibly

Connectome Workbench Requirement

This function uses a system wrapper for the 'wb_command' executable. The user must first download and install the Connectome Workbench, available from https://www.humanconnectome.org/software/get-connectome-workbench .