1. 下载
http://www.brainnetome.org/toolkit/201710/t20171023_385323.html
2. 安装
tar zxvf DiffusionKitSetup-x86_64-v1.4-r161127.tar.gz
export PATH=$PATH:`pwd`/DiffusionKitSetup-x86_64-v1.4-r161127/bin
3.添加到环境变量
export PATH=$PATH:/your/path/to/diffusionkit
4. 下载示例代码命名process_primary.sh
#!/usr/bin/env bash
# This batch script is used to construct structural brain networks for a group of subjects using diffusion MRI data.
# The example data and files used in this script can be downloaded from http://diffusion.brainnetome.org/en/latest/download.html
# To run this script, you have to download the list file (list.txt), DWI data (Subject01 and Subject02) and atlas directory from the above link.
# However, if you want to download only one subject data for saving time, you should delete one line of the list.txt file accordingly.
# When you download all the files, you can get three compressed files (atlas.tar.gz, sub01.tar.gz and sub02.tar.gz) and a text file (list.txt) which
# contains subject ID. You'd better to make a directory (.e.g example) to run this tutorial script. And copy the three compressed files and list.txt
# into the example directory. The following steps should be done in the example directory. Uncompress the three conpressed file respectively.
# Finally, your "example" should be as follows.
#path/example
# ├── atlas
# │ ├── aal.nii.gz
# │ ├── aal.nii.lut
# │ ├── aal.nii.txt
# │ ├── aal_roi_024.txt
# │ ├── aal_roi_090.txt
# │ ├── BN_Atlas_246_1mm.nii.gz
# │ ├── BN_Atlas_246.txt
# │ └── ch2bet.nii.gz
# ├── list.txt
# ├── process_advanced.sh
# ├── process_primary.sh
# ├── sub01
# │ ├── dwi.bval
# │ ├── dwi.bvec
# │ ├── dwi.nii.gz
# │ └── t1.nii.gz
# └── sub02
# ├── dwi.bval
# ├── dwi.bvec
# ├── dwi.nii.gz
# └── t1.nii.gz
# Now you can run this script in example directory.
# By Sangma Xie, Mar. 10, 2016
for file in `cat list

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



