phys2cvr.io.export_regressor

phys2cvr.io.export_regressor(regressors_matrix, ntp, outprefix, suffix='petco2hrf', ext='.1D', axis=-1)[source]

Export generated regressors for fMRI analysis.

Parameters:
regressors_matrixnp.ndarray

The regressors that needs to be exported, in its original sample

ntpint

The number of fMRI timepoints

outprefixstr or path

Prefix of the output file - can contain a path.

suffixstr, optional

The suffix of the output file.

extstr, optional

The extension of the output file.

axisint, optional

The axis along which to perform the operation. Default is -1.

Returns:
regressors_demeanednp.ndarray

Interpolated and demeaned version of regressors_matrix in the sampling of the fMRI data.