You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -118,146 +101,32 @@ the other one should have in the range [900,1100]).
118
101
119
102
If your data does not satisfy these requirements, please open an issue [here](https://github.com/pnlbwh/multi-shell-dMRIharmonization/issues) or contact -
120
103
121
-
*skarayumak@bwh.harvard.edu*
122
-
123
-
*tbillah@bwh.harvard.edu*
124
-
104
+
*skarayumak[at]bwh[dot]harvard[dot]edu*
125
105
106
+
*tbillah[at]bwh[dot]harvard[dot]edu*
126
107
127
-
# Dependencies
128
-
129
-
* ANTs = 2.2.0
130
-
* reisert/unring
131
-
* FSL = 5.0.11
132
-
* numpy = 1.16.2
133
-
* scipy = 1.2.1
134
-
* scikit-image = 0.15.0
135
-
* dipy = 0.16.0
136
-
* nibabel = 2.3.0
137
-
* pynrrd = 0.3.6
138
-
* conversion = 2.0
139
-
140
-
**NOTE** The above versions were used for developing the repository. However, *multi-shell-dMRIharmonization* should work on
141
-
any advanced version.
142
108
143
109
144
110
# Installation
145
111
146
-
## 1. Install prerequisites
147
-
148
-
You may ignore installation instruction for any software module that you have already.
149
-
150
-
### Check system architecture
151
-
152
-
uname -a # check if 32 or 64 bit
153
-
154
-
### Python 3
155
-
156
-
Download [Miniconda Python 3.6 bash installer](https://docs.conda.io/en/latest/miniconda.html) (32/64-bit based on your environment):
157
-
158
-
sh Miniconda3-latest-Linux-x86_64.sh -b # -b flag is for license agreement
159
-
160
-
Activate the conda environment:
161
-
162
-
source ~/miniconda3/bin/activate # should introduce '(base)' in front of each line
163
-
164
-
165
-
166
-
167
-
**NOTE** With the current design, *MATLAB Runtime Compiler* and *unringing* are not used. So, you may pass them.
168
-
169
-
### MATLAB Runtime Compiler
170
-
171
-
In the harmonization process, all volumes have to be resampled to a common spatial resolution.
172
-
We have chosen bspline as the interpolation method. For better result, bspline order has been chosen to be 7.
173
-
Since Python and ANTs provide bspline order less than or equal to 5, we have resorted to [spm package](https://github.com/spm/spm12) for this task.
174
-
Using their source codes [bspline.c](https://github.com/spm/spm12/blob/master/src/spm_bsplinc.c) and [bsplins.c](https://github.com/spm/spm12/blob/master/src/spm_bsplins.c),
175
-
we have made a standalone executable that performs the above interpolation. Execution of the standalone executable
176
-
requires [MATLAB Runtime Compiler](https://www.mathworks.com/products/compiler/matlab-runtime.html). It is available free of charge.
177
-
Download a suitable version from the above, and install as follows:
Now that you have installed the prerequisite software, you are ready to install the pipeline:
213
-
214
-
git clone https://github.com/pnlbwh/multi-shell-dMRIharmonization.git && cd multi-shell-dMRIharmonization
215
-
conda env create -f environment.yml # you may comment out any existing package from environment.yml
216
-
conda activate harmonization # should introduce '(harmonization)' in front of each line
217
-
218
-
219
-
Alternatively, if you already have ANTs, you can continue using your python environment by directly installing
220
-
the prerequisite libraries:
221
-
222
-
pip install -r requirements.txt --upgrade
223
-
224
-
112
+
Step-by-step installation instruction can be found [here](https://github.com/pnlbwh/dMRIharmonization/blob/c5bc02149d9e0f96402b3fabc90c2d7bb0e87fe5/README.md).
113
+
But for ease of use, we provide a [Singularity](Singularity) container. Download it as:
dMRIharmonization toolbox is provided with a debugging capability to test how good has been the
230
-
harmonization. For debug to work and **tests** to run, download the following data from [IIT HUMAN BRAIN ATLAS](http://www.iit.edu/~mri/IITHumanBrainAtlas.html)
231
-
and place them in `multi-shell-dMRIharmonization/IITAtlas/` directory:
However, if you choose to use pre-installed ANTs scripts, you can define `ANTSPATH` according to [this](https://github.com/ANTsX/ANTs/wiki/Compiling-ANTs-on-Linux-and-Mac-OS#set-path-and-antspath) instruction.
259
124
125
+
(Optional) For running tests and debugging, [download IIT templates](https://github.com/pnlbwh/dMRIharmonization/blob/c5bc02149d9e0f96402b3fabc90c2d7bb0e87fe5/README.md#3-download-iit-templates)
0 commit comments