junifer 0.0.6.dev378__py3-none-any.whl → 0.0.6.dev379__py3-none-any.whl

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.
junifer/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.6.dev378'
16
- __version_tuple__ = version_tuple = (0, 0, 6, 'dev378')
15
+ __version__ = version = '0.0.6.dev379'
16
+ __version_tuple__ = version_tuple = (0, 0, 6, 'dev379')
@@ -165,6 +165,21 @@ def compute_brain_mask(
165
165
  )
166
166
 
167
167
  mask_name = f"template_{target_std_space}_for_compute_brain_mask"
168
+
169
+ # Warp template to correct space (MNI to MNI)
170
+ if template_space != "native" and template_space != target_std_space:
171
+ logger.debug(
172
+ f"Warping template to {target_std_space} space using ANTs."
173
+ )
174
+ template = ANTsMaskWarper().warp(
175
+ mask_name=mask_name,
176
+ mask_img=template,
177
+ src=template_space,
178
+ dst=target_std_space,
179
+ target_data=target_data,
180
+ warp_data=None,
181
+ )
182
+
168
183
  # Resample and warp template if target space is native
169
184
  if target_data["space"] == "native" and template_space != "native":
170
185
  if warp_data["warper"] == "fsl":
@@ -185,19 +200,6 @@ def compute_brain_mask(
185
200
  warp_data=warp_data,
186
201
  )
187
202
  else:
188
- # Warp template to correct space
189
- if template_space != target_std_space:
190
- logger.debug(
191
- f"Warping template to {target_std_space} space using ANTs."
192
- )
193
- template = ANTsMaskWarper().warp(
194
- mask_name=mask_name,
195
- mask_img=template,
196
- src=template_space,
197
- dst=target_std_space,
198
- target_data=target_data,
199
- warp_data=None,
200
- )
201
203
  # Resample template to target image
202
204
  resampled_template = nimg.resample_to_img(
203
205
  source_img=template,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: junifer
3
- Version: 0.0.6.dev378
3
+ Version: 0.0.6.dev379
4
4
  Summary: JUelich NeuroImaging FEature extractoR
5
5
  Author-email: Fede Raimondo <f.raimondo@fz-juelich.de>, Synchon Mandal <s.mandal@fz-juelich.de>
6
6
  Maintainer-email: Fede Raimondo <f.raimondo@fz-juelich.de>, Synchon Mandal <s.mandal@fz-juelich.de>
@@ -1,6 +1,6 @@
1
1
  junifer/__init__.py,sha256=2McgH1yNue6Z1V26-uN_mfMjbTcx4CLhym-DMBl5xA4,266
2
2
  junifer/__init__.pyi,sha256=SsTvgq2Dod6UqJN96GH1lCphH6hJQQurEJHGNhHjGUI,508
3
- junifer/_version.py,sha256=oYfebrtAvhll95HaoOLZCO0IYYGaqQpsY-CgDqPH8w4,428
3
+ junifer/_version.py,sha256=HhdN9ExDOk5GQptlKq1vXbTLsjl26fTtCOnfJ-HdlBE,428
4
4
  junifer/conftest.py,sha256=PWYkkRDU8ly2lYwv7VBKMHje4et6HX7Yey3Md_I2KbA,613
5
5
  junifer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  junifer/stats.py,sha256=e9aaagMGtgpRfW3Wdpz9ocpnYld1IWylCDcjFUgX9Mk,6225
@@ -106,7 +106,7 @@ junifer/data/masks/__init__.py,sha256=eEEhHglyVEx1LrqwXjq3cOmjf4sTsgBstRx5-k7zIQ
106
106
  junifer/data/masks/__init__.pyi,sha256=lcgr8gmWDPibC4RxnWBXb8DDpIkO73Aax09u6VXiJJI,114
107
107
  junifer/data/masks/_ants_mask_warper.py,sha256=JLK2Jh2AOAiv_NoUGhRoTBEhRFXPRXTDPmQGH9vBSok,5805
108
108
  junifer/data/masks/_fsl_mask_warper.py,sha256=YZOMlRgQ7_4shnXNc_05tmwDk5xHI-1wqle-RdNsJ34,2857
109
- junifer/data/masks/_masks.py,sha256=ZR0pfwIBiyJ3tGKo0mHW5Pu5asaZHeTvYbgJrUwZh24,28172
109
+ junifer/data/masks/_masks.py,sha256=K-A1cr9TAeVzFPGgn4FUmwIo6LBP0xQb1Q4NW6WTWVo,28166
110
110
  junifer/data/masks/tests/test_masks.py,sha256=W0bzRB5Bp-iGO44VtEmaf7BuT-joe_2tQI0lma5NQHA,16090
111
111
  junifer/data/masks/ukb/UKB_15K_GM_template.nii.gz,sha256=jcX1pDOrDsoph8cPMNFVKH5gZYio5G4rJNpOFXm9wJI,946636
112
112
  junifer/data/masks/vickery-patil/CAT12_IXI555_MNI152_TMP_GS_GMprob0.2_clean.nii.gz,sha256=j6EY8EtRnUuRxeKgD65Q6B0GPEPIALKDJEIje1TfnAU,88270
@@ -341,10 +341,10 @@ junifer/utils/tests/test_config.py,sha256=7ltIXuwb_W4Mv_1dxQWyiyM10XgUAfsWKV6D_i
341
341
  junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
342
342
  junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
343
343
  junifer/utils/tests/test_logging.py,sha256=duO4ou365hxwa_kwihFtKPLaL6LC5XHiyhOijrrngbA,8009
344
- junifer-0.0.6.dev378.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
345
- junifer-0.0.6.dev378.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
346
- junifer-0.0.6.dev378.dist-info/METADATA,sha256=1i1ttfHKfKnLZhJQxPgbjBGDS5rw3l7O1R0OtIldFO4,8429
347
- junifer-0.0.6.dev378.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
348
- junifer-0.0.6.dev378.dist-info/entry_points.txt,sha256=6O8ru0BP-SP7YMUZiizFNoaZ2HvJpadO2G7nKk4PwjI,48
349
- junifer-0.0.6.dev378.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
350
- junifer-0.0.6.dev378.dist-info/RECORD,,
344
+ junifer-0.0.6.dev379.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
345
+ junifer-0.0.6.dev379.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
346
+ junifer-0.0.6.dev379.dist-info/METADATA,sha256=uDj1UT_o42FUimuI7VbBLM_eNYP_S8OcMFnWeR_AWbY,8429
347
+ junifer-0.0.6.dev379.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
348
+ junifer-0.0.6.dev379.dist-info/entry_points.txt,sha256=6O8ru0BP-SP7YMUZiizFNoaZ2HvJpadO2G7nKk4PwjI,48
349
+ junifer-0.0.6.dev379.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
350
+ junifer-0.0.6.dev379.dist-info/RECORD,,