Projects

Visualizing FlyWire

A 3D explorer of the FlyWire fruit fly connectome.

Stack

  • TypeScript 7
  • three.js
  • Vite 8
  • DuckDB
  • pandas
  • PyArrow
  • scikit-learn
  • UMAP
  • FlyWire FAFB 783

Explained

FlyWire mapped every neuron in the adult fruit fly brain and how they connect. This puts all of it on screen at once: 139,248 neurons.

Six layouts:

  • ‘Anatomical’ / ‘Soma’ / ‘Mirrored’ are different views into neuron location.
  • ‘Flattened’ / ‘Partners’ / ‘Sensory → Motor’ are different views into connectivity mappings.

Twenty groupings from data. Wiring comes only from connections. Connection matrix shows the amount of synapses between groups. Click a neuron to light up the strongest inputs as rings and the outputs as solid discs.

Using this visualizer as a resource to fuel agent decision-making for inference-based projects using a fly brain.

The data is FlyWire’s FAFB 783 release, from Dorkenwald et al. and Schlegel et al. (Nature, 2024), shared under CC BY-NC 4.0.