# FlyEM Hemibrain

## Facts

- Provider: Janelia FlyEM Team (HHMI Janelia Research Campus)
- License: Creative Commons Attribution 4.0 International (CC BY 4.0)
- Size: 14.6 GB across 15 objects under v1.2/ (13.1 GB without tmp/)
- Records: 21,739 uncropped traced neurons in exported-traced-adjacencies-v1.2 (3,550,403 edges, 14,329,229 synapses summed over weight); 93,629 traced bodies
- Stored at: Google Cloud Storage, gs://hemibrain/v1.2
- Access: public, readable without an account
- Category: Neuroscience
- Source: https://www.janelia.org/project-team/flyem/hemibrain
- Page: https://scigantic.com/archive/537beb38-6619-50fb-b324-efc5300bd1fa
- Keywords: Neuroscience, electron microscopy, connectomics, Google Cloud Storage

## About

The Janelia FlyEM hemibrain: a dense synapse-level reconstruction of roughly half the Drosophila melanogaster central brain, imaged by FIB-SEM at 8 nm isotropic. It contains ~25,000 traced neurons and ~20 million synapses, and is the dataset that made whole-circuit fly connectomics routine. Unlike most EM volumes, the release ships the CONNECTIVITY as flat tables — traced adjacency lists, per-body neurotransmitter predictions and neuPrint exports — so you can do graph analysis without touching a voxel. Versions v1.0, v1.1 and v1.2 are all present; v1.2 is current.

## Load the data

```python
# Hemibrain v1.2: the connectome as a graph, no EM reading required.
import glob, tarfile, pandas as pd

# The archive is FUSE-mounted read-only at /mnt/archive (pinned to v1.2).
print(sorted(p.split("/")[-1] for p in glob.glob("/mnt/archive/*"))[:8])

# The traced-adjacency tarball unpacks to CSV edge lists.
hits = (glob.glob("/mnt/archive/exported-traced-adjacencies*.tar.gz")
        or glob.glob("/mnt/archive/**/exported-traced-adjacencies*.tar.gz", recursive=True))
tp = hits[0] if hits else "https://storage.googleapis.com/hemibrain/v1.2/exported-traced-adjacencies-v1.2.tar.gz"
with tarfile.open(tp) as tf:
    names = [m.name for m in tf.getmembers() if m.name.endswith(".csv")]
    print(names)
    edges = pd.read_csv(tf.extractfile(names[0]))
print(edges.head())   # bodyId_pre, bodyId_post, weight
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

| Field | Type |
| --- | --- |
| `bodyId` | int64 in the CSV exports; the feather files call it `body` (uint64, the index column) and the synapse-partners table… |
| `bodyId_pre / bodyId_post` | int64 — presynaptic and postsynaptic partner in the adjacency export |
| `weight` | int — number of synapses between that ordered pair; the edge weight |
| `predicted_nt` | string, argmax transmitter per body in hemibrain-v1.2-body-mean-neurotransmitters.feather; plus one float64… |
| `type / instance` | string — cell-type name and per-cell instance label, where assigned |

Files:

```text
gs://hemibrain/ has three release directories: v1.0/, v1.1/, v1.2/.
This archive is pinned to v1.2 (current), mounted at /mnt/archive.
Listed 2026-10-02: 12 top-level objects plus a tmp/ prefix, 14.6 GB in all.

  exported-traced-adjacencies-v1.2.tar.gz                 45,872,577 B
      the connectivity edge list, uncropped traced neuron -> traced neuron
      with synapse weights (21,739 neurons). Unpacks to traced-total-connections.csv,
      traced-roi-connections.csv, traced-neurons.csv (bodyId,type,instance) and a README.
      This is the file most analyses actually want.
  hemibrain-v1.2-all-traced-adjacencies.tar.gz             80,815,554 B
      fuller adjacency export: total-connections.csv (6,411,692 rows),
      roi-connections.csv (7,356,539 rows), neurons.csv (93,629 bodies, includes
      cropped Traced bodies)
  hemibrain-v1.2-body-mean-neurotransmitters.feather       45,591,786 B
      per-body predicted neurotransmitter (predicted_nt plus per-transmitter means)
  hemibrain-v1.2-neuprint-mito-stats-filtered-20201207.feather  603,428,186 B
      mitochondria statistics
  hemibrain-v1.2-ftr.tar.gz                                6.3 GB
      the largest file; contents not characterized
  hemibrain-v1.2-skeletons.tar.gz                          1.9 GB
      the only morphology in v1.2
  hemibrain-v1.2-synapse-points-with-body-roi-type-status.feather  1.8 GB
      per-synapse coordinates (z,y,x int32, kind, conf float32, sv uint64, body uint64, roi_label, ...)
  hemibrain-v1.2-synapse-partners.feather                  859,399,658 B
      pre_id / post_id (uint64) synapse pairs
  hemibrain-v1.2-tbar-neurotransmitters.feather.bz2        442,710,628 B
      per-T-bar NT predictions; bz2, not readable by pandas.read_feather directly
  hemibrain-v1.2.1-traced-synapse-to-nearest-mito-distances.feather  632,698,434 B
      note the v1.2.1 in the name
  roi-meshes.tar.gz                                        193,047,019 B
...
```

Example file: `exported-traced-adjacencies-v1.2.tar.gz — unpacks to CSV edge lists (body-to-body with synapse counts). Load with pandas and you have the connectome as a graph in a few lines, no EM reading required.`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/537beb38-6619-50fb-b324-efc5300bd1fa
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/537beb38-6619-50fb-b324-efc5300bd1fa
- Over MCP: `get_schema_card` with id `537beb38-6619-50fb-b324-efc5300bd1fa` at https://api.scigantic.com/mcp

## Related topics

- [Neuroscience datasets](https://scigantic.com/topics/neuroscience)
- [Connectomics datasets](https://scigantic.com/topics/connectomics)
- [Electron microscopy datasets](https://scigantic.com/topics/electron-microscopy)
