@@ -94,12 +94,16 @@ def query(self, concept: structure.BrainStructure, **kwargs) -> List[bigbrain_in
94
94
assert isinstance (matched , (point .Point , pointset .PointSet ))
95
95
assert matched .labels is not None
96
96
for i in matched .labels :
97
+ anchor = _anchor .AnatomicalAnchor (
98
+ location = point .Point (loader ._vertices [i ], space = 'bigbrain' ),
99
+ region = str (concept ),
100
+ species = 'Homo sapiens'
101
+ )
97
102
prof = bigbrain_intensity_profile .BigBrainIntensityProfile (
98
- regionname = str ( concept ) ,
103
+ anchor = anchor ,
99
104
depths = loader .profile_labels ,
100
105
values = loader ._profiles [i ],
101
- boundaries = loader ._boundary_depths [i ],
102
- location = point .Point (loader ._vertices [i ], space = 'bigbrain' )
106
+ boundaries = loader ._boundary_depths [i ]
103
107
)
104
108
prof .anchor ._assignments [concept ] = _anchor .AnatomicalAssignment (
105
109
query_structure = concept ,
@@ -137,12 +141,16 @@ def query(self, concept: structure.BrainStructure, **kwargs) -> List[layerwise_b
137
141
for b in boundary_depths
138
142
]).reshape ((- 1 , 200 ))
139
143
144
+ anchor = _anchor .AnatomicalAnchor (
145
+ location = pointset .PointSet (loader ._vertices [indices , :], space = 'bigbrain' ),
146
+ region = str (concept ),
147
+ species = 'Homo sapiens'
148
+ )
140
149
result = layerwise_bigbrain_intensities .LayerwiseBigBrainIntensities (
141
- regionname = str ( concept ) ,
150
+ anchor = anchor ,
142
151
means = [matched_profiles [layer_labels == layer ].mean () for layer in range (1 , 7 )],
143
152
stds = [matched_profiles [layer_labels == layer ].std () for layer in range (1 , 7 )],
144
153
)
145
- result .anchor ._location_cached = pointset .PointSet (loader ._vertices [indices , :], space = 'bigbrain' )
146
154
result .anchor ._assignments [concept ] = _anchor .AnatomicalAssignment (
147
155
query_structure = concept ,
148
156
assigned_structure = concept ,
0 commit comments