This repo contains the pre-processed publicly-available connectomics data (in data folder), and the code that processed them. For example usage/analysis, see this repo. For any questions/requests/thoughts/comments, please feel free to reach out to me at yy432[at]cam.ac.uk :).
All pre-processed data are in the data folder, typically composed of a scipy.sparse.matrix and a meta .csv file.
-
Adult fruit fly (Drosophila melanogaster):
- maleCNS obtained from Berg et al. 2025 and Nern et al. 2024, also publicly available on neuprint and codex.
- axon-dendrite-only connectivity is available, generated using the code in
mcns_ad_split.
- axon-dendrite-only connectivity is available, generated using the code in
- BANC (brain and nerve cord) from Bates et al. 2025, also available on codex.
- Full Adult Fly Brain (FAFB) / FlyWire from Dorkenwald et al. 2024, Schlegel et al. 2024, and Matsliah et al. 2024. Connectivity information from Buhmann et al. 2021 and Yu et al. 2025, and neurotransmitter data from Eckstein et al. 2024. By using the connectivity information, you agree to follow the FlyWire citation guidelines and principles. To explore the dataset in detail in a cool interface, you can go here: https://tinyurl.com/flywire783. Also available on codex.
- axon-dendrite-only connectivity is available, generated using the code in
fafb_ad_split.
- axon-dendrite-only connectivity is available, generated using the code in
- Hemibrain from Scheffer et al. 2020, also available on neuprint, and
- MANC (male adult nerve cord) from Cheong et al. 2025, Marin et al. 2024, and Takemura et al. 2024. Also available on neuprint.
- maleCNS obtained from Berg et al. 2025 and Nern et al. 2024, also publicly available on neuprint and codex.
-
Larva fruit fly (Drosophila melanogaster): the processed version of the larval connectivity is
larva_inprop.npz(using axon-dendrite-only connections). Both the cell type annotaitons and the connectivity came from Winding et al. 2023. You can also e.g. visualise the neurons in 3D in catmaid.
Generally, inprop stands for input proportion (where the connectivity is normalised by the total amount of input for the recipient neuron / cell type), outprop stands for output proportion, syncount stands for synapse count. cb stands for central brain, optic stands for optic lobe. ad stands for axon-dendrite connectivity.
This repository also collates published experimental data (sometimes scrapped with WebPlotDigitizer), often linking between sensory space (e.g. odours) to neuron activation space (e.g. sensory neuron activations), i.e. what is the neuron activation response upon the presentation of some stimulus. The datasets are also in data.
- Münch & Galizia 2016: DoOR 2.0 - Comprehensive Mapping of Drosophila melanogaster Odorant Responses
- Badel et al. 2016: Decoding of Context-Dependent Olfactory Behavior in Drosophila
- Bhandawat et al. 2007: Sensory Processing in the Drosophila Antennal Lobe Increases the Reliability and Separability of Ensemble Odor Representations
- Dolan et al. 2018: Communication from Learned to Innate Olfactory Processing Centers Is Required for Memory Retrieval in Drosophila
- Dweck et al. 2018: The Olfactory Logic behind Fruit Odor Preferences in Larval and Adult Drosophila
- Hallem & Carlson 2006: Coding of Odors by a Receptor Repertoire
- Liu et al. 2022: Connectomic features underlying diverse synaptic connection strengths and subcellular computation
- Semmelhack & Wang 2009: Select Drosophila glomeruli mediate innate olfactory attraction and aversion
- Frechter et al. 2019: Functional and anatomical specificity in a higher olfactory centre
The code for retrieving / tidying up the data is also in the root repository / in their respective folders.
The code used to generate the sparse matrices and metadata files above are in respective folders, including info on where the connectome data is downloaded from, e.g. FAFB for code in generating sparse matrices based on raw data on edgelist of synapse count, and joining multiple cell-type-like columns.
The code for generating axon-dendrite split is in folder *_ad_split, where neurons are split using the flow centrality method in Fig 7 in Schneider-Mizell et al. 2016. Note that about 20k neurons are left not split, due to low segregation index. This thus generates 9 edgelists: aa (axo-axonic), ad (axo-dendritic), ab (axon to not-split neurons, i.e. both axon and dendrite), da, dd, db, ba, bd, bb (too big to share here, available on request). The axo-dendritic connectome is made using ad, ab, bd, bb.
This respository also contains code that runs some of the analyses included in Yin et al. 2025, including
matmul_benchmark: bench-marking the speed ofcompress_paths()function for sparse matrix powers in Connectome Interpreter.pathfinding_benchmark: bench-marking the speed offind_paths_of_length()function for path-finding.path_effconn_benchmark: bench-marking on connectivity density and magnitude of effective connectivity across path lengths.quantify_recurrence: quantifying the proportion of cells with self-loops (without additional loops) for (axon-dendrite split) (excitation-only) connectome, and the effective excitation/inhibition.eonly_pathfinding: connectivity density for excitaiton-only / excitation-only connections.
The results are shared here whenever <100MB. Bigger results are available on request.