xcp_d.utils.modified_data.cast_cifti_to_int16

xcp_d.utils.modified_data.cast_cifti_to_int16(in_file)[source]

Cast a CIFTI file to int16 data.

This function serves as a temporary workaround for a bug in the DerivativesDataSink class from niworkflows version 1.7.1. For more information, see https://github.com/nipreps/niworkflows/issues/778.

NOTE: This is a Node function.

Parameters:

in_file (str) – Path to input CIFTI file.

Returns:

out_file – Path to output CIFTI file. The file will have the same filename, but will be written to the working directory.

Return type:

str