Created
March 6, 2025 15:52
-
-
Save adamltyson/5499bbcd1992d49adee9ec368cf3a4e0 to your computer and use it in GitHub Desktop.
Lewis - visualise injection site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from brainrender import Scene | |
from brainrender.actors import Points | |
scene = Scene() | |
mos = scene.add_brain_region("MOs", alpha=0.15) | |
# coordinate from brainglobe_segmentation | |
# May need to multiply coordinate by atlas resolution (e.g. 10/25/50) | |
coords = np.array([[3000, 1825, 8575]]) | |
# Add to scene | |
scene.add(Points(coords, name="CELLS", colors="steelblue", radius=150)) | |
# render | |
scene.content | |
scene.render() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment