This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.qmd
161 lines (124 loc) · 3.86 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
title: BrainGlobe and napari
subtitle: Whole brain microscopy analysis
author: Adam Tyson, Alessandro Felder & Laura Porta
execute:
enabled: true
format:
revealjs:
theme: [default, bg-light.scss]
logo: img/BG_logo.png
footer: "SWC | 2023-12-06"
slide-number: c
menu:
numbers: true
chalkboard: true
scrollable: true
preview-links: false
view-distance: 10
mobile-view-distance: 10
auto-animate: true
auto-play-media: true
code-overflow: wrap
highlight-style: atom-one
mermaid:
theme: neutral
fontFamily: arial
curve: linear
html:
theme: [default, bg-light.scss]
logo: img/BG_logo.png
date: "2023-12-06"
toc: true
code-overflow: scroll
highlight-style: atom-one
mermaid:
theme: neutral
fontFamily: arial
curve: linear
margin-left: 0
embed-resources: true
page-layout: full
---
# Welcome
## Schedule
### Morning
::: {.incremental}
* Installation (AT & AF)
* Introduction to BrainGlobe (AT)
* Introduction to napari (AF)
* Napari demo (AF)
* BrainGlobe & napari (AF)
* Whole brain atlas registration & segmentation (AT)
:::
## Schedule
### Afternoon
::: {.incremental}
* 3D cell detection (AT)
* Analysing silicon probe tracks (AT)
* Analysing bulk fluorescence (AT)
* Using BrainGlobe in your own software (AF)
* Wrap up and Q&A (AT & AF)
:::
# Installation
{{< include slides/installation.qmd >}}
## Initial checkup
{{< include slides/mentimeter.qmd >}}
# BrainGlobe
{{< include slides/brainglobe-intro.qmd >}}
# [napari](https://napari.org/){preview-link="true" style="text-align: center"}
{{< include slides/napari-intro.qmd >}}
# napari demo
{{< include slides/napari-demo.qmd >}}
# Registration & segmentation
# Cell detection
# Silicon probe tracing
# Bulk fluorescence mapping
# BrainGlobe & your software
## BrainGlobe & your software
* Not just standalone tools
* Python APIs to help you build your own software
* Easy compatibility with other packages
* [Released tools](https://brainglobe.info/community/external-tools.html){preview-link="true"}
## Example script
* Find all hippocampal regions (`bg-atlasapi`)
* Display them in napari (`brainrender-napari`)
## Example script (demo)
```{.python}
import napari
from bg_atlasapi import BrainGlobeAtlas
from brainrender_napari.napari_atlas_representation import NapariAtlasRepresentation
# setup a napari viewer and a brainglobe atlas
viewer = napari.viewer.Viewer()
viewer.dims.ndisplay = 3 # set to 3d mode
atlas = BrainGlobeAtlas("allen_mouse_100um")
# find all hippocampal regions
hip_id = 1080 # the id of the hippocampus is 1080
hip_regions = [
region["acronym"]
for region in atlas.structures_list
if hip_id in region["structure_id_path"]
]
# make a representation of the brainglobe atlas in napari
napari_atlas = NapariAtlasRepresentation(atlas, viewer)
# add all hippocampal regions to the napari viewer
for hip_region in hip_regions:
napari_atlas.add_structure_to_viewer(hip_region)
# add the whole brain mesh as a help for orientation
napari_atlas.add_structure_to_viewer("root")
# run this script
if __name__ == "__main__":
napari.run()
```
# Wrap up
## Resources
* [BrainGlobe website](https://brainglobe.info/){preview-link="true"}
* [Help forum](https://forum.image.sc/tag/brainglobe/){preview-link="true"}
* [Developer forum](https://brainglobe.zulipchat.com/){preview-link="true"}
* [GitHub](https://github.com/brainglobe/){preview-link="true"}
You are welcome to contribute to BrainGlobe - get in touch anytime and we will support you!
## Q+A
{{< include slides/mentimeter.qmd >}}
## Feedback
Please give us [some feedback](https://ideaboardz.com/for/BrainGlobe%20course%20feedback/5139784) on this pilot course.
# Thank you!