junifer 0.0.5.dev110__py3-none-any.whl → 0.0.5.dev131__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/api/tests/test_api_utils.py +2 -0
- junifer/data/tests/test_masks.py +1 -1
- junifer/datagrabber/pattern.py +2 -1
- junifer/external/BrainPrint/brainprint/__init__.py +4 -0
- junifer/external/BrainPrint/brainprint/_version.py +3 -0
- junifer/external/BrainPrint/brainprint/asymmetry.py +91 -0
- junifer/external/BrainPrint/brainprint/brainprint.py +441 -0
- junifer/external/BrainPrint/brainprint/surfaces.py +258 -0
- junifer/external/BrainPrint/brainprint/utils/__init__.py +1 -0
- junifer/external/BrainPrint/brainprint/utils/_config.py +112 -0
- junifer/external/BrainPrint/brainprint/utils/utils.py +188 -0
- junifer/markers/__init__.py +1 -0
- junifer/markers/brainprint.py +662 -0
- junifer/markers/reho/_afni_reho.py +1 -1
- junifer/markers/reho/_junifer_reho.py +1 -1
- junifer/markers/reho/reho_parcels.py +2 -2
- junifer/markers/reho/reho_spheres.py +2 -2
- junifer/markers/tests/test_brainprint.py +47 -0
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/METADATA +2 -1
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/RECORD +26 -16
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/AUTHORS.rst +0 -0
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/LICENSE.md +0 -0
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/WHEEL +0 -0
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/entry_points.txt +0 -0
- {junifer-0.0.5.dev110.dist-info → junifer-0.0.5.dev131.dist-info}/top_level.txt +0 -0
@@ -48,7 +48,7 @@ class ReHoSpheres(ReHoBase):
|
|
48
48
|
Number of voxels in the neighbourhood, inclusive. Can be:
|
49
49
|
|
50
50
|
- 7 : for facewise neighbours only
|
51
|
-
- 19 : for face- and edge-wise
|
51
|
+
- 19 : for face- and edge-wise neighbours
|
52
52
|
- 27 : for face-, edge-, and node-wise neighbors
|
53
53
|
|
54
54
|
* ``neigh_rad`` : positive float, optional
|
@@ -78,7 +78,7 @@ class ReHoSpheres(ReHoBase):
|
|
78
78
|
Number of voxels in the neighbourhood, inclusive. Can be:
|
79
79
|
|
80
80
|
* 7 : for facewise neighbours only
|
81
|
-
* 19 : for face- and edge-wise
|
81
|
+
* 19 : for face- and edge-wise neighbours
|
82
82
|
* 27 : for face-, edge-, and node-wise neighbors
|
83
83
|
* 125 : for 5x5 cuboidal volume
|
84
84
|
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"""Provide tests for BrainPrint."""
|
2
|
+
|
3
|
+
# Authors: Synchon Mandal <s.mandal@fz-juelich.de>
|
4
|
+
# License: AGPL
|
5
|
+
|
6
|
+
import socket
|
7
|
+
|
8
|
+
import pytest
|
9
|
+
|
10
|
+
from junifer.datagrabber import DataladAOMICID1000
|
11
|
+
from junifer.datareader import DefaultDataReader
|
12
|
+
from junifer.markers import BrainPrint
|
13
|
+
from junifer.pipeline.utils import _check_freesurfer
|
14
|
+
|
15
|
+
|
16
|
+
def test_get_output_type() -> None:
|
17
|
+
"""Test BrainPrint get_output_type()."""
|
18
|
+
marker = BrainPrint()
|
19
|
+
assert marker.get_output_type("FreeSurfer") == "vector"
|
20
|
+
|
21
|
+
|
22
|
+
def test_validate() -> None:
|
23
|
+
"""Test BrainPrint validate()."""
|
24
|
+
marker = BrainPrint()
|
25
|
+
assert set(marker.validate(["FreeSurfer"])) == {"scalar_table", "vector"}
|
26
|
+
|
27
|
+
|
28
|
+
@pytest.mark.skipif(
|
29
|
+
_check_freesurfer() is False, reason="requires FreeSurfer to be in PATH"
|
30
|
+
)
|
31
|
+
@pytest.mark.skipif(
|
32
|
+
socket.gethostname() != "juseless",
|
33
|
+
reason="only for juseless",
|
34
|
+
)
|
35
|
+
def test_compute() -> None:
|
36
|
+
"""Test BrainPrint compute()."""
|
37
|
+
with DataladAOMICID1000(types="FreeSurfer") as dg:
|
38
|
+
# Fetch element
|
39
|
+
element = dg["sub-0001"]
|
40
|
+
# Fetch element data
|
41
|
+
element_data = DefaultDataReader().fit_transform(element)
|
42
|
+
# Initialize the marker
|
43
|
+
marker = BrainPrint()
|
44
|
+
# Compute the marker
|
45
|
+
feature_map = marker.fit_transform(element_data)
|
46
|
+
# Assert the output keys
|
47
|
+
assert {"eigenvalues", "areas", "volumes"} == set(feature_map.keys())
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: junifer
|
3
|
-
Version: 0.0.5.
|
3
|
+
Version: 0.0.5.dev131
|
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>
|
@@ -41,6 +41,7 @@ Requires-Dist: h5py >=3.10
|
|
41
41
|
Requires-Dist: httpx[http2] ==0.26.0
|
42
42
|
Requires-Dist: tqdm ==4.66.1
|
43
43
|
Requires-Dist: templateflow >=23.0.0
|
44
|
+
Requires-Dist: lapy <2.0.0,>=1.0.0
|
44
45
|
Requires-Dist: importlib-metadata ; python_version < "3.10"
|
45
46
|
Requires-Dist: looseversion ==1.3.0 ; python_version >= "3.12"
|
46
47
|
Provides-Extra: all
|
@@ -1,5 +1,5 @@
|
|
1
1
|
junifer/__init__.py,sha256=x1UR2jUcrUdm2HNl-3Qvyi4UUrU6ms5qm2qcmNY7zZk,391
|
2
|
-
junifer/_version.py,sha256=
|
2
|
+
junifer/_version.py,sha256=xJ0ry6UqPABBfQQRadaTablPb10PPmU0qhy9lgF2Fjo,428
|
3
3
|
junifer/stats.py,sha256=jN22_qFvWYBU9ZIMnCSzN4iOscWnWrcrUPIdLeDkV64,6163
|
4
4
|
junifer/api/__init__.py,sha256=pSj8V8tmwOAQ3sshWJfRfB-n3z5bcJj3pHOBX4-8ONc,251
|
5
5
|
junifer/api/cli.py,sha256=53pews3mXkJ7DUDSkV51PbitYnuVAdQRkWG-gjO08Uw,16142
|
@@ -36,7 +36,7 @@ junifer/api/res/fsl/flirt,sha256=tSjiUco8ui8AbHD7mTzChEwbR0Rf_4iJTgzYTPF_WuQ,42
|
|
36
36
|
junifer/api/res/fsl/img2imgcoord,sha256=Zmaw3oJYrEltcXiPyEubXry9ppAq3SND52tdDWGgeZk,49
|
37
37
|
junifer/api/res/fsl/run_fsl_docker.sh,sha256=mRLtZo0OgDwleoee2MG6rYI37HVuGNk9zOADwcl97RA,1122
|
38
38
|
junifer/api/res/fsl/std2imgcoord,sha256=-X5wRH6XMl0yqnTACJX6MFhO8DFOEWg42MHRxGvimXg,49
|
39
|
-
junifer/api/tests/test_api_utils.py,sha256=
|
39
|
+
junifer/api/tests/test_api_utils.py,sha256=j_QLYRofctz3GP6_Zbz_ABpdiuXWAK9ue_AzP7Rxuu4,2745
|
40
40
|
junifer/api/tests/test_cli.py,sha256=kyDu-51lBmIBlQ2MnmmecC3nENrQuZRpk0bCkAPqmWM,10969
|
41
41
|
junifer/api/tests/test_functions.py,sha256=unLxIMwB3f7HF3ESq0JCfRaQhNB9Xj0JEi1OMkWsgtQ,17753
|
42
42
|
junifer/api/tests/test_parser.py,sha256=eUz2JPVb0_cxvoeI1O_C5PMNs5v_lDzGsN6fV1VW5Eg,6109
|
@@ -86,7 +86,7 @@ junifer/data/masks/vickery-patil/CAT12_IXI555_MNI152_TMP_GS_GMprob0.2_clean_3mm.
|
|
86
86
|
junifer/data/masks/vickery-patil/GMprob0.2_cortex_3mm_NA_rm.nii.gz,sha256=jfMe_4H9XEnArYms5bSQbqS2V1_HbLHTfI5amQa_Pes,8700
|
87
87
|
junifer/data/tests/test_coordinates.py,sha256=BNkz9qFbnwAI0oVlIm_XrT-z4Vsia_rMtMVaoFXT6mU,4328
|
88
88
|
junifer/data/tests/test_data_utils.py,sha256=_DaiC8K79gs9HFHxr-udNeE2YTM6JA0-1i-K2cqK9qA,1087
|
89
|
-
junifer/data/tests/test_masks.py,sha256=
|
89
|
+
junifer/data/tests/test_masks.py,sha256=qgrcBAX3oqrca8mKACDxdt_9sDXXUZIU8jTNDlJzLQU,15183
|
90
90
|
junifer/data/tests/test_parcellations.py,sha256=ZEU1VHIK0AyxpclcJhG_0rQU0phaBU_dHP7Erfi3mN8,38222
|
91
91
|
junifer/data/tests/test_template_spaces.py,sha256=PJulN7xHpAcSOTY-UzTG_WPywZEBSlAZGiNG4gzk1_8,3144
|
92
92
|
junifer/datagrabber/__init__.py,sha256=fhHKsZyBeqCFJJMr53VF6EUkNrFuUZkNR8QZbaoHTNg,680
|
@@ -94,7 +94,7 @@ junifer/datagrabber/base.py,sha256=KgMSKfkwd4yLW4PhoJDoWMgcDkGmDoIs6jkgKyOJd9A,6
|
|
94
94
|
junifer/datagrabber/datalad_base.py,sha256=gP-DsyCd2F8W-aF2PXOg99Ntp2bj8QEtb535y06q39o,11009
|
95
95
|
junifer/datagrabber/dmcc13_benchmark.py,sha256=se9F6QVw9WX22MNld33OQv_BtdW-yPvXXu6kYykxLNw,12225
|
96
96
|
junifer/datagrabber/multiple.py,sha256=eXQIsvSNvD8GuEITjMaMoi1GwoeyWXXbQMRi-f2qgc4,4923
|
97
|
-
junifer/datagrabber/pattern.py,sha256=
|
97
|
+
junifer/datagrabber/pattern.py,sha256=xwemCi1zKwudlWe5G2mSkCe-OGTRgA3jgM2i8vXAjiM,15978
|
98
98
|
junifer/datagrabber/pattern_datalad.py,sha256=R3LMeknT7tAXs2AN0XVPRf6tGkCMPgDfkNT2bfi7UNc,4526
|
99
99
|
junifer/datagrabber/utils.py,sha256=2ujwltVc__qPJ2RwnEhSSoC_RkDchGEBNw7bC0a3bvk,9898
|
100
100
|
junifer/datagrabber/aomic/__init__.py,sha256=R7yrRVBWsBW25CH0fw-KHpFwb_EC-MlPKDzssGfj5A0,281
|
@@ -119,6 +119,14 @@ junifer/datareader/__init__.py,sha256=_vtrLX_vxlHFD90gPa3gWnhTuvfWM7Uzyj6y8ZPaWm
|
|
119
119
|
junifer/datareader/default.py,sha256=Md2q0hjoh454F-fmFFlyzwZMcu9vmFFT-akR42SSwUs,6711
|
120
120
|
junifer/datareader/tests/test_default_reader.py,sha256=9dPZSkba1YQjFsA0XwdUbx5sq8DVIEZoy_WfMAcvRus,5220
|
121
121
|
junifer/external/__init__.py,sha256=CBB7eQul2hf-WWwT_PYFV1MS9KkXlZBO7oQWWVLgB_I,110
|
122
|
+
junifer/external/BrainPrint/brainprint/__init__.py,sha256=Q7EQjLww8j2LbxCySqYLtPK5giHEAWQ2Ae_wbcL3OY4,222
|
123
|
+
junifer/external/BrainPrint/brainprint/_version.py,sha256=r5UsrV3x19TmOEVjh4xFs05U02B9phChpQuVsNRawgc,45
|
124
|
+
junifer/external/BrainPrint/brainprint/asymmetry.py,sha256=jJLLq4KgaDWKplG_iYDbp2cRZDMbU8tYI3UHZY0UkPU,2997
|
125
|
+
junifer/external/BrainPrint/brainprint/brainprint.py,sha256=7RhvB_zMUzTgFywD6ny7SkMj-POV4SsiCUkfUG-qYeo,14470
|
126
|
+
junifer/external/BrainPrint/brainprint/surfaces.py,sha256=9viP_rK8-uLKQlXHqt_rGljjwnhq4ahOaRcGPy8vqGE,8051
|
127
|
+
junifer/external/BrainPrint/brainprint/utils/__init__.py,sha256=71RI91jS3LTWno-1YnDvzXMaI8Ma3ghoGmtlCkKMTWk,24
|
128
|
+
junifer/external/BrainPrint/brainprint/utils/_config.py,sha256=Y0fTctFt785--1wz9VbqSgIpz4kE3ptLKII9mP4jfz8,3619
|
129
|
+
junifer/external/BrainPrint/brainprint/utils/utils.py,sha256=l9UeJJTs1awPee6Pe-RDuT67OSan3VfYuLaELeaJCzw,5420
|
122
130
|
junifer/external/h5io/h5io/__init__.py,sha256=LG7ru_Rt3EOE2H4PGYfBhC12Iax3yeTquZkd8TICiKk,469
|
123
131
|
junifer/external/h5io/h5io/_h5io.py,sha256=8dWZDYegoPcBkH_fHPdl0eXNWTaRdk9hfIQo8Mcegzo,28748
|
124
132
|
junifer/external/h5io/h5io/_version.py,sha256=mFY0GwwuN-a3M8w93_mskS6GZIvv9SNdjLfJaWNsm-I,22
|
@@ -127,8 +135,9 @@ junifer/external/h5io/h5io/chunked_list.py,sha256=1Y5BbuWzurJlEFQzJNuDdC3fNZ39EN
|
|
127
135
|
junifer/external/nilearn/__init__.py,sha256=a2Umwm3_WeqIC7DqPUmnUonYfX3LUdQ0ScDGZrNP6y4,180
|
128
136
|
junifer/external/nilearn/junifer_nifti_spheres_masker.py,sha256=sA8fbdaTHk2omYidApNO1hN0ObwDJR_h26P9i3MhbvM,16274
|
129
137
|
junifer/external/nilearn/tests/test_junifer_nifti_spheres_masker.py,sha256=qlMFWjo9y8mNLrdmN2qCEK6_nplASv2OlomSfTxDcuw,10370
|
130
|
-
junifer/markers/__init__.py,sha256=
|
138
|
+
junifer/markers/__init__.py,sha256=JWc7xh6r2LqFaheaDGE-KyCLGGjREXqc5BSBZqmpR_E,804
|
131
139
|
junifer/markers/base.py,sha256=Af8TyoNAIHWREZkIgi2su6PUqoloJXVGT-KW13WlWUM,6370
|
140
|
+
junifer/markers/brainprint.py,sha256=at_MHm_GhWd_Ls4XQQihfD2_SF1SGH2rbyjDQbWniIA,21766
|
132
141
|
junifer/markers/collection.py,sha256=iqxP4waKFLHj5vgIxdZFFv-zOtjmMEJE5rShf_0sVcs,5511
|
133
142
|
junifer/markers/ets_rss.py,sha256=7fr6mmbMM5NKIDV6bUyyu-pwHJH56GwYv6oozK4EX6k,4557
|
134
143
|
junifer/markers/parcel_aggregation.py,sha256=FECIPG7x8GXxbE2wNCqw6o1-630nlQxvm2YMkzb4HLs,8714
|
@@ -173,11 +182,11 @@ junifer/markers/functional_connectivity/tests/test_functional_connectivity_base.
|
|
173
182
|
junifer/markers/functional_connectivity/tests/test_functional_connectivity_parcels.py,sha256=iV1HY2t0ywBjOn06SLBlfn3x2c3Yuopq8W4pPQyfdzQ,3096
|
174
183
|
junifer/markers/functional_connectivity/tests/test_functional_connectivity_spheres.py,sha256=wMK5GVcRz68zsCPMtTXxoG7H68Ab8wk9_bsrcyRz1R4,5090
|
175
184
|
junifer/markers/reho/__init__.py,sha256=9IfeAxKEVgMWbhud-8T54Le07I4pR6A29sMKeFtvEPg,189
|
176
|
-
junifer/markers/reho/_afni_reho.py,sha256=
|
177
|
-
junifer/markers/reho/_junifer_reho.py,sha256=
|
185
|
+
junifer/markers/reho/_afni_reho.py,sha256=otk5Gk8Za6rfnk5CjnjHbxuuACQnpkc1K_nUK0SejfQ,6444
|
186
|
+
junifer/markers/reho/_junifer_reho.py,sha256=5Y0E7-u7mxbA7iOdNXIsPdACtu4nI4Bjh6ucOgE9_lc,9279
|
178
187
|
junifer/markers/reho/reho_base.py,sha256=04rQFivmeZx7EG9-fP00bp0rKruUAi8x_ngVoMSjSl4,4492
|
179
|
-
junifer/markers/reho/reho_parcels.py,sha256=
|
180
|
-
junifer/markers/reho/reho_spheres.py,sha256=
|
188
|
+
junifer/markers/reho/reho_parcels.py,sha256=JZjMkRL7R615fu06hi7QHDwPoakqRjl0c8Zt-E7n7Sw,6142
|
189
|
+
junifer/markers/reho/reho_spheres.py,sha256=00LuIJ_dOB6k3vAwBmwRsxIZMNTLMA19PXoJ6TsB1zw,6758
|
181
190
|
junifer/markers/reho/tests/test_reho_parcels.py,sha256=v3s52rZPeSgspL2vECpUCBp4dSuFh5_NKeEfBA6QQt0,3889
|
182
191
|
junifer/markers/reho/tests/test_reho_spheres.py,sha256=Gj-q2NajtYVRacvTsexxCyAQrpMWBQ-GbdXZpiDujIU,3803
|
183
192
|
junifer/markers/temporal_snr/__init__.py,sha256=gyJPT19xuig-og0yuzZZeRC_zX4ondcLf-wNKFDaGvs,243
|
@@ -187,6 +196,7 @@ junifer/markers/temporal_snr/temporal_snr_spheres.py,sha256=VoxVA_b48Ppf7P6cxYq0
|
|
187
196
|
junifer/markers/temporal_snr/tests/test_temporal_snr_base.py,sha256=KRln5ibLTJJQ_f3pnioATfwyhK5htGc2o2J7CPcoyfs,426
|
188
197
|
junifer/markers/temporal_snr/tests/test_temporal_snr_parcels.py,sha256=a2EUGmAdyauFCxKnDxmr9vVguYLUfbxrzl8rExBnplk,1961
|
189
198
|
junifer/markers/temporal_snr/tests/test_temporal_snr_spheres.py,sha256=VSc7CrN8iWsI7099REwlBIjeQ3BlmVdXWs56ZLfYGbI,2094
|
199
|
+
junifer/markers/tests/test_brainprint.py,sha256=cNcd6lSvWLqFXMQdB6A3FY51Da3FLTs8d-AeTT471fw,1397
|
190
200
|
junifer/markers/tests/test_collection.py,sha256=crFB7vjdkll9uuyQtKsTW6BlqSvvjfv5e6wxa8nkU-0,6812
|
191
201
|
junifer/markers/tests/test_ets_rss.py,sha256=fjFOBBIG_vaNblyDFFYhoYc0asWS1rQR0B02Feb_8Vw,2448
|
192
202
|
junifer/markers/tests/test_marker_utils.py,sha256=SR3ADWI3uGv4ozYqVu-rMZnJVqP6JnjLBgo6qUm16Wk,1478
|
@@ -253,10 +263,10 @@ junifer/utils/logging.py,sha256=furcU3XIUpUvnpe4PEwzWWIWgmH4j2ZA4MQdvSGWjj0,9216
|
|
253
263
|
junifer/utils/tests/test_fs.py,sha256=WQS7cKlKEZ742CIuiOYYpueeAhY9PqlastfDVpVVtvE,923
|
254
264
|
junifer/utils/tests/test_helpers.py,sha256=k5qqfxK8dFyuewTJyR1Qn6-nFaYNuVr0ysc18bfPjyU,929
|
255
265
|
junifer/utils/tests/test_logging.py,sha256=l8oo-AiBV7H6_IzlsNcj__cLeZBUvgIGoaMszD9VaJg,7754
|
256
|
-
junifer-0.0.5.
|
257
|
-
junifer-0.0.5.
|
258
|
-
junifer-0.0.5.
|
259
|
-
junifer-0.0.5.
|
260
|
-
junifer-0.0.5.
|
261
|
-
junifer-0.0.5.
|
262
|
-
junifer-0.0.5.
|
266
|
+
junifer-0.0.5.dev131.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
|
267
|
+
junifer-0.0.5.dev131.dist-info/LICENSE.md,sha256=MqCnOBu8uXsEOzRZWh9EBVfVz-kE9NkXcLCrtGXo2yU,34354
|
268
|
+
junifer-0.0.5.dev131.dist-info/METADATA,sha256=X2Z8pWnC9xNVhFFD_oPVV5x2RlKuD-VuVTLpNEvSD8w,8270
|
269
|
+
junifer-0.0.5.dev131.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
270
|
+
junifer-0.0.5.dev131.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
|
271
|
+
junifer-0.0.5.dev131.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
|
272
|
+
junifer-0.0.5.dev131.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|