mia-processes 2.7.0__tar.gz → 2.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. mia_processes-2.8.0/MANIFEST.in +3 -0
  2. {mia_processes-2.7.0 → mia_processes-2.8.0}/PKG-INFO +8 -11
  3. {mia_processes-2.7.0 → mia_processes-2.8.0}/README.md +2 -4
  4. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/__init__.py +0 -1
  5. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/__init__.py +0 -1
  6. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/__init__.py +0 -1
  7. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/afni/__init__.py +0 -1
  8. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/afni/processes.py +40 -42
  9. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/ants/__init__.py +0 -1
  10. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/ants/processes.py +12 -14
  11. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/dipy/__init__.py +0 -1
  12. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/dipy/processes.py +6 -8
  13. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/freesurfer/__init__.py +0 -1
  14. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/freesurfer/processes.py +9 -11
  15. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/fsl/__init__.py +0 -1
  16. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/fsl/processes.py +24 -26
  17. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/matlab_wrap/__init__.py +0 -1
  18. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/matlab_wrap/processes.py +3 -4
  19. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/mrtrix/__init__.py +0 -1
  20. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/mrtrix/processes.py +75 -77
  21. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/others/__init__.py +0 -1
  22. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/others/processing.py +128 -134
  23. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/spm/__init__.py +0 -1
  24. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/spm/spatial_preprocessing.py +68 -61
  25. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/volbrain/__init__.py +0 -1
  26. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/preprocess/volbrain/processes.py +12 -14
  27. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/reports/__init__.py +0 -1
  28. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/reports/processes.py +98 -90
  29. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/reports/reporting.py +108 -64
  30. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/stat/__init__.py +0 -1
  31. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/stat/spm/__init__.py +0 -1
  32. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/stat/spm/model.py +57 -70
  33. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/tools/__init__.py +0 -1
  34. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/bricks/tools/tools.py +255 -199
  35. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/info.py +5 -9
  36. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/CerebVascularReact/__init__.py +0 -1
  37. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/CerebVascularReact/co2_inhalation.py +6 -3
  38. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/DWITractography/__init__.py +0 -3
  39. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/DWITractography/dwi_whole_brain_tractography.py +0 -2
  40. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/FunctionalLangageMemory/__init__.py +0 -1
  41. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/FunctionalLangageMemory/ge2rec.py +0 -2
  42. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/FunctionalLangageMemory/ge2rec_without_behavioural_data.py +0 -2
  43. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/Perfusion/__init__.py +0 -1
  44. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/Perfusion/perfdsc.py +4 -2
  45. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/__init__.py +0 -1
  46. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/__init__.py +0 -1
  47. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_airmask.py +0 -1
  48. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_headmask.py +0 -1
  49. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_mni_tpms.py +0 -1
  50. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_skullstrip.py +0 -1
  51. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_skullstrip_synthstrip.py +0 -1
  52. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/anat_spatial_norm.py +0 -1
  53. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/bold_hmc.py +0 -1
  54. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/bold_mni_align.py +0 -1
  55. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/bold_spatial_preprocessing1.py +0 -2
  56. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/bold_spatial_preprocessing2.py +0 -2
  57. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/bold_spatial_preprocessing3.py +0 -2
  58. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/dwi_fod_msmt_csd.py +0 -2
  59. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/dwi_preprocessing.py +1 -2
  60. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/dwi_tissue_boundaries.py +0 -1
  61. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/preprocess/spatial_mask.py +0 -2
  62. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/qualityControl/__init__.py +0 -1
  63. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/qualityControl/anat_mriqc.py +0 -2
  64. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/qualityControl/bold_mriqc.py +0 -2
  65. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/qualityControl/bold_signals_roi.py +0 -2
  66. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/reports/__init__.py +0 -1
  67. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/reports/bold_iqms.py +0 -2
  68. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/reports/extract_roi_param.py +0 -2
  69. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/stat/__init__.py +0 -1
  70. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/pipelines/stat/bold_stat_cvr.py +0 -2
  71. mia_processes-2.8.0/mia_processes/sources_images/Logo_mia_processes_1024x1024.jpg +0 -0
  72. mia_processes-2.8.0/mia_processes/sources_images/Logo_mia_processes_1537x1025.jpg +0 -0
  73. mia_processes-2.8.0/mia_processes/sources_images/No-check-mark.png +0 -0
  74. mia_processes-2.8.0/mia_processes/sources_images/OK-check-mark.png +0 -0
  75. mia_processes-2.8.0/mia_processes/sources_images/__init__.py +1 -0
  76. mia_processes-2.8.0/mia_processes/utils/DejaVuSans.ttf +0 -0
  77. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/utils/__init__.py +0 -5
  78. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/utils/report.py +80 -139
  79. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes/utils/tools.py +49 -159
  80. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/PKG-INFO +8 -11
  81. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/SOURCES.txt +6 -1
  82. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/requires.txt +0 -2
  83. {mia_processes-2.7.0 → mia_processes-2.8.0}/pyproject.toml +15 -7
  84. {mia_processes-2.7.0 → mia_processes-2.8.0}/setup.py +6 -6
  85. mia_processes-2.7.0/mia_processes/process_matlab.py +0 -97
  86. mia_processes-2.7.0/mia_processes/sources_images/__init__.py +0 -2
  87. {mia_processes-2.7.0 → mia_processes-2.8.0}/LICENSE +0 -0
  88. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/dependency_links.txt +0 -0
  89. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/not-zip-safe +0 -0
  90. {mia_processes-2.7.0 → mia_processes-2.8.0}/mia_processes.egg-info/top_level.txt +0 -0
  91. {mia_processes-2.7.0 → mia_processes-2.8.0}/setup.cfg +0 -0
@@ -0,0 +1,3 @@
1
+ include mia_processes/utils/DejaVuSans.ttf
2
+ include mia_processes/sources_images/*.jpg
3
+ include mia_processes/sources_images/*.png
@@ -1,26 +1,27 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mia_processes
3
- Version: 2.7.0
3
+ Version: 2.8.0
4
4
  Summary: mia_processes
5
5
  Home-page: http://populse.github.io/mia_processes
6
6
  Author: Populse team
7
7
  Author-email: Populse team <populse-support@univ-grenoble-alpes.fr>
8
- License: CeCILL-B
8
+ License-Expression: CECILL-2.1
9
9
  Project-URL: homepage, http://populse.github.io/mia_processes/
10
10
  Project-URL: repository, https://github.com/populse/mia_processes
11
11
  Platform: OS Independent
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Console
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: OS Independent
18
17
  Classifier: Programming Language :: Python :: 3 :: Only
19
- Classifier: Programming Language :: Python :: 3.9
20
18
  Classifier: Programming Language :: Python :: 3.10
21
19
  Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
- Requires-Python: >=3.9
23
+ Classifier: Topic :: Utilities
24
+ Requires-Python: >=3.10
24
25
  Description-Content-Type: text/markdown
25
26
  License-File: LICENSE
26
27
  Requires-Dist: boto
@@ -37,8 +38,6 @@ Requires-Dist: niworkflows
37
38
  Requires-Dist: numpy
38
39
  Requires-Dist: openpyxl
39
40
  Requires-Dist: paramiko
40
- Requires-Dist: populse-db<3.0.0,>=2.5.0
41
- Requires-Dist: populse_mia<3.0.0,>=2.5.0
42
41
  Requires-Dist: pyxnat
43
42
  Requires-Dist: reportlab
44
43
  Requires-Dist: scipy
@@ -62,7 +61,7 @@ Dynamic: platform
62
61
  <!-- [![](https://codecov.io/github/populse/mia_processes/coverage.svg?branch=master)](https://codecov.io/github/populse/mia_processes) -->
63
62
  [![](https://img.shields.io/badge/license-CeCILL-blue.svg)](https://github.com/populse/mia_processes/blob/master/LICENSE)
64
63
  [![](https://img.shields.io/pypi/v/mia_processes.svg)](https://pypi.org/project/mia_processes/)
65
- [![](https://img.shields.io/badge/python-3.9%2C%203.10%2C%203.11-yellow.svg)](#)
64
+ [![](https://img.shields.io/badge/python-3.10%2C%203.110%2C%203.12-yellow.svg)](#)
66
65
  [![](https://img.shields.io/badge/platform-Linux%2C%20OSX%2C%20Windows-orange.svg)](#)
67
66
 
68
67
  # Documentation
@@ -71,7 +70,7 @@ Dynamic: platform
71
70
 
72
71
  # Installation
73
72
 
74
- * A compatible version of [Python](https://www.python.org/) (>= 3.5) and [pip](https://packaging.python.org/guides/tool-recommendations/) must be installed.
73
+ * A compatible version of [Python](https://www.python.org/) (>= 3.10) and [pip](https://packaging.python.org/guides/tool-recommendations/) must be installed.
75
74
 
76
75
  * Depending on the Python setup and OS, the `python3` command may be used as the default Python command.
77
76
 
@@ -166,8 +165,6 @@ In order to get all the bricks and pipelines proposed by mia_processes some thir
166
165
  * numpy
167
166
  * openpyxl
168
167
  * paramiko
169
- * populse-db >= 2.5.0, < 3.0.0
170
- * populse_mia >= 2.5.0, < 3.0.0
171
168
  * pyxnat
172
169
  * reportlab
173
170
  * scipy
@@ -7,7 +7,7 @@
7
7
  <!-- [![](https://codecov.io/github/populse/mia_processes/coverage.svg?branch=master)](https://codecov.io/github/populse/mia_processes) -->
8
8
  [![](https://img.shields.io/badge/license-CeCILL-blue.svg)](https://github.com/populse/mia_processes/blob/master/LICENSE)
9
9
  [![](https://img.shields.io/pypi/v/mia_processes.svg)](https://pypi.org/project/mia_processes/)
10
- [![](https://img.shields.io/badge/python-3.9%2C%203.10%2C%203.11-yellow.svg)](#)
10
+ [![](https://img.shields.io/badge/python-3.10%2C%203.110%2C%203.12-yellow.svg)](#)
11
11
  [![](https://img.shields.io/badge/platform-Linux%2C%20OSX%2C%20Windows-orange.svg)](#)
12
12
 
13
13
  # Documentation
@@ -16,7 +16,7 @@
16
16
 
17
17
  # Installation
18
18
 
19
- * A compatible version of [Python](https://www.python.org/) (>= 3.5) and [pip](https://packaging.python.org/guides/tool-recommendations/) must be installed.
19
+ * A compatible version of [Python](https://www.python.org/) (>= 3.10) and [pip](https://packaging.python.org/guides/tool-recommendations/) must be installed.
20
20
 
21
21
  * Depending on the Python setup and OS, the `python3` command may be used as the default Python command.
22
22
 
@@ -111,8 +111,6 @@ In order to get all the bricks and pipelines proposed by mia_processes some thir
111
111
  * numpy
112
112
  * openpyxl
113
113
  * paramiko
114
- * populse-db >= 2.5.0, < 3.0.0
115
- * populse_mia >= 2.5.0, < 3.0.0
116
114
  * pyxnat
117
115
  * reportlab
118
116
  * scipy
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  Mia_processes is the official bricks library for populse_mia.
4
3
  A brick can be an atomic operation or a pipeline (a succession of atomic
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  :Contains:
4
3
  :Packages:
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  Each package corresponds to a software encapsulated in mia_processes.
4
3
 
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  The atomic calculations from afni.
4
3
 
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  """The afni preprocess library of the mia_processes package.
4
2
 
5
3
  The purpose of this module is to customise the main afni preprocessing bricks
@@ -79,7 +77,7 @@ class Automask(ProcessMIA):
79
77
  third-party products necessary for the running of the brick.
80
78
  """
81
79
  # Initialisation of the objects needed for the launch of the brick
82
- super(Automask, self).__init__()
80
+ super().__init__()
83
81
 
84
82
  # Third party software required for the execution of the brick
85
83
  self.requirement = ["afni", "nipype"]
@@ -209,7 +207,7 @@ class Automask(ProcessMIA):
209
207
  :returns: a dictionary with requirement, outputs and inheritance_dict.
210
208
  """
211
209
  # Using the inheritance to ProcessMIA class, list_outputs method
212
- super(Automask, self).list_outputs()
210
+ super().list_outputs()
213
211
 
214
212
  # Outputs definition and tags inheritance (optional)
215
213
  if self.in_file:
@@ -265,7 +263,7 @@ class Automask(ProcessMIA):
265
263
 
266
264
  def run_process_mia(self):
267
265
  """Dedicated to the process launch step of the brick."""
268
- super(Automask, self).run_process_mia()
266
+ super().run_process_mia()
269
267
  self.process.in_file = self.in_file
270
268
  self.process.outputtype = self.output_type
271
269
  self.process.out_file = self.out_file
@@ -297,7 +295,7 @@ class Calc(ProcessMIA):
297
295
  third-party products necessary for the running of the brick.
298
296
  """
299
297
  # Initialisation of the objects needed for the launch of the brick
300
- super(Calc, self).__init__()
298
+ super().__init__()
301
299
 
302
300
  # Third party software required for the execution of the brick
303
301
  self.requirement = ["afni", "nipype"]
@@ -451,7 +449,7 @@ class Calc(ProcessMIA):
451
449
  :returns: a dictionary with requirement, outputs and inheritance_dict.
452
450
  """
453
451
  # Using the inheritance to ProcessMIA class, list_outputs method
454
- super(Calc, self).list_outputs()
452
+ super().list_outputs()
455
453
 
456
454
  # Outputs definition and tags inheritance (optional)
457
455
  if (self.start_idx != Undefined and self.stop_idx == Undefined) or (
@@ -500,7 +498,7 @@ class Calc(ProcessMIA):
500
498
 
501
499
  def run_process_mia(self):
502
500
  """Dedicated to the process launch step of the brick."""
503
- super(Calc, self).run_process_mia()
501
+ super().run_process_mia()
504
502
  self.process.in_file_a = self.in_file_a
505
503
  self.process.in_file_b = self.in_file_b
506
504
  self.process.in_file_c = self.in_file_c
@@ -535,7 +533,7 @@ class CalcDropTRs(ProcessMIA):
535
533
  third-party products necessary for the running of the brick.
536
534
  """
537
535
  # Initialisation of the objects needed for the launch of the brick
538
- super(CalcDropTRs, self).__init__()
536
+ super().__init__()
539
537
 
540
538
  # Third party software required for the execution of the brick
541
539
  self.requirement = ["afni", "nipype"]
@@ -618,7 +616,7 @@ class CalcDropTRs(ProcessMIA):
618
616
  :returns: a dictionary with requirement, outputs and inheritance_dict.
619
617
  """
620
618
  # Using the inheritance to ProcessMIA class, list_outputs method
621
- super(CalcDropTRs, self).list_outputs()
619
+ super().list_outputs()
622
620
 
623
621
  # Outputs definition and tags inheritance (optional)
624
622
  if self.in_file:
@@ -674,7 +672,7 @@ class CalcDropTRs(ProcessMIA):
674
672
 
675
673
  def run_process_mia(self):
676
674
  """Dedicated to the process launch step of the brick."""
677
- super(CalcDropTRs, self).run_process_mia()
675
+ super().run_process_mia()
678
676
 
679
677
  if self.in_file == self.out_file:
680
678
  return
@@ -725,7 +723,7 @@ class Despike(ProcessMIA):
725
723
  third-party products necessary for the running of the brick.
726
724
  """
727
725
  # Initialisation of the objects needed for the launch of the brick
728
- super(Despike, self).__init__()
726
+ super().__init__()
729
727
 
730
728
  # Third party software required for the execution of the brick
731
729
  self.requirement = ["afni", "nipype"]
@@ -800,7 +798,7 @@ class Despike(ProcessMIA):
800
798
  :returns: a dictionary with requirement, outputs and inheritance_dict.
801
799
  """
802
800
  # Using the inheritance to ProcessMIA class, list_outputs method
803
- super(Despike, self).list_outputs()
801
+ super().list_outputs()
804
802
 
805
803
  # Outputs definition and tags inheritance (optional)
806
804
  if self.in_file:
@@ -845,7 +843,7 @@ class Despike(ProcessMIA):
845
843
 
846
844
  def run_process_mia(self):
847
845
  """Dedicated to the process launch step of the brick."""
848
- super(Despike, self).run_process_mia()
846
+ super().run_process_mia()
849
847
  if not self.despike:
850
848
  return
851
849
 
@@ -874,7 +872,7 @@ separately*
874
872
  third-party products necessary for the running of the brick.
875
873
  """
876
874
  # Initialisation of the objects needed for the launch of the brick
877
- super(FWHMx, self).__init__()
875
+ super().__init__()
878
876
 
879
877
  # Third party software required for the execution of the brick
880
878
  self.requirement = ["afni", "nipype"]
@@ -960,7 +958,7 @@ separately*
960
958
  :returns: a dictionary with requirement, outputs and inheritance_dict.
961
959
  """
962
960
  # Using the inheritance to ProcessMIA class, list_outputs method
963
- super(FWHMx, self).list_outputs()
961
+ super().list_outputs()
964
962
 
965
963
  # Outputs definition and tags inheritance (optional)
966
964
  if self.in_file:
@@ -996,7 +994,7 @@ separately*
996
994
 
997
995
  def run_process_mia(self):
998
996
  """Dedicated to the process launch step of the brick."""
999
- super(FWHMx, self).run_process_mia()
997
+ super().run_process_mia()
1000
998
 
1001
999
  self.process.in_file = self.in_file
1002
1000
  if self.mask_file:
@@ -1029,7 +1027,7 @@ voxel, over any given mask*
1029
1027
  third-party products necessary for the running of the brick.
1030
1028
  """
1031
1029
  # Initialisation of the objects needed for the launch of the brick
1032
- super(GCOR, self).__init__()
1030
+ super().__init__()
1033
1031
 
1034
1032
  # Third party software required for the execution of the brick
1035
1033
  self.requirement = ["afni", "nipype"]
@@ -1099,14 +1097,14 @@ voxel, over any given mask*
1099
1097
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1100
1098
  """
1101
1099
  # Using the inheritance to ProcessMIA class, list_outputs method
1102
- super(GCOR, self).list_outputs()
1100
+ super().list_outputs()
1103
1101
 
1104
1102
  # Outputs definition and tags inheritance (optional)
1105
1103
  if self.in_file:
1106
1104
  if self.output_directory:
1107
1105
  out_directory = os.path.join(
1108
1106
  self.output_directory,
1109
- "_dataGCOR{}".format(uuid.uuid4().hex[:6].upper()),
1107
+ f"_dataGCOR{uuid.uuid4().hex[:6].upper()}",
1110
1108
  )
1111
1109
 
1112
1110
  try:
@@ -1138,7 +1136,7 @@ voxel, over any given mask*
1138
1136
 
1139
1137
  def run_process_mia(self):
1140
1138
  """Dedicated to the process launch step of the brick."""
1141
- super(GCOR, self).run_process_mia()
1139
+ super().run_process_mia()
1142
1140
 
1143
1141
  self.process.in_file = self.in_file
1144
1142
  self.process.mask = self.mask_file
@@ -1168,7 +1166,7 @@ separately*
1168
1166
  third-party products necessary for the running of the brick.
1169
1167
  """
1170
1168
  # Initialisation of the objects needed for the launch of the brick
1171
- super(OutlierCount, self).__init__()
1169
+ super().__init__()
1172
1170
 
1173
1171
  # Third party software required for the execution of the brick
1174
1172
  self.requirement = ["afni", "nipype"]
@@ -1305,7 +1303,7 @@ separately*
1305
1303
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1306
1304
  """
1307
1305
  # Using the inheritance to ProcessMIA class, list_outputs method
1308
- super(OutlierCount, self).list_outputs()
1306
+ super().list_outputs()
1309
1307
 
1310
1308
  # Outputs definition and tags inheritance (optional)
1311
1309
  if self.in_file:
@@ -1351,7 +1349,7 @@ separately*
1351
1349
 
1352
1350
  def run_process_mia(self):
1353
1351
  """Dedicated to the process launch step of the brick."""
1354
- super(OutlierCount, self).run_process_mia()
1352
+ super().run_process_mia()
1355
1353
 
1356
1354
  self.process.in_file = self.in_file
1357
1355
  if self.automask:
@@ -1390,7 +1388,7 @@ class QualityIndex(ProcessMIA):
1390
1388
  third-party products necessary for the running of the brick.
1391
1389
  """
1392
1390
  # Initialisation of the objects needed for the launch of the brick
1393
- super(QualityIndex, self).__init__()
1391
+ super().__init__()
1394
1392
 
1395
1393
  # Third party software required for the execution of the brick
1396
1394
  self.requirement = ["afni", "nipype"]
@@ -1501,7 +1499,7 @@ class QualityIndex(ProcessMIA):
1501
1499
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1502
1500
  """
1503
1501
  # Using the inheritance to ProcessMIA class, list_outputs method
1504
- super(QualityIndex, self).list_outputs()
1502
+ super().list_outputs()
1505
1503
 
1506
1504
  if (self.automask and self.mask_file) or (
1507
1505
  self.autoclip and self.mask_file
@@ -1546,7 +1544,7 @@ class QualityIndex(ProcessMIA):
1546
1544
 
1547
1545
  def run_process_mia(self):
1548
1546
  """Dedicated to the process launch step of the brick."""
1549
- super(QualityIndex, self).run_process_mia()
1547
+ super().run_process_mia()
1550
1548
 
1551
1549
  self.process.in_file = self.in_file
1552
1550
  if self.autoclip:
@@ -1583,7 +1581,7 @@ class RefitDeoblique(ProcessMIA):
1583
1581
  third-party products necessary for the running of the brick.
1584
1582
  """
1585
1583
  # Initialisation of the objects needed for the launch of the brick
1586
- super(RefitDeoblique, self).__init__()
1584
+ super().__init__()
1587
1585
 
1588
1586
  # Third party software required for the execution of the brick
1589
1587
  self.requirement = ["afni", "nipype"]
@@ -1632,7 +1630,7 @@ class RefitDeoblique(ProcessMIA):
1632
1630
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1633
1631
  """
1634
1632
  # Using the inheritance to ProcessMIA class, list_outputs method
1635
- super(RefitDeoblique, self).list_outputs()
1633
+ super().list_outputs()
1636
1634
 
1637
1635
  # Outputs definition and tags inheritance (optional)
1638
1636
  if self.in_file:
@@ -1648,7 +1646,7 @@ class RefitDeoblique(ProcessMIA):
1648
1646
 
1649
1647
  def run_process_mia(self):
1650
1648
  """Dedicated to the process launch step of the brick."""
1651
- super(RefitDeoblique, self).run_process_mia()
1649
+ super().run_process_mia()
1652
1650
 
1653
1651
  self.process.in_file = self.in_file
1654
1652
  self.process.deoblique = self.deoblique
@@ -1674,7 +1672,7 @@ class SkullStrip(ProcessMIA):
1674
1672
  third-party products necessary for the running of the brick.
1675
1673
  """
1676
1674
  # Initialisation of the objects needed for the launch of the brick
1677
- super(SkullStrip, self).__init__()
1675
+ super().__init__()
1678
1676
 
1679
1677
  # Third party software required for the execution of the brick
1680
1678
  self.requirement = ["afni", "nipype"]
@@ -1743,7 +1741,7 @@ class SkullStrip(ProcessMIA):
1743
1741
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1744
1742
  """
1745
1743
  # Using the inheritance to ProcessMIA class, list_outputs method
1746
- super(SkullStrip, self).list_outputs()
1744
+ super().list_outputs()
1747
1745
 
1748
1746
  # Outputs definition and tags inheritance (optional)
1749
1747
  if self.in_file:
@@ -1782,7 +1780,7 @@ class SkullStrip(ProcessMIA):
1782
1780
 
1783
1781
  def run_process_mia(self):
1784
1782
  """Dedicated to the process launch step of the brick."""
1785
- super(SkullStrip, self).run_process_mia()
1783
+ super().run_process_mia()
1786
1784
  self.process.in_file = self.in_file
1787
1785
  self.process.outputtype = self.output_type
1788
1786
  self.process.out_file = self.out_file
@@ -1811,7 +1809,7 @@ class TShift(ProcessMIA):
1811
1809
  third-party products necessary for the running of the brick.
1812
1810
  """
1813
1811
  # Initialisation of the objects needed for the launch of the brick
1814
- super(TShift, self).__init__()
1812
+ super().__init__()
1815
1813
 
1816
1814
  # Third party software required for the execution of the brick
1817
1815
  self.requirement = ["afni", "nipype"]
@@ -2046,7 +2044,7 @@ class TShift(ProcessMIA):
2046
2044
  :returns: a dictionary with requirement, outputs and inheritance_dict.
2047
2045
  """
2048
2046
  # Using the inheritance to ProcessMIA class, list_outputs method
2049
- super(TShift, self).list_outputs()
2047
+ super().list_outputs()
2050
2048
 
2051
2049
  if self.slice_timing and self.tpattern != Undefined:
2052
2050
  print(
@@ -2107,7 +2105,7 @@ class TShift(ProcessMIA):
2107
2105
 
2108
2106
  def run_process_mia(self):
2109
2107
  """Dedicated to the process launch step of the brick."""
2110
- super(TShift, self).run_process_mia()
2108
+ super().run_process_mia()
2111
2109
  if not self.slice_timing and self.tpattern == Undefined:
2112
2110
  return
2113
2111
 
@@ -2154,7 +2152,7 @@ class TStatMean(ProcessMIA):
2154
2152
  third-party products necessary for the running of the brick.
2155
2153
  """
2156
2154
  # Initialisation of the objects needed for the launch of the brick
2157
- super(TStatMean, self).__init__()
2155
+ super().__init__()
2158
2156
 
2159
2157
  # Third party software required for the execution of the brick
2160
2158
  self.requirement = ["afni", "nipype"]
@@ -2223,7 +2221,7 @@ class TStatMean(ProcessMIA):
2223
2221
  :returns: a dictionary with requirement, outputs and inheritance_dict.
2224
2222
  """
2225
2223
  # Using the inheritance to ProcessMIA class, list_outputs method
2226
- super(TStatMean, self).list_outputs()
2224
+ super().list_outputs()
2227
2225
 
2228
2226
  # Outputs definition and tags inheritance (optional)
2229
2227
  if self.in_file:
@@ -2262,7 +2260,7 @@ class TStatMean(ProcessMIA):
2262
2260
 
2263
2261
  def run_process_mia(self):
2264
2262
  """Dedicated to the process launch step of the brick."""
2265
- super(TStatMean, self).run_process_mia()
2263
+ super().run_process_mia()
2266
2264
 
2267
2265
  self.process.in_file = self.in_file
2268
2266
  self.process.args = "-mean"
@@ -2293,7 +2291,7 @@ class Volreg(ProcessMIA):
2293
2291
  third-party products necessary for the running of the brick.
2294
2292
  """
2295
2293
  # Initialisation of the objects needed for the launch of the brick
2296
- super(Volreg, self).__init__()
2294
+ super().__init__()
2297
2295
 
2298
2296
  # Third party software required for the execution of the brick
2299
2297
  self.requirement = ["afni", "nipype"]
@@ -2475,7 +2473,7 @@ class Volreg(ProcessMIA):
2475
2473
  :returns: a dictionary with requirement, outputs and inheritance_dict.
2476
2474
  """
2477
2475
  # Using the inheritance to ProcessMIA class, list_outputs method
2478
- super(Volreg, self).list_outputs()
2476
+ super().list_outputs()
2479
2477
 
2480
2478
  # Outputs definition and tags inheritance (optional)
2481
2479
  if self.in_file:
@@ -2543,7 +2541,7 @@ class Volreg(ProcessMIA):
2543
2541
 
2544
2542
  def run_process_mia(self):
2545
2543
  """Dedicated to the process launch step of the brick."""
2546
- super(Volreg, self).run_process_mia()
2544
+ super().run_process_mia()
2547
2545
  self.process.in_file = self.in_file
2548
2546
  self.process.outputtype = self.output_type
2549
2547
  self.process.interp = self.interpolation
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  The atomic calculations from ants.
4
3
 
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  """The ants preprocess library of the mia_processes package.
4
2
 
5
3
  The purpose of this module is to customise the main ants preprocessing bricks
@@ -69,7 +67,7 @@ class AffineInitializer(ProcessMIA):
69
67
  third-party products necessary for the running of the brick.
70
68
  """
71
69
  # Initialisation of the objects needed for the launch of the brick
72
- super(AffineInitializer, self).__init__()
70
+ super().__init__()
73
71
 
74
72
  # Third party software required for the execution of the brick
75
73
  self.requirement = ["ants", "nipype"]
@@ -189,7 +187,7 @@ class AffineInitializer(ProcessMIA):
189
187
  :returns: a dictionary with requirement, outputs and inheritance_dict.
190
188
  """
191
189
  # Using the inheritance to ProcessMIA class, list_outputs method
192
- super(AffineInitializer, self).list_outputs()
190
+ super().list_outputs()
193
191
 
194
192
  # Outputs definition and tags inheritance (optional)
195
193
  if self.moving_image:
@@ -228,7 +226,7 @@ class AffineInitializer(ProcessMIA):
228
226
 
229
227
  def run_process_mia(self):
230
228
  """Dedicated to the process launch step of the brick."""
231
- super(AffineInitializer, self).run_process_mia()
229
+ super().run_process_mia()
232
230
 
233
231
  # TODO: We see in soma_workflow: nipype.interface INFO:
234
232
  # bad det -1 v 1 u -1
@@ -266,7 +264,7 @@ class ApplyTransforms(ProcessMIA):
266
264
  third-party products necessary for the running of the brick.
267
265
  """
268
266
  # Initialisation of the objects needed for the launch of the brick
269
- super(ApplyTransforms, self).__init__()
267
+ super().__init__()
270
268
 
271
269
  # Third party software required for the execution of the brick
272
270
  self.requirement = ["ants", "nipype"]
@@ -468,7 +466,7 @@ class ApplyTransforms(ProcessMIA):
468
466
  :returns: a dictionary with requirement, outputs and inheritance_dict.
469
467
  """
470
468
  # Using the inheritance to ProcessMIA class, list_outputs method
471
- super(ApplyTransforms, self).list_outputs()
469
+ super().list_outputs()
472
470
 
473
471
  # Outputs definition and tags inheritance (optional)
474
472
  if self.input_image:
@@ -506,7 +504,7 @@ class ApplyTransforms(ProcessMIA):
506
504
 
507
505
  def run_process_mia(self):
508
506
  """Dedicated to the process launch step of the brick."""
509
- super(ApplyTransforms, self).run_process_mia()
507
+ super().run_process_mia()
510
508
 
511
509
  self.process.input_image = self.input_image
512
510
  self.process.reference_image = self.reference_image
@@ -551,7 +549,7 @@ class N4BiasFieldCorrection(ProcessMIA):
551
549
  third-party products necessary for the running of the brick.
552
550
  """
553
551
  # Initialisation of the objects needed for the launch of the brick
554
- super(N4BiasFieldCorrection, self).__init__()
552
+ super().__init__()
555
553
 
556
554
  # Third party software required for the execution of the brick
557
555
  self.requirement = ["ants", "nipype"]
@@ -793,7 +791,7 @@ class N4BiasFieldCorrection(ProcessMIA):
793
791
  :returns: a dictionary with requirement, outputs and inheritance_dict.
794
792
  """
795
793
  # Using the inheritance to ProcessMIA class, list_outputs method
796
- super(N4BiasFieldCorrection, self).list_outputs()
794
+ super().list_outputs()
797
795
 
798
796
  # Outputs definition and tags inheritance (optional)
799
797
  if self.in_file:
@@ -850,7 +848,7 @@ class N4BiasFieldCorrection(ProcessMIA):
850
848
 
851
849
  def run_process_mia(self):
852
850
  """Dedicated to the process launch step of the brick."""
853
- super(N4BiasFieldCorrection, self).run_process_mia()
851
+ super().run_process_mia()
854
852
 
855
853
  # If negative values, scale image
856
854
  input_nii = nib.load(self.in_file)
@@ -926,7 +924,7 @@ class Registration(ProcessMIA):
926
924
  third-party products necessary for the running of the brick.
927
925
  """
928
926
  # Initialisation of the objects needed for the launch of the brick
929
- super(Registration, self).__init__()
927
+ super().__init__()
930
928
 
931
929
  # Third party software required for the execution of the brick
932
930
  self.requirement = ["ants", "nipype"]
@@ -1614,7 +1612,7 @@ class Registration(ProcessMIA):
1614
1612
  :returns: a dictionary with requirement, outputs and inheritance_dict.
1615
1613
  """
1616
1614
  # Using the inheritance to ProcessMIA class, list_outputs method
1617
- super(Registration, self).list_outputs()
1615
+ super().list_outputs()
1618
1616
 
1619
1617
  if (
1620
1618
  self.sampling_percentage == Undefined
@@ -1735,7 +1733,7 @@ class Registration(ProcessMIA):
1735
1733
 
1736
1734
  def run_process_mia(self):
1737
1735
  """Dedicated to the process launch step of the brick."""
1738
- super(Registration, self).run_process_mia()
1736
+ super().run_process_mia()
1739
1737
 
1740
1738
  # TODO: We see in soma_workflow: nipype.interface INFO: file NULL does
1741
1739
  # not exist, with MRIQC anat
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  The atomic calculations from dipy.
4
3
 
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  """The dipy preprocess library of the mia_processes package.
4
2
 
5
3
  The purpose of this module is to customise the main dipy preprocessing bricks
@@ -61,7 +59,7 @@ class Denoise(ProcessMIA):
61
59
  third-party products necessary for the running of the brick.
62
60
  """
63
61
  # Initialisation of the objects needed for the launch of the brick
64
- super(Denoise, self).__init__()
62
+ super().__init__()
65
63
 
66
64
  # Third party software required for the execution of the brick
67
65
  self.requirement = ["nipype"]
@@ -187,7 +185,7 @@ class Denoise(ProcessMIA):
187
185
  :returns: a dictionary with requirement, outputs and inheritance_dict.
188
186
  """
189
187
  # Using the inheritance to ProcessMIA class, list_outputs method
190
- super(Denoise, self).list_outputs()
188
+ super().list_outputs()
191
189
 
192
190
  # Outputs definition and tags inheritance (optional)
193
191
  if self.in_file:
@@ -223,7 +221,7 @@ class Denoise(ProcessMIA):
223
221
 
224
222
  def run_process_mia(self):
225
223
  """Dedicated to the process launch step of the brick."""
226
- super(Denoise, self).run_process_mia()
224
+ super().run_process_mia()
227
225
  self.process.in_file = self.in_file
228
226
  self.process.block_radius = self.block_radius
229
227
  self.process.noise_model = self.noise_model
@@ -259,7 +257,7 @@ class ComputeDKI(ProcessMIA):
259
257
  third-party products necessary for the running of the brick.
260
258
  """
261
259
  # Initialisation of the objects needed for the launch of the brick
262
- super(ComputeDKI, self).__init__()
260
+ super().__init__()
263
261
 
264
262
  # Third party software required for the execution of the brick
265
263
  # self.requirement = ["nipype"]
@@ -366,7 +364,7 @@ class ComputeDKI(ProcessMIA):
366
364
  :returns: a dictionary with requirement, outputs and inheritance_dict.
367
365
  """
368
366
  # Using the inheritance to ProcessMIA class, list_outputs method
369
- super(ComputeDKI, self).list_outputs()
367
+ super().list_outputs()
370
368
 
371
369
  # Outputs definition and tags inheritance (optional)
372
370
  if self.in_dwi:
@@ -447,7 +445,7 @@ class ComputeDKI(ProcessMIA):
447
445
 
448
446
  def run_process_mia(self):
449
447
  """Dedicated to the process launch step of the brick."""
450
- super(ComputeDKI, self).run_process_mia()
448
+ super().run_process_mia()
451
449
 
452
450
  data, affine = load_nifti(self.in_dwi)
453
451
  bvals, bvecs = read_bvals_bvecs(self.dwi_bval, self.dwi_bvec)
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """
3
2
  The atomic calculations from freesurfer.
4
3