junifer 0.0.6.dev252__py3-none-any.whl → 0.0.6.dev258__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 +2 -2
- junifer/data/coordinates/_ants_coordinates_warper.py +13 -3
- junifer/data/coordinates/_coordinates.py +1 -1
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/METADATA +1 -1
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/RECORD +10 -10
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/AUTHORS.rst +0 -0
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/LICENSE.md +0 -0
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/WHEEL +0 -0
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/entry_points.txt +0 -0
- {junifer-0.0.6.dev252.dist-info → junifer-0.0.6.dev258.dist-info}/top_level.txt +0 -0
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.
|
16
|
-
__version_tuple__ = version_tuple = (0, 0, 6, '
|
15
|
+
__version__ = version = '0.0.6.dev258'
|
16
|
+
__version_tuple__ = version_tuple = (0, 0, 6, 'dev258')
|
@@ -55,19 +55,24 @@ class ANTsCoordinatesWarper:
|
|
55
55
|
|
56
56
|
# Save existing coordinates to a tempfile
|
57
57
|
pretransform_coordinates_path = (
|
58
|
-
element_tempdir / "pretransform_coordinates.
|
58
|
+
element_tempdir / "pretransform_coordinates.csv"
|
59
59
|
)
|
60
|
+
# Convert LPS to RAS
|
61
|
+
seeds[:, 0] *= -1
|
62
|
+
seeds[:, 1] *= -1
|
60
63
|
np.savetxt(
|
61
64
|
pretransform_coordinates_path,
|
62
65
|
seeds,
|
63
66
|
delimiter=",",
|
64
67
|
# Add header while saving to make ANTs work
|
65
68
|
header="x,y,z",
|
69
|
+
# Remove comment tag for header
|
70
|
+
comments="",
|
66
71
|
)
|
67
72
|
|
68
73
|
# Create a tempfile for transformed coordinates output
|
69
74
|
transformed_coords_path = (
|
70
|
-
element_tempdir / "coordinates_transformed.
|
75
|
+
element_tempdir / "coordinates_transformed.csv"
|
71
76
|
)
|
72
77
|
# Set antsApplyTransformsToPoints command
|
73
78
|
apply_transforms_to_points_cmd = [
|
@@ -86,9 +91,14 @@ class ANTsCoordinatesWarper:
|
|
86
91
|
)
|
87
92
|
|
88
93
|
# Load coordinates
|
89
|
-
|
94
|
+
transformed_seeds = np.loadtxt(
|
90
95
|
# Skip header when reading
|
91
96
|
transformed_coords_path,
|
92
97
|
delimiter=",",
|
93
98
|
skiprows=1,
|
94
99
|
)
|
100
|
+
# Convert RAS to LPS
|
101
|
+
transformed_seeds[:, 0] *= -1
|
102
|
+
transformed_seeds[:, 1] *= -1
|
103
|
+
|
104
|
+
return transformed_seeds
|
@@ -362,7 +362,7 @@ class CoordinatesRegistry(BasePipelineDataRegistry, metaclass=Singleton):
|
|
362
362
|
seeds = ANTsCoordinatesWarper().warp(
|
363
363
|
seeds=seeds,
|
364
364
|
target_data=target_data,
|
365
|
-
warp_data=
|
365
|
+
warp_data=inverse_warper_spec,
|
366
366
|
)
|
367
367
|
|
368
368
|
return seeds, labels
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: junifer
|
3
|
-
Version: 0.0.6.
|
3
|
+
Version: 0.0.6.dev258
|
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
|
3
|
+
junifer/_version.py,sha256=-HB5jqFqzc7zEZaNPXVSCoHvW4V223fvaUsizOfAdfQ,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=pQCy9u4q3Wp0kMFmS0BVIfU8UCKsRqrNbyprhtlNUOg,6225
|
@@ -79,8 +79,8 @@ junifer/data/template_spaces.py,sha256=Hcg4k1FL_kVhde6JJUXIQWd_fjqdtTto3nbzx8-t5
|
|
79
79
|
junifer/data/utils.py,sha256=5r-0QGQCNZvDM1tVcl9xyrIdgAO85mww0plpM1RUaGA,3247
|
80
80
|
junifer/data/coordinates/__init__.py,sha256=ffM8rwcHLgHAWixJbKrATrbUKzX940V1UF6RAxZdUMg,186
|
81
81
|
junifer/data/coordinates/__init__.pyi,sha256=Z-Ti5XD3HigkZ8uYN6oYsLqw40-F1GvTVQ5QAy08Wng,88
|
82
|
-
junifer/data/coordinates/_ants_coordinates_warper.py,sha256=
|
83
|
-
junifer/data/coordinates/_coordinates.py,sha256=
|
82
|
+
junifer/data/coordinates/_ants_coordinates_warper.py,sha256=5RWDC-nI3VG9lkSJ-_y_hlDtjPctKSJokQOp3v8ozwY,2956
|
83
|
+
junifer/data/coordinates/_coordinates.py,sha256=fBXVvuTxYLTNBSrQiTCiQsxpT0SdbQze3DYuGGgz_mY,12501
|
84
84
|
junifer/data/coordinates/_fsl_coordinates_warper.py,sha256=GI0SrkNyAuRsoRSxI5WNvQmtPXQ3MlXvPx9lrd3NYB4,2406
|
85
85
|
junifer/data/coordinates/VOIs/meta/AutobiographicalMemory_VOIs.txt,sha256=9af38naeL18Tlt_gy_ep6vyTAxOB336JYjbo5FvP8PQ,686
|
86
86
|
junifer/data/coordinates/VOIs/meta/CogAC_VOIs.txt,sha256=Sr5_E712OLdeQRyUcDNM0wLBvZIyO6gc9Q7KkyJHX1A,398
|
@@ -339,10 +339,10 @@ junifer/utils/singleton.py,sha256=pp2jOGXmTdZSf4XDL-5S79YKY1Iag1inyWBjVC0Ic9U,11
|
|
339
339
|
junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
|
340
340
|
junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
|
341
341
|
junifer/utils/tests/test_logging.py,sha256=duO4ou365hxwa_kwihFtKPLaL6LC5XHiyhOijrrngbA,8009
|
342
|
-
junifer-0.0.6.
|
343
|
-
junifer-0.0.6.
|
344
|
-
junifer-0.0.6.
|
345
|
-
junifer-0.0.6.
|
346
|
-
junifer-0.0.6.
|
347
|
-
junifer-0.0.6.
|
348
|
-
junifer-0.0.6.
|
342
|
+
junifer-0.0.6.dev258.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
|
343
|
+
junifer-0.0.6.dev258.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
|
344
|
+
junifer-0.0.6.dev258.dist-info/METADATA,sha256=m8Kc3zI1th_ZSI3sdBkBM_5-n-N4UT5tjqGBYyEz3S8,8481
|
345
|
+
junifer-0.0.6.dev258.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
346
|
+
junifer-0.0.6.dev258.dist-info/entry_points.txt,sha256=6O8ru0BP-SP7YMUZiizFNoaZ2HvJpadO2G7nKk4PwjI,48
|
347
|
+
junifer-0.0.6.dev258.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
|
348
|
+
junifer-0.0.6.dev258.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|