1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
|
%global _empty_manifest_terminate_build 0
Name: python-mdt
Version: 1.2.7
Release: 1
Summary: Microstructure Diffusion Toolbox
License: LGPL v3
URL: https://github.com/robbert-harms/MDT
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/29/2c/0c7c7ae6cfb7c45b033791301e5a70ed2912421bed997f207255dba57d10/mdt-1.2.7.tar.gz
BuildArch: noarch
Requires: python3-argcomplete
Requires: python3-matplotlib
Requires: python3-mot
Requires: python3-nibabel
Requires: python3-numpy
Requires: python3-pyopencl
Requires: python3-pyyaml
Requires: python3-scipy
Requires: python3-tatsu
%description
################################
Microstructure Diffusion Toolbox
################################
The Microstructure Diffusion Toolbox (MDT) is a framework and library for microstructure modeling of magnetic resonance imaging (MRI) data.
The aim of MDT is to provide reproducible and comparable model fitting for MRI microstructure analysis.
As such, we provide a common platform for microstructure modeling including many models that can all be processed using the same optimization routines.
For maximum performance all models and algorithms were implemented to make use of all parallel processing capabilities of modern computers.
MDT combines flexible modeling with fast processing, targeting both model developers and data analysts.
*******
Summary
*******
* GPU accelerated processing
* Human Connectome Project (HCP) pipelines
* Includes CHARMED, NODDI, BinghamNODDI, NODDIDA, NODDI-DTI, ActiveAx, AxCaliber, Ball&Sticks, Ball&Rackets, Kurtosis, Tensor, VERDICT, qMT, and relaxometry (T1, T2) models.
* Includes Gaussian, Offset-Gaussian and Rician likelihood models
* Includes Powell, Levenberg-Marquardt and Nelder-Mead Simplex optimization routines
* Includes multiple (adaptive) MCMC sampling algorithms
* Supports hyperpriors on parameters
* Supports gradient deviations per voxel and per voxel per volume
* Supports volume weighted objective function
* Supports adding your own models
* Offers Graphical, command line and python interfaces
* Computations are parallelized over voxels and over volumes
* Python and OpenCL based
* Free Open Source Software: LGPL v3 license
* Runs on Windows, Mac and Linux operating systems
* Runs on Intel, Nvidia and AMD GPU's and CPU's.
*****
Links
*****
* Full documentation: http://mdt_toolbox.readthedocs.io
* Project home: https://github.com/robbert-harms/MDT
************
HCP Pipeline
************
MDT comes pre-installed with Human Connectome Project (HCP) compatible pipelines for the MGH and the WuMinn 3T studies.
To run, after installing MDT, go to the folder where you downloaded your (pre-processed) HCP data (MGH or WuMinn) and execute:
.. code-block:: console
$ mdt-batch-fit . NODDI
and it will autodetect the study in use and fit your selected model to all the subjects.
************************
Quick installation guide
************************
The basic requirements for MDT are:
* Python 3.x
* OpenCL 1.2 (or higher) support in GPU driver or CPU runtime
**Linux**
For Ubuntu >= 16 you can use:
* ``sudo add-apt-repository ppa:robbert-harms/cbclab``
* ``sudo apt-get update``
* ``sudo apt-get install python3-mdt python3-pip``
* ``sudo pip3 install tatsu``
For Debian users and Ubuntu < 16 users, install MDT with:
* ``sudo apt-get install python3 python3-pip python3-pyopencl python3-numpy python3-nibabel python3-pyqt5 python3-matplotlib python3-yaml python3-argcomplete libpng-dev libfreetype6-dev libxft-dev``
* ``sudo pip3 install mdt``
Note that ``python3-nibabel`` may need NeuroDebian to be available on your machine. An alternative is to use ``pip3 install nibabel`` instead.
A Dockerfile and Singularity recipe were kindly provided by Ali Khan (on github: akhanf). These dockers come with Intel OpenCL drivers pre-loaded (e.g. for containerized deployment on a CPU cluster).
For example, to install using Docker use ``docker build -f containers/Dockerfile.intel .``.
**Windows**
The installation on Windows is a little bit more complex and the following is only a quick reference guide.
For complete instructions please view the `complete documentation <https://mdt_toolbox.readthedocs.org>`_.
* Install Anaconda Python 3.*
* Install MOT using the guide at https://mot.readthedocs.io
* Open an Anaconda shell and type: ``pip install mdt``
**Mac**
* Install Anaconda Python 3.*
* Open a terminal and type: ``pip install mdt``
Please note that Mac support is experimental due to the unstable nature of the OpenCL drivers in Mac, that is, users running MDT with the GPU as selected device may experience crashes.
Running MDT in the CPU seems to work though.
For more information and full installation instructions see https://mdt_toolbox.readthedocs.org
%package -n python3-mdt
Summary: Microstructure Diffusion Toolbox
Provides: python-mdt
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-mdt
################################
Microstructure Diffusion Toolbox
################################
The Microstructure Diffusion Toolbox (MDT) is a framework and library for microstructure modeling of magnetic resonance imaging (MRI) data.
The aim of MDT is to provide reproducible and comparable model fitting for MRI microstructure analysis.
As such, we provide a common platform for microstructure modeling including many models that can all be processed using the same optimization routines.
For maximum performance all models and algorithms were implemented to make use of all parallel processing capabilities of modern computers.
MDT combines flexible modeling with fast processing, targeting both model developers and data analysts.
*******
Summary
*******
* GPU accelerated processing
* Human Connectome Project (HCP) pipelines
* Includes CHARMED, NODDI, BinghamNODDI, NODDIDA, NODDI-DTI, ActiveAx, AxCaliber, Ball&Sticks, Ball&Rackets, Kurtosis, Tensor, VERDICT, qMT, and relaxometry (T1, T2) models.
* Includes Gaussian, Offset-Gaussian and Rician likelihood models
* Includes Powell, Levenberg-Marquardt and Nelder-Mead Simplex optimization routines
* Includes multiple (adaptive) MCMC sampling algorithms
* Supports hyperpriors on parameters
* Supports gradient deviations per voxel and per voxel per volume
* Supports volume weighted objective function
* Supports adding your own models
* Offers Graphical, command line and python interfaces
* Computations are parallelized over voxels and over volumes
* Python and OpenCL based
* Free Open Source Software: LGPL v3 license
* Runs on Windows, Mac and Linux operating systems
* Runs on Intel, Nvidia and AMD GPU's and CPU's.
*****
Links
*****
* Full documentation: http://mdt_toolbox.readthedocs.io
* Project home: https://github.com/robbert-harms/MDT
************
HCP Pipeline
************
MDT comes pre-installed with Human Connectome Project (HCP) compatible pipelines for the MGH and the WuMinn 3T studies.
To run, after installing MDT, go to the folder where you downloaded your (pre-processed) HCP data (MGH or WuMinn) and execute:
.. code-block:: console
$ mdt-batch-fit . NODDI
and it will autodetect the study in use and fit your selected model to all the subjects.
************************
Quick installation guide
************************
The basic requirements for MDT are:
* Python 3.x
* OpenCL 1.2 (or higher) support in GPU driver or CPU runtime
**Linux**
For Ubuntu >= 16 you can use:
* ``sudo add-apt-repository ppa:robbert-harms/cbclab``
* ``sudo apt-get update``
* ``sudo apt-get install python3-mdt python3-pip``
* ``sudo pip3 install tatsu``
For Debian users and Ubuntu < 16 users, install MDT with:
* ``sudo apt-get install python3 python3-pip python3-pyopencl python3-numpy python3-nibabel python3-pyqt5 python3-matplotlib python3-yaml python3-argcomplete libpng-dev libfreetype6-dev libxft-dev``
* ``sudo pip3 install mdt``
Note that ``python3-nibabel`` may need NeuroDebian to be available on your machine. An alternative is to use ``pip3 install nibabel`` instead.
A Dockerfile and Singularity recipe were kindly provided by Ali Khan (on github: akhanf). These dockers come with Intel OpenCL drivers pre-loaded (e.g. for containerized deployment on a CPU cluster).
For example, to install using Docker use ``docker build -f containers/Dockerfile.intel .``.
**Windows**
The installation on Windows is a little bit more complex and the following is only a quick reference guide.
For complete instructions please view the `complete documentation <https://mdt_toolbox.readthedocs.org>`_.
* Install Anaconda Python 3.*
* Install MOT using the guide at https://mot.readthedocs.io
* Open an Anaconda shell and type: ``pip install mdt``
**Mac**
* Install Anaconda Python 3.*
* Open a terminal and type: ``pip install mdt``
Please note that Mac support is experimental due to the unstable nature of the OpenCL drivers in Mac, that is, users running MDT with the GPU as selected device may experience crashes.
Running MDT in the CPU seems to work though.
For more information and full installation instructions see https://mdt_toolbox.readthedocs.org
%package help
Summary: Development documents and examples for mdt
Provides: python3-mdt-doc
%description help
################################
Microstructure Diffusion Toolbox
################################
The Microstructure Diffusion Toolbox (MDT) is a framework and library for microstructure modeling of magnetic resonance imaging (MRI) data.
The aim of MDT is to provide reproducible and comparable model fitting for MRI microstructure analysis.
As such, we provide a common platform for microstructure modeling including many models that can all be processed using the same optimization routines.
For maximum performance all models and algorithms were implemented to make use of all parallel processing capabilities of modern computers.
MDT combines flexible modeling with fast processing, targeting both model developers and data analysts.
*******
Summary
*******
* GPU accelerated processing
* Human Connectome Project (HCP) pipelines
* Includes CHARMED, NODDI, BinghamNODDI, NODDIDA, NODDI-DTI, ActiveAx, AxCaliber, Ball&Sticks, Ball&Rackets, Kurtosis, Tensor, VERDICT, qMT, and relaxometry (T1, T2) models.
* Includes Gaussian, Offset-Gaussian and Rician likelihood models
* Includes Powell, Levenberg-Marquardt and Nelder-Mead Simplex optimization routines
* Includes multiple (adaptive) MCMC sampling algorithms
* Supports hyperpriors on parameters
* Supports gradient deviations per voxel and per voxel per volume
* Supports volume weighted objective function
* Supports adding your own models
* Offers Graphical, command line and python interfaces
* Computations are parallelized over voxels and over volumes
* Python and OpenCL based
* Free Open Source Software: LGPL v3 license
* Runs on Windows, Mac and Linux operating systems
* Runs on Intel, Nvidia and AMD GPU's and CPU's.
*****
Links
*****
* Full documentation: http://mdt_toolbox.readthedocs.io
* Project home: https://github.com/robbert-harms/MDT
************
HCP Pipeline
************
MDT comes pre-installed with Human Connectome Project (HCP) compatible pipelines for the MGH and the WuMinn 3T studies.
To run, after installing MDT, go to the folder where you downloaded your (pre-processed) HCP data (MGH or WuMinn) and execute:
.. code-block:: console
$ mdt-batch-fit . NODDI
and it will autodetect the study in use and fit your selected model to all the subjects.
************************
Quick installation guide
************************
The basic requirements for MDT are:
* Python 3.x
* OpenCL 1.2 (or higher) support in GPU driver or CPU runtime
**Linux**
For Ubuntu >= 16 you can use:
* ``sudo add-apt-repository ppa:robbert-harms/cbclab``
* ``sudo apt-get update``
* ``sudo apt-get install python3-mdt python3-pip``
* ``sudo pip3 install tatsu``
For Debian users and Ubuntu < 16 users, install MDT with:
* ``sudo apt-get install python3 python3-pip python3-pyopencl python3-numpy python3-nibabel python3-pyqt5 python3-matplotlib python3-yaml python3-argcomplete libpng-dev libfreetype6-dev libxft-dev``
* ``sudo pip3 install mdt``
Note that ``python3-nibabel`` may need NeuroDebian to be available on your machine. An alternative is to use ``pip3 install nibabel`` instead.
A Dockerfile and Singularity recipe were kindly provided by Ali Khan (on github: akhanf). These dockers come with Intel OpenCL drivers pre-loaded (e.g. for containerized deployment on a CPU cluster).
For example, to install using Docker use ``docker build -f containers/Dockerfile.intel .``.
**Windows**
The installation on Windows is a little bit more complex and the following is only a quick reference guide.
For complete instructions please view the `complete documentation <https://mdt_toolbox.readthedocs.org>`_.
* Install Anaconda Python 3.*
* Install MOT using the guide at https://mot.readthedocs.io
* Open an Anaconda shell and type: ``pip install mdt``
**Mac**
* Install Anaconda Python 3.*
* Open a terminal and type: ``pip install mdt``
Please note that Mac support is experimental due to the unstable nature of the OpenCL drivers in Mac, that is, users running MDT with the GPU as selected device may experience crashes.
Running MDT in the CPU seems to work though.
For more information and full installation instructions see https://mdt_toolbox.readthedocs.org
%prep
%autosetup -n mdt-1.2.7
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-mdt -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.7-1
- Package Spec generated
|