# PhysIO-Live
This repository contains a Live-Script demo of the [TAPAS PhysIO toolbox](https://github.com/translationalneuromodeling/tapas/tree/master/PhysIO) for physiological (cardiac and respiratory) noise modelling and correction of fmri data.
![Physiological noise](/misc/Physio_example.png)
</br>
## How to work with this repository
### There are three ways to work with this repository:
- Run online [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=likeajumprope/PhysIO-Live&file=main.mlx)
- Run locally on your machine
- View on [![View PhysIO-Live on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://au.mathworks.com/matlabcentral/fileexchange/128779-physio-live)
### To clone this repository and run it locally on your machine:
#### 1. Clone this repository *recursively*. This way, all dependent libraries, e.g., [SPM](https://www.fil.ion.ucl.ac.uk/spm/) and [TAPAS PhysIO](https://github.com/translationalneuromodeling/tapas/tree/master/PhysIO) are automatically installed as well.
```
git clone --recursive https://github.com/likeajumprope/PhysIO-Live
```
- *Note:* Check that the `libs` subfolder is not empty, and e.g,. `libs/tapas` contains files.
</br>
#### 2. Get the data.
For this live demo, we use the [Forrest Gump](https://openneuro.org/datasets/ds000113/versions/1.3.0) data set. Here we use the audio perception sub data set (see also [here](https://www.studyforrest.org/data.html))
The following files need to be downloaded into the results/sub-01 folder:
- sub-01/ses-audiotoryperception/func/sub-01_ses-auditoryperception_task-auditoryperception_run-01_bold.nii.gz (unpack)
- sub-01/ses-forestgump/anat/sub-01_ses-forrestgump_T1w.nii.gz (unpack)
- sub-01_ses-auditoryperception_func_sub-01_ses-auditoryperception_task-auditoryperception_run-01_physio.tsv
- recording-cardresp_physio.json
To make the download easier, you can also just open teh terminal run the file `get_files.sh` in the `misc` folder:
```
misc my-username$ ./get_files.sh
```
Move all those files into the results/sub-01 folder. Your folder structure should look like the following:
<p align="center">
<img width="500" src="/misc/Folder_structure.png">
</p>
</br>
Now your folders are ready to go!
</br>
#### 3. Adapt the environment variables in main.mlx (matlab version > 2019a) or in main.m
The two files main.mlx and main.m are identical and ensure the usability of this tutorial for matlab versions that do not support .mlx files.
</br>
## Debugging - common issues
- Make sure every step is run out of the results/>subjectID< folder!
- Make sure tapas, spm/matlabbatch are on the path. Any "cannot find/open file" error is usually due to the relevant folder not being on the path.
- Some operations take some time. A wheel of doom when hovering over the batch editor indicates that the process is still running!
- When cloning the repository, pulling the wikidocs of TAPAS Physio might fail. Don't worry about that, the demo is fully functional!
</br>
## Literature
Please cite this software (PhysIO) as follows:
Kasper, L., Bollmann, S., Diaconescu, A.O., Hutton, C., Heinzle, J.,
Iglesias, S., Hauser, T.U., Sebold, M., Manjaly, Z.-M., Pruessmann, K.P.,
Stephan, K.E., 2017. [The PhysIO Toolbox for Modeling Physiological Noise
in fMRI Data.](https://pubmed.ncbi.nlm.nih.gov/27832957/)
Journal of Neuroscience Methods 276, 56-72.
doi:10.1016/j.jneumeth.2016.10.019
Please also cite the parent software collection TAPAS:
Fraessle, S., Aponte, E.A., Bollmann, S., Brodersen, K.H., Do, C.T., Harrison, O.K.,
Harrison, S.J., Heinzle, J., Iglesias, S., Kasper, L., Lomakina, E.I., Mathys, C.,
Mueller-Schrader, M., Pereira, I., Petzschner, F.H., Raman, S., Schoebi, D.,
Toussaint, B., Weber, L.A., Yao, Y., Stephan, K.E., 2021.
[TAPAS: an open-source software package for Translational Neuromodeling and Computational Psychiatry.](https://doi.org/10.3389/fpsyt.2021.680811)
Frontiers in Psychiatry 12, 857.
https://doi.org/10.3389/fpsyt.2021.680811
If you use respiratory volume per time (RVT) regressors or preprocessing of respiratory traces, please also cite:
Harrison, S.J., Bianchi, S., Heinzle, J., Stephan, K.E., Iglesias, S., Kasper L., 2021.
[A Hilbert-based method for processing respiratory timeseries.](https://doi.org/10.1016/j.neuroimage.2021.117787)
NeuroImage, 117787. https://doi.org/10.1016/j.neuroimage.2021.117787
(C) 2023 Johanna Bayer, supervised by Lars Kasper, supported by Mathworks Inc.
没有合适的资源?快使用搜索试试~ 我知道了~
TAPAS PhysIO 工具箱的实时脚本演示,用于生理(心脏和呼吸)噪声建模和 fmri 数据校正.zip
共14个文件
m:7个
png:2个
tsv:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 37 浏览量
2023-09-27
10:19:20
上传
评论
收藏 1.1MB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a,内含运行结果,不会运行可私信 2.领域:智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,更多内容可点击博主头像 3.内容:标题所示,对于介绍可点击主页搜索博客 4.适合人群:本科,硕士等教研学习使用 5.博客介绍:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可si信 %% 开发者:Matlab科研助手 %% 更多咨询关注天天Matlab微信公众号
资源推荐
资源详情
资源评论
收起资源包目录
TAPAS PhysIO 工具箱的实时脚本演示,用于生理(心脏和呼吸)噪声建模和 fmri 数据校正.zip (14个子文件)
TAPAS PhysIO 工具箱的实时脚本演示,用于生理(心脏和呼吸)噪声建模和 fmri 数据校正
misc
Folder_structure.png 93KB
get_files.sh 696B
Physio_example.png 211KB
main.m 4KB
main.mlx 588KB
results
sub-01
recording-cardresp_physio.json 243B
sub-01_ses-auditoryperception_func_sub-01_ses-auditoryperception_task-auditoryperception_run-01_physio.tsv 2.98MB
README.md 5KB
code
glm_s3_spm_smooth_job.m 16KB
glm_spm_job.m 16KB
preproc_minimal_spm_job.m 20KB
preproc_minimal_no_struct_spm_job.m 19KB
visualize_physio.m 2KB
physio_batch_job.m 3KB
共 14 条
- 1
资源评论
Matlab科研辅导帮
- 粉丝: 1w+
- 资源: 7491
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功