-
Notifications
You must be signed in to change notification settings - Fork 15
01. History and Development: MATLAB (standalone and SPM plugin)
IMPORTANT: Please use Google Chrome to browse the History and Development Page! If you don't, you won't be able to expand the collapsibles. [WIP]
Here below, you can find a chronological overview [newest --> oldest] of the rsHRF toolbox's main modifications through the last years [2019 --> 2016], resulting in the latest version of the SPM plugin (v2.2). The three main releases of the rsHRF SPM plugin (i.e. v1.0, v2.0, and v2.2) can be downloaded by clicking on the corresponding π· next to the commit date; these collapsibles are opened by default. For more information, head over to the INSTALLATION PAGE!
Modifications are either related to code or documentation/demo files which will be indicated by respectively a π» or π emoji next to the commit date. Please note that a few smaller commits (e.g. minor debugging, lay-out tweaks...) are omitted. To consult the complete overview of a file's commit history, right-click on the corresponding superscript number and choose to open the link in a new tab. For example, to consult the GitHub commit history of wgr_get_parameters.m
2, right-click on the 2 superscript and open the link in a new tab. You will now see a list of two commits associated with the wgr_get_parameters.m
2 script, i.e. respectively on Oct 28, 2016 and Jul 20, 2016. After clicking on a commit (e.g. canon2dd on Jul 20, 2016), you will be able to see the number of changed files, along with the number of additions and deletions. In this particular example, there are 2 changed files with 58 additions and 4 deletions.
Emoji | Meaning |
---|---|
π» | CODE |
π | DOCUMENTATION/DEMO |
π | LICENSE |
π· | RELEASE VERSION |
Files with:
+ Additions (A)
! Modifications (M)
- Deletions (D)
π Nov 15, 2019 π» π β π· v2.2
+ π» CODE + π DOCUMENTATION/DEMO: SPM plugin (v2.2)
Version 2.2 of the SPM plugin is released on GitHub, adding a surface-based analysis module (Aug, 2018: v2.1), changing the GUI (with the addition of a surface analysis panel and Display
), adding a rsHRF_viewer.m
36 for the visualization of HRF shapes, adding a m-file (rsHRF_mvgc.m
35) for multivariate Granger causality connectivity analysis, updating the HRF basis functions with the addition of Gamma/Fourier basis functions32 (which are more flexible and support a finer temporal grid), updating the (s)FIR model using AR(k) for auto-correlated noise modeling33, and adding a m-file (rsHRF_estimation_impulseest.m
34, see code for help) for non-parametric impulse response estimation (which is not included in the rsHRF GUI). These updates are also available in: update_log.txt
37. Corresponding modifications are inserted into rsHRF.m
20, tbx_cfg_rsHRF.m
21, and rsHRF_install_SPM.m
31. A few global parameters are added to wgr_rsHRF_global_para.m
25. The pipeline for voxel-wise rsHRF estimation and deconvolution as well as parameter retrieval using the updated HRF basis functions is illustrated by means of three separate hands-on demos in MATLAB: demo_rsHRF_temporal_basis.m
38, demo_rsHRF_FIR_sFIR.m
39, and demo_rsHRF_impulseest.m
40.
Apr 13, 2019 π
+ π DOCUMENTATION/DEMO
The pipeline for voxel-wise rsHRF deconvolution using wgr_deconv_canonhrf_par.m
4, along with a brief theoretical framework, is available on https://guorongwu.github.io/HRF/rsHRF_deconv.html.
π Jan 9, 2019 π» π β π· v2.0
! π» CODE: SPM plugin (v2.0)
Version 2.0 of the SPM plugin is released on GitHub, adding both functional (Pearson/Spearman correlation) and effective (Pairwise/Conditional/Partially Conditioned Granger causality) connectivity analyses to the processing pipeline. Corresponding modifications are inserted into rsHRF.m
20, rsHRF.man
22, and tbx_cfg_rsHRF.m
21 with all connectivity subfunctions being incorporated into rsHRF.m
20. A few global parameters are added to/omitted from wgr_rsHRF_global_para.m
25.
+ π» CODE: rsHRF_install_SPM.m
Running rsHRF_install_SPM.m
31 in the Command Window within the downloaded rsHRF GitHub repository will install SPM (if not yet available) and copy all files included in the rsHRF_file
cell array to ./SPM/toolbox/rsHRF
.
! π DOCUMENTATION/DEMO
The folder demo_jobs
26 is expanded and compressed (.zip) by adding several new MATLAB batch jobs containing connectivity analyses to illustrate the pipeline for voxel-wise rsHRF estimation and deconvolution as well as parameter retrieval using the SPM plugin (v2.0). Corresponding information concerning the new batch job examples can be found in an updated version of rsHRF_toolbox.pptx
27.
Aug 29 + Nov 4 + Dec 9, 2018 π» π
! π» CODE + π DOCUMENTATION/DEMO: <DEBUGGING>
-
knee_pt.m
12:-
Nov 4, 2018: If
(length(lag) < 3)
,min()
is used instead of theknee_pt.m
12 function for the rsHRF lag estimation; theknee_pt.m
12 function is modified accordingly. -
Dec 9, 2018: To uniform
wgr_rshrf_estimation_canonhrf2dd_par2.m
1 andwgr_rsHRF_FIR.m
11, thewgr_rshrf_estimation_canonhrf2dd_par2.m
1 function is revised. Concretely,beta(:, id+1)
andlag(id+1)
are selected instead ofbeta(:, id)
andlag(id)
respectively.
-
Nov 4, 2018: If
- datatype:
Aug 4 β 5, 2018 π» π
! π» CODE + π DOCUMENTATION/DEMO: Tikhonov regularization
The knee_pt.m
12 function is inserted into wgr_rshrf_estimation_canonhrf2dd_par2.m
1 as an alternative to min()
for the rsHRF lag estimation. To avoid division by zero when deconvolving the BOLD signal using the Inverse fast Fourier transform (ifft.m
), the Tikhonov regularization was implemented and adapted accordingly in demo_4d_rsHRF.m
7, demo_voxel.m
15, demo_voxel_calcium.m
17, and rsHRF.m
20.
π Jul 21 β Jul 31, 2018 π» π β π· v1.0
+ π» CODE: SPM plugin (v1.0)
Version 1.0 of the SPM plugin is committed to GitHub with the main spm_rsHRF.m
19 script calling rsHRF.m
20 along with its configuration file (tbx_cfg_rsHRF.m
21). The rsHRF toolboxβs version and description can be found in rsHRF.man
22. Henceforth, outliers based on the rsHRF RH can be deleted and interpolated accordingly by respectively using deleteoutliers.m
23 and inpaint_nans3.m
24. The parameter used for local peak detection (localK
) is modified with its value depending on the TR. Some global parameters such as the interpolation method, can be adapted in wgr_rsHRF_global_para.m
25, while the rsHRF estimation method can be set to either canon2dd1 or (s)FIR11.
+ π DOCUMENTATION/DEMO: batch jobs
The folder demo_jobs
26 is created containing a few different MATLAB batch jobs to illustrate the pipeline for voxel-wise resting-state rsHRF estimation and deconvolution as well as parameter retrieval using the SPM plugin (v1.0). More detailed information concerning the installation and the batch job examples can be found in rsHRF_toolbox.pptx
27. In addition, two more data examples are available: eve.mat
28, and voxelsample_bilgin.mat
29.
Jun 18, 2018 π
! π DOCUMENTATION/DEMO: zscoring and filtering
The hands-on demo in MATLAB7 is expanded by explicitly including zscoring and filtering13 into the preprocessing pipeline. You should not forget to include these steps. The README.md
5 file is adapted accordingly; but these and further updates are not transferred to https://guorongwu.github.io/HRF/.
+ π DOCUMENTATION/DEMO: examples
The expanded demo applied to two specific examples, i.e., a sample voxel from the Human Connectome Project (HCP; voxelsample_hcp.mat
16; XXX) and calcium.mat
18, is committed to GitHub.
Jun 7 β 8, 2018 π» π
! π» CODE + π DOCUMENTATION/DEMO: number of pseudo point process events
The event_bold parameter is added/updated in(to) the wgr_rshrf_estimation_canonhrf2dd_par2.m
1 and wgr_rsHRF_FIR.m
11 functions. As a result, each voxelβs number of pseudo point process events can be written back into a NIfTI (.nii) file (demo_4d_rsHRF.m
7). The knee_pt.m
12 function has not yet been inserted into wgr_rshrf_estimation_canonhrf2dd_par2.m
1 as an alternative to min()
for the rsHRF lag estimation. M: Aug 4 β 5, 2018
May 31 β Jun 3, 2018 π» π
+ π» CODE: <MERGE + REMOVE REDUNDANT CODE> + filtering functions
The hrf_retrieval_and_deconvolution_para.m
9 script is removed, along with the rbeta rsHRF estimation method. The function is replaced by a standalone MATLAB function to estimate the rsHRF using the (s)FIR basis functions11 without the option to upsample the time resolution. The temporal mask used to exclude pseudo point process events induced by motion artifacts is included as a parameter. In addition, the knee_pt.m
12 function is committed to GitHub and inserted into wgr_rsHRF_FIR.m
11 as an alternative to min()
for the rsHRF lag estimation. Two filtering functions13,14 from the REST toolbox (Song et al., 2011) are committed to GitHub as well.
! π DOCUMENTATION/DEMO: <MERGE + REMOVE REDUNDANT CODE>
The demo_main_deconvolution_FIR.m
10 script is removed. Instead, the FIR and (s)FIR rsHRF estimation methods (wgr_rsHRF_FIR.m
11) are included into demo_4d_rsHRF.m
7.
Dec 18, 2017 π» π
+ π» CODE: sFIR and rbeta
An updated and expanded version9 of wgr_deconv_canonhrf_par.m
4 with the rsHRF estimation method set by the flag parameter, being either canon2dd, the smoothed Finite Impulse Response basis functions (denoted as sFIR), or the rbeta function (Tagliazucchi et al., 2012). The option to upsample the time resolution and the temporal_mask argument used to exclude pseudo point process events induced by motion artifacts have not yet been included. Again, some subfunctions of the MATLAB code are modified from the HRF Estimation Toolbox3 (Lindquist, Waugh, & Wager, 2007).
+ π DOCUMENTATION/DEMO
A separate hands-on demo in MATLAB10 to illustrate the pipeline for voxel-wise rsHRF deconvolution using hrf_retrieval_and_deconvolution_para.m
9.
Apr 28, 2017 π
+ π DOCUMENTATION/DEMO: 4D NIfTI
An updated and expanded version7 of the more detailed hands-on demo in MATLAB including the option to read and write 4D NIfTI (.nii) files and implementing wgr_rshrf_estimation_canonhrf2dd_par2.m
1 and wgr_get_parameters.m
2 instead of wgr_deconv_canonhrf_par.m
4, is committed to GitHub. A data structure example8 is committed as well.
Dec 16, 2016 π (reference in README.md
5 on Jan 13, 2017)
! π DOCUMENTATION/DEMO
The pipeline for voxel-wise rsHRF estimation as well as parameter retrieval as illustrated by means of a concise overview in Markdown5, along with a brief theoretical framework, is available on https://guorongwu.github.io/HRF/.
Jul 20, 2016 π» π
+ π» CODE: canon2dd
MATLAB code for voxel-wise rsHRF estimation and deconvolution1 as well as parameter retrieval2 (RH, TTP, and FWHM) using a canonical HRF with its delay and dispersion derivatives (denoted as canon2dd); also including an option to upsample the time resolution and the temporal mask used to exclude pseudo point process events induced by motion artifacts. Some subfunctions of the MATLAB code are modified from the HRF Estimation Toolbox3 (Lindquist, Waugh, & Wager, 2007).
+ π DOCUMENTATION/DEMO
Illustrating the pipeline for voxel-wise rsHRF estimation as well as parameter retrieval by means of a concise overview in Markdown5 using wgr_rshrf_estimation_canonhrf2dd_par2.m
1 and wgr_get_parameters.m
2 and a reference to a more detailed hands-on demo in MATLAB6 using wgr_deconv_canonhrf_par.m
4; the latter also illustrates the voxel-wise rsHRF deconvolution.
Click to see more:
| File Name |
Additional information |
1. |
|
wgr_rshrf_estimation_canonhrf2dd_par2.m 1
modified from an older version ( |
wgr_deconv_canonhrf_par.m 4) with the modified Fit_Canonical_HRF() 3 and CanonicalBasisSet() 3 subfunctions; the older version4 is not committed to the rsHRF GitHub repository
|
- Lindquist, M. A., Waugh, C., & Wager, T. D. (2007). Modeling state-related fMRI activity using change-point theory. NeuroImage, 34(3), 1125-1141. https://doi.org/10.1016/j.neuroimage.2007.01.004
- Song, X. W., Dong, Z. Y., Long, X. Y., Li, S. F., Zuo, X. N., Zhu, C. Z., ... & Zang, Y. F. (2011). REST: A toolkit for resting-state functional magnetic resonance imaging data processing. PloS one, 6(9), e25031. https://doi.org/10.1371/journal.pone.0025031
- Tagliazucchi, E., Balenzuela, P., Fraiman, D., & Chialvo, D. R. (2012). Criticality in large-scale brain fMRI dynamics unveiled by a novel point process analysis. Frontiers in Physiology, 3, 15. https://doi.org/10.3389/fphys.2012.00015