The aim is to test the rsHRF-Toolbox (python version) against the stable-matlab version. For more details, click here.
The functionality of both the toolboxes are compared against each other, for a single voxel (for a swift analysis).
VoxelTest
| parameters.dat
| rsHRF_matlab.m
| rsHRF_python.py
| compare.py
| Data
└─> └─> <Empty>
This file contains the parameters used for HRF estimation. Each parameter is specified as a numerical value on a separate line. The correspondence is as follows:
- <skipped>
- order
- TR
- passband-LHS
- passband-RHS
- T
- T0
- min_onset_search
- max_onset_search
- AR_lag
- thr
- len
- voxel_id
The voxel_id corresponds to the particular voxel under analysis. For more information about the other parameters, please refer to the documentation of the rsHRF-toolbox.
This script executes the matlab-version of the rsHRF-toolbox.
Executing this script retrieves the HRF (with the parameters in the parameters.dat file), using all the basis-sets, and saves the retrieved time-series as a .mat file in the Data directory. The file name contains the information of the estimation-rule that was used to retrieve the HRF.
This script executes the python-version of the rsHRF-toolbox.
Most of the details are similar to the rsHRF_matlab.m. The retrieved time-series gets stores in a .txt file in the Data directory.
Having run both the above scripts, compare.py compares the retrieved HRF corresponding to the python and matlab versions. It returns the Pearsons' Correlation between the time-series estimated through each estimation rule.
The fMRI data has not been provided in the repository. To download, visit this link, and set the paths to input files accordingly.