junifer 0.0.2.dev139__py3-none-any.whl → 0.0.2.dev140__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/datagrabber/aomic/id1000.py +33 -1
- junifer/datagrabber/aomic/piop1.py +14 -0
- junifer/datagrabber/aomic/piop2.py +35 -1
- junifer/datagrabber/aomic/tests/test_id1000.py +6 -0
- junifer/datagrabber/aomic/tests/test_piop1.py +6 -0
- junifer/datagrabber/aomic/tests/test_piop2.py +6 -1
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/METADATA +1 -1
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/RECORD +14 -14
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/AUTHORS.rst +0 -0
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/LICENSE.md +0 -0
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/WHEEL +0 -0
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/entry_points.txt +0 -0
- {junifer-0.0.2.dev139.dist-info → junifer-0.0.2.dev140.dist-info}/top_level.txt +0 -0
junifer/_version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# file generated by setuptools_scm
|
2
2
|
# don't change, don't track in version control
|
3
|
-
__version__ = version = '0.0.2.
|
4
|
-
__version_tuple__ = version_tuple = (0, 0, 2, '
|
3
|
+
__version__ = version = '0.0.2.dev140'
|
4
|
+
__version_tuple__ = version_tuple = (0, 0, 2, 'dev140')
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# License: AGPL
|
8
8
|
|
9
9
|
from pathlib import Path
|
10
|
-
from typing import Union
|
10
|
+
from typing import Union, Dict
|
11
11
|
|
12
12
|
from junifer.datagrabber import PatternDataladDataGrabber
|
13
13
|
|
@@ -34,7 +34,9 @@ class DataladAOMICID1000(PatternDataladDataGrabber):
|
|
34
34
|
types = [
|
35
35
|
"BOLD",
|
36
36
|
"BOLD_confounds",
|
37
|
+
"BOLD_mask",
|
37
38
|
"T1w",
|
39
|
+
"T1w_mask",
|
38
40
|
"probseg_CSF",
|
39
41
|
"probseg_GM",
|
40
42
|
"probseg_WM",
|
@@ -52,11 +54,22 @@ class DataladAOMICID1000(PatternDataladDataGrabber):
|
|
52
54
|
"sub-{subject}_task-moviewatching_"
|
53
55
|
"desc-confounds_regressors.tsv"
|
54
56
|
),
|
57
|
+
"BOLD_mask": (
|
58
|
+
"derivatives/fmriprep/sub-{subject}/func/"
|
59
|
+
"sub-{subject}_task-moviewatching_"
|
60
|
+
"space-MNI152NLin2009cAsym_"
|
61
|
+
"desc-brain_mask.nii.gz"
|
62
|
+
),
|
55
63
|
"T1w": (
|
56
64
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
57
65
|
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
58
66
|
"desc-preproc_T1w.nii.gz"
|
59
67
|
),
|
68
|
+
"T1w_mask": (
|
69
|
+
"derivatives/fmriprep/sub-{subject}/anat/"
|
70
|
+
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
71
|
+
"desc-brain_mask.nii.gz"
|
72
|
+
),
|
60
73
|
"probseg_CSF": (
|
61
74
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
62
75
|
"sub-{subject}_space-MNI152NLin2009cAsym_label-"
|
@@ -88,3 +101,22 @@ class DataladAOMICID1000(PatternDataladDataGrabber):
|
|
88
101
|
replacements=replacements,
|
89
102
|
confounds_format="fmriprep",
|
90
103
|
)
|
104
|
+
|
105
|
+
def get_item(self, subject: str) -> Dict:
|
106
|
+
"""Index one element in the dataset.
|
107
|
+
|
108
|
+
Parameters
|
109
|
+
----------
|
110
|
+
subject : str
|
111
|
+
The subject ID.
|
112
|
+
|
113
|
+
Returns
|
114
|
+
-------
|
115
|
+
out : dict
|
116
|
+
Dictionary of paths for each type of data required for the
|
117
|
+
specified element.
|
118
|
+
"""
|
119
|
+
out = super().get_item(subject=subject)
|
120
|
+
out["BOLD"]["mask_item"] = "BOLD_mask"
|
121
|
+
out["T1w"]["mask_item"] = "T1w_mask"
|
122
|
+
return out
|
@@ -41,7 +41,9 @@ class DataladAOMICPIOP1(PatternDataladDataGrabber):
|
|
41
41
|
types = [
|
42
42
|
"BOLD",
|
43
43
|
"BOLD_confounds",
|
44
|
+
"BOLD_mask",
|
44
45
|
"T1w",
|
46
|
+
"T1w_mask",
|
45
47
|
"probseg_CSF",
|
46
48
|
"probseg_GM",
|
47
49
|
"probseg_WM",
|
@@ -83,11 +85,21 @@ class DataladAOMICPIOP1(PatternDataladDataGrabber):
|
|
83
85
|
"sub-{subject}_task-{task}_"
|
84
86
|
"desc-confounds_regressors.tsv"
|
85
87
|
),
|
88
|
+
"BOLD_mask": (
|
89
|
+
"derivatives/fmriprep/sub-{subject}/func/"
|
90
|
+
"sub-{subject}_task-{task}_"
|
91
|
+
"space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz"
|
92
|
+
),
|
86
93
|
"T1w": (
|
87
94
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
88
95
|
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
89
96
|
"desc-preproc_T1w.nii.gz"
|
90
97
|
),
|
98
|
+
"T1w_mask": (
|
99
|
+
"derivatives/fmriprep/sub-{subject}/anat/"
|
100
|
+
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
101
|
+
"desc-brain_mask.nii.gz"
|
102
|
+
),
|
91
103
|
"probseg_CSF": (
|
92
104
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
93
105
|
"sub-{subject}_space-MNI152NLin2009cAsym_label-"
|
@@ -149,6 +161,8 @@ class DataladAOMICPIOP1(PatternDataladDataGrabber):
|
|
149
161
|
new_task = f"{task}_acq-{acq}"
|
150
162
|
|
151
163
|
out = super().get_item(subject=subject, task=new_task)
|
164
|
+
out["BOLD"]["mask_item"] = "BOLD_mask"
|
165
|
+
out["T1w"]["mask_item"] = "T1w_mask"
|
152
166
|
return out
|
153
167
|
|
154
168
|
def get_elements(self) -> List:
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# License: AGPL
|
8
8
|
|
9
9
|
from pathlib import Path
|
10
|
-
from typing import List, Union
|
10
|
+
from typing import List, Union, Dict
|
11
11
|
|
12
12
|
from junifer.datagrabber import PatternDataladDataGrabber
|
13
13
|
|
@@ -40,7 +40,9 @@ class DataladAOMICPIOP2(PatternDataladDataGrabber):
|
|
40
40
|
types = [
|
41
41
|
"BOLD",
|
42
42
|
"BOLD_confounds",
|
43
|
+
"BOLD_mask",
|
43
44
|
"T1w",
|
45
|
+
"T1w_mask",
|
44
46
|
"probseg_CSF",
|
45
47
|
"probseg_GM",
|
46
48
|
"probseg_WM",
|
@@ -80,11 +82,21 @@ class DataladAOMICPIOP2(PatternDataladDataGrabber):
|
|
80
82
|
"sub-{subject}_task-{task}_acq-seq_"
|
81
83
|
"desc-confounds_regressors.tsv"
|
82
84
|
),
|
85
|
+
"BOLD_mask": (
|
86
|
+
"derivatives/fmriprep/sub-{subject}/func/"
|
87
|
+
"sub-{subject}_task-{task}_acq-seq_space"
|
88
|
+
"-MNI152NLin2009cAsym_desc-brain_mask.nii.gz"
|
89
|
+
),
|
83
90
|
"T1w": (
|
84
91
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
85
92
|
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
86
93
|
"desc-preproc_T1w.nii.gz"
|
87
94
|
),
|
95
|
+
"T1w_mask": (
|
96
|
+
"derivatives/fmriprep/sub-{subject}/anat/"
|
97
|
+
"sub-{subject}_space-MNI152NLin2009cAsym_"
|
98
|
+
"desc-brain_mask.nii.gz"
|
99
|
+
),
|
88
100
|
"probseg_CSF": (
|
89
101
|
"derivatives/fmriprep/sub-{subject}/anat/"
|
90
102
|
"sub-{subject}_space-MNI152NLin2009cAsym_label-"
|
@@ -127,3 +139,25 @@ class DataladAOMICPIOP2(PatternDataladDataGrabber):
|
|
127
139
|
"""
|
128
140
|
all_elements = super().get_elements()
|
129
141
|
return [x for x in all_elements if x[1] in self.tasks]
|
142
|
+
|
143
|
+
def get_item(self, subject: str, task: str) -> Dict:
|
144
|
+
"""Index one element in the dataset.
|
145
|
+
|
146
|
+
Parameters
|
147
|
+
----------
|
148
|
+
subject : str
|
149
|
+
The subject ID.
|
150
|
+
task : str
|
151
|
+
The task to get. Possible values are:
|
152
|
+
{"restingstate", "stopsignal", "emomatching", "workingmemory"}
|
153
|
+
|
154
|
+
Returns
|
155
|
+
-------
|
156
|
+
out : dict
|
157
|
+
Dictionary of paths for each type of data required for the
|
158
|
+
specified element.
|
159
|
+
"""
|
160
|
+
out = super().get_item(subject=subject, task=task)
|
161
|
+
out["BOLD"]["mask_item"] = "BOLD_mask"
|
162
|
+
out["T1w"]["mask_item"] = "T1w_mask"
|
163
|
+
return out
|
@@ -51,6 +51,9 @@ def test_aomic1000_datagrabber() -> None:
|
|
51
51
|
assert out["BOLD_confounds"]["path"].exists()
|
52
52
|
assert out["BOLD_confounds"]["path"].is_file()
|
53
53
|
|
54
|
+
# assert BOLD_mask
|
55
|
+
assert out["BOLD_mask"]["path"].exists()
|
56
|
+
|
54
57
|
# asserts type "T1w"
|
55
58
|
assert "T1w" in out
|
56
59
|
|
@@ -63,6 +66,9 @@ def test_aomic1000_datagrabber() -> None:
|
|
63
66
|
assert out["T1w"]["path"].exists()
|
64
67
|
assert out["T1w"]["path"].is_file()
|
65
68
|
|
69
|
+
# asserts T1w_mask
|
70
|
+
assert out["T1w_mask"]["path"].exists()
|
71
|
+
|
66
72
|
# asserts type "probseg_CSF"
|
67
73
|
assert "probseg_CSF" in out
|
68
74
|
|
@@ -66,6 +66,9 @@ def test_aomic_piop1_datagrabber() -> None:
|
|
66
66
|
assert out["BOLD_confounds"]["path"].exists()
|
67
67
|
assert out["BOLD_confounds"]["path"].is_file()
|
68
68
|
|
69
|
+
# assert BOLD_mask
|
70
|
+
assert out["BOLD_mask"]["path"].exists()
|
71
|
+
|
69
72
|
# asserts type "T1w"
|
70
73
|
assert "T1w" in out
|
71
74
|
|
@@ -78,6 +81,9 @@ def test_aomic_piop1_datagrabber() -> None:
|
|
78
81
|
assert out["T1w"]["path"].exists()
|
79
82
|
assert out["T1w"]["path"].is_file()
|
80
83
|
|
84
|
+
# asserts T1w_mask
|
85
|
+
assert out["T1w_mask"]["path"].exists()
|
86
|
+
|
81
87
|
# asserts type "probseg_CSF"
|
82
88
|
assert "probseg_CSF" in out
|
83
89
|
|
@@ -35,7 +35,6 @@ def test_aomic_piop2_datagrabber() -> None:
|
|
35
35
|
|
36
36
|
test_element = all_elements[0]
|
37
37
|
sub, task = test_element
|
38
|
-
|
39
38
|
out = dg[test_element]
|
40
39
|
|
41
40
|
# asserts type "BOLD"
|
@@ -62,6 +61,9 @@ def test_aomic_piop2_datagrabber() -> None:
|
|
62
61
|
assert out["BOLD_confounds"]["path"].exists()
|
63
62
|
assert out["BOLD_confounds"]["path"].is_file()
|
64
63
|
|
64
|
+
# assert BOLD_mask
|
65
|
+
assert out["BOLD_mask"]["path"].exists()
|
66
|
+
|
65
67
|
# asserts type "T1w"
|
66
68
|
assert "T1w" in out
|
67
69
|
|
@@ -74,6 +76,9 @@ def test_aomic_piop2_datagrabber() -> None:
|
|
74
76
|
assert out["T1w"]["path"].exists()
|
75
77
|
assert out["T1w"]["path"].is_file()
|
76
78
|
|
79
|
+
# asserts T1w_mask
|
80
|
+
assert out["T1w_mask"]["path"].exists()
|
81
|
+
|
77
82
|
# asserts type "probseg_CSF"
|
78
83
|
assert "probseg_CSF" in out
|
79
84
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: junifer
|
3
|
-
Version: 0.0.2.
|
3
|
+
Version: 0.0.2.dev140
|
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,5 +1,5 @@
|
|
1
1
|
junifer/__init__.py,sha256=rJgTGeR-SOntQoLSGo36zKDTE8IMRBn2-YwC0JSNUpU,377
|
2
|
-
junifer/_version.py,sha256=
|
2
|
+
junifer/_version.py,sha256=HvZxramN6g_D--rQIkn39dXpmFhOcuXTkrv5rcfxKgs,177
|
3
3
|
junifer/stats.py,sha256=3Yt9xD51S0S922T8R6hElO7itvf-Sz41P_SwPzR9KIg,3523
|
4
4
|
junifer/api/__init__.py,sha256=YILu9M7SC0Ri4CVd90fELH2OnK_gvCYAXCoqBNCFE8E,257
|
5
5
|
junifer/api/cli.py,sha256=WiMF7c3SJuRi_rxxBaaTb7YCQOpfebvhAOh-cKDV8sM,8993
|
@@ -71,12 +71,12 @@ junifer/datagrabber/pattern.py,sha256=OjPqz6VM22bVTeWra1DEzDBe0jL1NMTqu8jHTWGCWy
|
|
71
71
|
junifer/datagrabber/pattern_datalad.py,sha256=9_HDjChlqb4RLxaC3zrB5EO5fdKT43iroEDvDIk0xVI,1628
|
72
72
|
junifer/datagrabber/utils.py,sha256=x2NG076T_jTiDLpl6lXy7-_RUVuPwSmygf3FZcOdK6k,2769
|
73
73
|
junifer/datagrabber/aomic/__init__.py,sha256=e2PiVk95yR99Wzy6MBnNmUCAyuQcg9jzbfrA3Frm5fQ,295
|
74
|
-
junifer/datagrabber/aomic/id1000.py,sha256=
|
75
|
-
junifer/datagrabber/aomic/piop1.py,sha256=
|
76
|
-
junifer/datagrabber/aomic/piop2.py,sha256=
|
77
|
-
junifer/datagrabber/aomic/tests/test_id1000.py,sha256
|
78
|
-
junifer/datagrabber/aomic/tests/test_piop1.py,sha256=
|
79
|
-
junifer/datagrabber/aomic/tests/test_piop2.py,sha256=
|
74
|
+
junifer/datagrabber/aomic/id1000.py,sha256=X_hs8Y0qP1CO7YXQM3g0KIGJiFQjFfexuGN0acypYLM,3944
|
75
|
+
junifer/datagrabber/aomic/piop1.py,sha256=wd8-WlDG7KJRCUmZ7ORABxc8iFLMMedSfc6wYBAn9CI,5698
|
76
|
+
junifer/datagrabber/aomic/piop2.py,sha256=hBOVvBsBSyeS9dPp7xSIhQFIqFl69y7wifjfkz5cypM,5303
|
77
|
+
junifer/datagrabber/aomic/tests/test_id1000.py,sha256=-QCMDylQgGM0Re_EYHilnT4NrOVtyQ2AASPCpMXy0vk,3523
|
78
|
+
junifer/datagrabber/aomic/tests/test_piop1.py,sha256=Aw9oRs_H-hnUyr6-w5CPf85yOVneAAx_T_XcAIVCy9I,4576
|
79
|
+
junifer/datagrabber/aomic/tests/test_piop2.py,sha256=sCJXdc3-HG5rTkurdNJfTRgEzjnX8dlW1b7DrMnVryg,4351
|
80
80
|
junifer/datagrabber/tests/test_base.py,sha256=gzyVbat1e9BE82zbcxEp22eR1yD7rFabQVO_0M2hELg,1994
|
81
81
|
junifer/datagrabber/tests/test_datagrabber_utils.py,sha256=Y7g08B8neHiB4HMHDhBxMXDNOmXsQ4fTMalhoA0iLFA,2745
|
82
82
|
junifer/datagrabber/tests/test_datalad_base.py,sha256=HeWVdXybfvsVfzQfZxC7wYD6gWTXz2dNCAbZ5thl01E,14683
|
@@ -172,10 +172,10 @@ junifer/utils/fs.py,sha256=Jd9AoV2fIF7pT7KhXsn8T1O1fJ1_SFZgaFuOBAM7DG8,460
|
|
172
172
|
junifer/utils/logging.py,sha256=F2C6y5cNAb3OCVmBdiD8YW_tAknc8EeX_SgKewxcCEA,8852
|
173
173
|
junifer/utils/tests/test_fs.py,sha256=o7XTk6OpafppxE4Kx_pDaUfYRt_bU_e1M86FTl5TPVk,862
|
174
174
|
junifer/utils/tests/test_logging.py,sha256=uTzlwwlOv7bh_7DngitVFxCDbH_OWsqfeXEcNyKvF24,7748
|
175
|
-
junifer-0.0.2.
|
176
|
-
junifer-0.0.2.
|
177
|
-
junifer-0.0.2.
|
178
|
-
junifer-0.0.2.
|
179
|
-
junifer-0.0.2.
|
180
|
-
junifer-0.0.2.
|
181
|
-
junifer-0.0.2.
|
175
|
+
junifer-0.0.2.dev140.dist-info/AUTHORS.rst,sha256=rmULKpchpSol4ExWFdm-qu4fkpSZPYqIESVJBZtGb6E,163
|
176
|
+
junifer-0.0.2.dev140.dist-info/LICENSE.md,sha256=z5aMVBrc-9kk0pxaOdOAkI62S5YhYMiF6ADsMtZmOZg,34353
|
177
|
+
junifer-0.0.2.dev140.dist-info/METADATA,sha256=fmFDkC4Bep5p-M_2Om4eDnyOmYbfuw9bW8S9KwjFFPo,5656
|
178
|
+
junifer-0.0.2.dev140.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
179
|
+
junifer-0.0.2.dev140.dist-info/entry_points.txt,sha256=DxFvKq0pOqRunAK0FxwJcoDfV1-dZvsFDpD5HRqSDhw,48
|
180
|
+
junifer-0.0.2.dev140.dist-info/top_level.txt,sha256=4bAq1R2QFQ4b3hohjys2JBvxrl0GKk5LNFzYvz9VGcA,8
|
181
|
+
junifer-0.0.2.dev140.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|