Skip to main content
v2026.11,986 entries · CC-BY 4.0

neuPrint: The Connectome Database for EM Fly-Brain Data

What neuPrint is, how its Neo4j connectome data model works, how to query it by web or Python, and how it compares with CATMAID and natverse.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

neuPrint is an open-access tool, built by the FlyEM project at HHMI Janelia, for asking questions about electron-microscopy (EM) connectomes: maps of neurons and the chemical synapses between them. It keeps the connectome in a Neo4j graph database on a server and lets users query it from a web browser or from programming clients, so nobody has to download the full dataset to find out what one neuron connects to.

Short answer: what neuPrint is and what it is not

Plaza et al. (2022) describe neuPrint as having two major components: a web interface for typical biological queries “using only a browser,” and programmer APIs for more complex or higher-volume queries. It also provides features for assessing how complete a reconstruction is. It is a query layer for specific, published EM datasets, not a general neuroscience database and not a data-download portal. The authors state that neuPrint “emphasizes access to specific datasets rather than a general compilation of many datasets.”

This page explains the data model behind the queries, the ways to access it, how neuPrint compares with other connectome query options, and what hosting a service like this means for research data management. It does not cover the biology of any particular circuit.

Definition and scope

A connectome, in the paper’s words, is “a description of neurons and the chemical synapses between them.” Early EM reconstructions covered small volumes and could be shared as files. The paper explains why that stopped working: reconstructions now contain tens of thousands of neurons and tens of millions of connections, the files are “painful to download,” and most of the data is irrelevant to any single question. The design borrows from sequence search: as with BLAST, the data stays on a server, the user fills in a web form, the computation happens server-side, and only the answer comes back. No software installation is needed, which the authors note also allows use on computers where installing software is prohibited.

Two datasets are named in the paper as hosted on Janelia servers. The example server at neuprint-examples.janelia.org holds a fly medulla seven-column dataset and a mushroom body dataset. The main server at neuprint.janelia.org holds the hemibrain, described in the paper as about two thirds of the central brain of a female Drosophila, with about 20 million synapses between traced neurons (Xu et al., 2020). The paper reports that the hemibrain has been released in versions 1.0.1, 1.1 and 1.2.1. A dataset string such as hemibrain:v1.2.1 in the client documentation is an example of how a version is named, not a statement of which release is current. Check the server itself for the datasets it currently lists.

How neuPrint is used in practice

Web interface (neuPrintExplorer)

The web application is built in React and organises queries as plugins. The paper lists these plugin types: Simple connections, Find neurons, Shortest paths, Find similar neurons, Cell type, Brain region connectivity, Common connectivity and a Custom plugin that runs Cypher. It embeds SharkViewer for 3D neuron skeletons and neuroglancer for image data. Shortest-path queries carry a timeout of a few seconds, so they are meant for interactive use rather than exhaustive searches. The server side is a Go layer called neuPrintHTTP. It exposes a mostly read-only HTTP interface over the Neo4j database and over separate key-value stores for skeletons and brain-region meshes, and it handles Google OAuth sign-in. A deployment can be public and read-only or restricted to authorised users.

Programmatic access

The official Python client is neuprint-python, installed with pip install neuprint-python or from the flyem-forge conda channel. According to its quickstart, a client needs three things: the server address (for example neuprint.janelia.org), the dataset name, and a personal authentication token. The token is copied from the Account entry in the upper-right menu after logging in to the neuPrint server, and it can be supplied through the NEUPRINT_APPLICATION_CREDENTIALS environment variable instead of in code. The Client.fetch_custom() method sends any Cypher query, and the documentation also provides ready-made query functions. For R users, the paper cites the neuprintr package, part of the natverse tools (Bates et al.).

Access checklist

  • Quick look-ups of known neurons or brain regions: use the web interface; no account on your own machine and no installation are involved.
  • Repeated or bulk queries, or results you want in a script: use the Python or R client with a token, and run Cypher through fetch_custom() when the built-in functions do not cover the question.
  • Reproducible analyses: record the server, the dataset name and the version string with the results, because the same dataset is published as separate snapshot versions.
  • Running your own instance: the project’s GitHub repository (archived and read-only, BSD-3-Clause) documents loading CSV files into Neo4j; the paper says one connectome per Neo4j database is currently supported.

The data model: what a query actually returns

The paper’s data model is the most useful thing to understand before writing a query, because it decides what counts as a result. It has five node labels, listed in the data table below: Neuron, Segment, Synapse, SynapseSet and Meta. Mitochondrion nodes were added later, which the authors cite as an example of extending the model without disrupting existing access methods. The relationships between nodes are ConnectsTo (between segments, neurons and synapse sets), SynapsesTo (between individual synapses) and Contains (a segment contains synapse sets, and a synapse set contains synapses).

Segment versus neuron

Automatic image segmentation does not return complete neurons. It returns fragments of many sizes, with small fragments far outnumbering large ones, and each fragment is a Segment. During proofreading, small segments are merged into larger ones until the largest resemble neurons; the larger segments are then designated Neuron. Only neurons get a cell type, an instance name and a status. The authors give four reasons for the split: the neuron concept is central to reconstruction, quality metrics depend on it (for example, what percentage of synapses connect two neurons rather than a neuron and a fragment), users almost never want long lists of tiny unnamed fragments, and restricting searches to neurons improves performance.

Regions of interest and dataset prefixes

Each synapse stores a true or false value for every brain region (ROI) it lies in. Because ROIs are hierarchical, several values can be true at once. These values are aggregated into a roiInfo field on segments and connections, so a query can report the number of synapses per region. Because Neo4j has no native map type, the paper notes that this information is stored as a JSON string that cannot be indexed. Every node label also carries a dataset-specific prefix, so a neuron in a dataset named “x” is labelled x_Neuron; this lets several datasets share one database, and a query can target one dataset or span several. Each synapse also has a confidence field, typically from automatic synapse prediction.

Why a graph database

The authors argue that a connectome is naturally a graph, with neurons as nodes and synapses as edges, and that relationship lookups such as path searches are potentially much faster in a graph database than in a relational one, where the same model needs several tables. Skeletons and region meshes are not stored in the graph because analyses usually need the whole object, so a simple key-value fetch is faster and smaller.

The paper’s Table 1 compares connectome querying options and its authors call it “an extremely limited summary of a very large field that is constantly changing.” The rows below reproduce its entries for download requirement, database and query method.

Package Download needed Database Query language Reports
CATMAID Yes (instances also available on Virtual Fly Brain without download) PostgreSQL API calls, forms, SQL Tables, graphs, images, Java data structures
natverse Yes None API calls R data structures
neuPrint (web) No Neo4j Forms, Cypher Tables, graphs, images
neuPrint (API) Yes Neo4j API calls, Cypher Python data structures
Virtual Fly Brain No PostgreSQL Forms Tables, graphs, images
Fly Brain Observatory Yes (a subset of queries runs without download) OrientDB Custom, SQL-like, Gremlin Tables, graphs, images, simulations
DotMotif Yes NetworkX, Neo4j Custom language Python data structures

The paper’s own reading of the table is that the neuPrint web interface is most similar to Virtual Fly Brain, which also runs queries on the server, and that the neuPrint API is most similar to natverse, returning results in Python rather than R. It also contrasts query styles: a natural-language interface needs no programming but may return unanticipated results, a formal query language takes time to learn but gives explicit control, and a custom language makes its target queries simple at the cost of other queries. For repositories of other kinds of biological data, see the comparison of WormBase, FlyBase, MGI and ZFIN.

Where it matters for labs and research data management

Serving data instead of shipping it

For a lab, the practical effect is that connectivity questions that once needed collaboration with a reconstruction group can be answered by any researcher with a browser. For a data steward, neuPrint is an example of a domain repository pattern: the dataset is published in versioned snapshots, queried in place, and cited through its papers. Real-time updating is possible, since the project’s incremental update path reads segment merge and split events from an Apache Kafka log. But the authors note that it means the same query can give different results when repeated, which hurts debugging and scientific reproducibility, so for external release they use static, archived snapshots.

The cost of keeping data online

The paper is unusually specific about hosting costs, which makes it a useful reference when planning a data-sharing budget. In the paper, the neuPrint server is described as a $50,000 machine, which the authors estimated would cost about $5,000 per year from a cloud provider. About 7 TB of grayscale image data was being stored at no charge through a collaboration with Google, which they estimated at $2,000 per year if paid for. Software maintenance, which they could not estimate precisely, was expected to be comparable. Their overall estimate for providing open access for 10 years is roughly $100,000 to $200,000, “a non-negligible sum for all except the largest projects.” They add that no public repository for connectomic data exists, that researchers and some journals have pressed for pledges to keep resources online for at least 10 years, and that keeping data available “depends on the good will, and funding, of the scientists who did the original research.” These are the authors’ 2022 estimates and not current prices.

Release timing and credit

The hemibrain data was released as a bioRxiv preprint with the web service in January 2020 and followed about eight months later by a peer-reviewed eLife paper (Scheffer et al.) with an updated dataset. The authors report that readers already working in the field began downloading the PDF and logging in as soon as the preprint appeared, and that formal publication changed their behaviour little. On an average day they saw about 30 people read the article online, 10 download the PDF and 60 log on to the site, of whom 57 were repeat users. They conclude that scientific use was advanced by about eight months, and that data-only releases deserve credit. They also report that the feared cherry-picking of early data “did not happen in our case.” If you use neuPrint data in your own work, cite both the dataset paper (for the hemibrain, Xu et al., 2020, and Scheffer et al.) and the neuPrint paper, and follow your own data-sharing and licensing planning for what you reshare.

Checking reconstruction quality before drawing conclusions

The paper adds that neuPrint includes graph-level completeness commands, found under “Reconstruction Related” in the query-type menu. They measure what percentage of a neuron’s or brain area’s inputs or outputs have synaptic partners assigned to labelled neurons rather than unlabelled fragments, what percentage of synapses in an area belong to traced neurons, and how many segments must be considered to reach a given percentage of synapses. The authors say these help the reconstruction team and also tell end users how complete the neurons they study are. They note that neuPrint checks only graph-level completeness and that other tests, such as whether synaptic partners are close together, are run elsewhere in their workflow.

Common misunderstandings

  • “neuPrint is a database of all neuroscience connectomes.” The paper says it emphasises access to specific datasets and that a canonical connectome atlas is currently less meaningful; compare it with atlas-style resources in the Human Connectome Project guide, which concerns a different kind of data.
  • “A Segment is a neuron.” Only segments designated Neuron carry cell type, instance name and status. A query that returns few results may be excluding unproofread fragments by design.
  • “Every synapse is connected to a named neuron.” The authors say completing every connection is too costly at the current state of the art, which is why completeness metrics exist.
  • “The same query always returns the same answer.” Only within a versioned snapshot; results can differ between dataset versions, and live-updated internal instances change over time.
  • “The web interface and the API are the same.” Both use Neo4j and Cypher, but the table above shows different download requirements and result formats.

For related news coverage of fruit fly connectome work, see the fruit fly connectome report,.

Frequently asked questions

What is neuPrint used for?

It is used to ask questions about electron-microscopy connectomes, such as which neurons a given neuron connects to, without downloading the whole dataset. Plaza et al. (2022) describe a web interface for typical queries and programmer APIs for complex or higher-volume ones.

Do I need to download the connectome to use neuPrint?

Not for the web interface. In the paper’s Table 1, neuPrint (web) needs no download, while neuPrint (API) does involve a client on your own machine. The data itself stays on the server.

What database and query language does neuPrint use?

Data is stored as a graph in a Neo4j database and queried with the public language Cypher, or through the web forms and ready-made client functions.

How do I query neuPrint from Python?

Install neuprint-python, then give the client the server address, the dataset name and your personal authentication token. Client.fetch_custom() sends any Cypher query.

What is the difference between a segment and a neuron in neuPrint?

A segment is any fragment from automatic segmentation. Larger segments are designated neurons after proofreading, and only neurons receive a cell type, instance name and status.

Which datasets does neuPrint host?

The paper names a fly medulla seven-column dataset and a mushroom body dataset on the example server, and the hemibrain on the main server. Datasets change over time, so check the server for what it currently lists.

Sources

Data: neuPrint graph data model: node labels and what they hold

Compilation of the node labels in the neuPrint Neo4j data model, what each represents and the properties or role the neuPrint paper and repository documentation assign to it, compiled from the peer-reviewed neuPrint paper and the project README.

neuPrint graph data model: node labels and what they hold
Node labelWhat it representsProperties or role described in the sources
NeuronA larger segment designated as a neuron after proofreadingbodyId (mandatory unique numeric identifier); only neurons receive a cell type, instance name and status
SegmentA fragment returned by automatic image segmentationSmall fragments greatly outnumber large ones; merged during proofreading until the largest resemble neurons
SynapseAn individual synapsex, y, z location (indexed); confidence field typically from automatic prediction; boolean value per brain region (ROI) it lies in
SynapseSetThe set of synapses for each connection of each neuronGroups synapses; linked to segments by the Contains relationship
MetaDatabase-level informationTop-level information about the database
MitochondrionMitochondria added to the model for later hemibrain releasesAdded as a new cellular structure without disrupting existing access methods

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about neuPrint: The Connectome Database for EM Fly-Brain Data

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →