Skip to content

Instantly share code, notes, and snippets.

@adamltyson
Created March 6, 2025 15:52
Show Gist options
  • Save adamltyson/5499bbcd1992d49adee9ec368cf3a4e0 to your computer and use it in GitHub Desktop.
Save adamltyson/5499bbcd1992d49adee9ec368cf3a4e0 to your computer and use it in GitHub Desktop.
Lewis - visualise injection site
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