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_matrix
np.ndarray The regressors that needs to be exported, in its original sample
- ntp
int The number of fMRI timepoints
- outprefix
strorpath Prefix of the output file - can contain a path.
- suffix
str, optional The suffix of the output file.
- ext
str, optional The extension of the output file.
- axis
int, optional The axis along which to perform the operation. Default is -1.
- regressors_matrix
- Returns:
- regressors_demeaned
np.ndarray Interpolated and demeaned version of regressors_matrix in the sampling of the fMRI data.
- regressors_demeaned