Research

CeDNe: connectome-embedded dynamical networks

An open-source Python framework that puts the C. elegans wiring diagram, cell identities, gene expression, neuropeptide signalling and neural activity into one graph you can query, simulate and fit.

When
2024–present
Where
Zhang Lab, Harvard University
With
Yun Zhang

C. elegans has a complete connectome, molecularly identified neurons, a single-cell transcriptome, a neuropeptide–receptor map and whole-brain imaging. What it lacked was a place to hold all of that at once, so that a question about structure could be asked of function and back. CeDNe, pronounced "Sydney", is that place: a graph-based object model built on NetworkX in which neurons, connections and their molecular and functional annotations live together and can be analysed, simulated and fit.

What it holds

What it does

The chemical connectome folded by neuron class, drawn as a circular graph
The chemical connectome folded by neuron class. Folding is a first-class operation: any grouping of neurons becomes a network whose edges inherit the synapse counts.

From motif to dynamics

A feed-forward loop motif whose nodes are pie charts of neurotransmitter type Simulated firing rates of the three neurons in the motif during a pulse
Left, a feed-forward loop found by motif search, with each neuron's neurotransmitter composition. Right, the same motif simulated as a dynamical system; the parameters can then be optimized against recorded activity.

The step from structure to dynamics is the point of the framework. In the whole-brain learning project every analysis, from tensor decomposition to fitting linear dynamical systems per animal, ran inside CeDNe against the same named-neuron graph, which is what let a result about population geometry be turned into a prediction about three specific cells.

In the browser

The CeDNe web workbench: a 3D graph of the connectome with data-source and analysis panels
The web app at beta.cedne.org runs the same core: load a connectome, overlay transcriptome or neuropeptide data, search motifs and run simulations in 3D, with no install.

Compared with other tools

Feature comparison matrix of connectome and modeling tools across modeling, network analysis, data modalities and access
Feature-based comparison with connectome and modeling tools, from the preprint. Click to enlarge.

Use it

CeDNe is MIT-licensed. It needs Python 3.10 to 3.12 and installs with Poetry:

git clone https://github.com/sahilm89/CeDNe.git
cd CeDNe
poetry install

The documentation covers the object model and the example notebooks, which also run without installing anything on Binder. If you use CeDNe, please cite the preprint.

Papers from this work

  1. bioRxiv

    CeDNe: a multi-scale computational framework for modeling structure-function relationships in the C. elegans nervous system

    S. Moza, Y. Zhang

    bioRxiv (2025)

    Abstract

    Understanding how neural circuits generate behavior requires integrating structural and functional data across scales. C. elegans with its complete connectome, genetically identifiable neurons, single-cell transcriptome, neuropeptide-receptor distribution, and an amenability to simultaneous measurement of brain-wide neural activity and behavior presents a unique opportunity for such a multiscale circuit analysis. However, the absence of a unifying framework to connect these diverse datasets limits our ability to connect network structure and attributes with function. Here we introduce CeDNe (C. elegans Dynamical Network), an open-source computational framework that integrates anatomical, molecular, and imaging datasets into a unified graph-based representation that enables multimodal data analysis by cross-referencing different omics layers in a single computational environment. Specifically, CeDNe provides modular tools for visualizing and analyzing network connectivity, motif distribution, and circuit paths. Further, it incorporates a computational framework that simulates neural dynamics and optimizes network models to bridge structural connectivity with neural activity. Thus, CeDNe establishes a scalable foundation for data-driven modeling of the nervous system. This open-source tool not only facilitates computational connectomics and multimodal analyses in C. elegans but also serves as a generalizable framework for investigating structure-function relationships in neural networks of other organisms.