Skip to content

Commit 603967c

Browse files
mgeplfjdcourcol
andauthored
initial atlas doc (#168)
* initial atlas doc --------- Co-authored-by: jdcourcol <jdcourcol@hotmail.fr>
1 parent 52f8b34 commit 603967c

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

docs/API.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,70 @@ GET /reconstruction-morphology?within_brain_region_hierarchy_id=3f41b5b5-4b62-40
212212
In other words, the name of the hierarchy, and the id which will be recursively included.
213213
This can happen in either by the `descendants` (the default) or by `ascendants`.
214214

215+
# Brain Atlas:
216+
217+
A BrainAtlas is an volumetric concept describing the locatations of brain regions in space.
218+
It is composed of an `annotation` (also known as `parcellation`) of voxels, storred in an NRRD file.
219+
Each of the voxels is assigned an ID, which corresponds to `annotation_value` in the hierarchy.
220+
In addition, there is metadata assocated with an atlas:
221+
222+
# the volume of each region
223+
# meshes of regions
224+
225+
The following endpoints exist:
226+
227+
`GET brain-atlas`
228+
229+
Returns all the atlases that exist
230+
231+
`GET brain-atlas/$UUID`
232+
233+
Returns metadata about the atlas:
234+
235+
```
236+
{
237+
"creation_date": ...,
238+
"hierarchy_id": $UUID,
239+
"id": brain_atlas.id,
240+
"name": "test brain atlas",
241+
"species": {
242+
"creation_date": ...,
243+
"id": species_id,
244+
"name": "Test Species",
245+
"taxonomy_id": "12345",
246+
"update_date": ...,
247+
},
248+
"update_date": ...,
249+
}
250+
```
251+
252+
253+
`GET brain-atlas/$UUID/regions`
254+
[
255+
{
256+
"brain_atlas_id": $UUID,
257+
"brain_region_id": $UUID,
258+
"creation_date": ...,
259+
"id": $UUID,
260+
"is_leaf_region": False,
261+
"update_date": ...,
262+
"volume": null, # this is null, since it's a leaf region;
263+
},
264+
{
265+
"brain_atlas_id": $UUID,
266+
"brain_region_id": $UUID,
267+
"creation_date": ...,
268+
"id": $UUID,
269+
"is_leaf_region": False,
270+
"update_date": ...,
271+
"volume": 123456789.0,
272+
},
273+
....
274+
]
275+
276+
The volume is in um^3.
277+
By only storing the volume for leaf nodes, it composes with the different views by climbing the tree, and summing all the children along the way.
278+
215279
# Authorization:
216280
Current model is to have `Entity`s (ex: `EModel`, `ReconstructionMorphology`, etc) be either public, or private to a project.
217281
As such, results returned will be gated by this, based on the logged in user.

0 commit comments

Comments
 (0)