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.
Related tools: how neuPrint compares
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
- Plaza, S.M., et al. (2022). “neuPrint: An open access tool for EM connectomics.” Frontiers in Neuroinformatics 16:896292. doi 10.3389/fninf.2022.896292 (CC BY 4.0). https://pmc.ncbi.nlm.nih.gov/articles/PMC9350508. Read 2026-11-20.
- connectome-neuprint/neuPrint, GitHub repository README (archived, read-only, BSD-3-Clause). https://github.com/connectome-neuprint/neuPrint. Read 2026-11-20.
- neuprint-python documentation, quickstart. https://connectome-neuprint.github.io/neuprint-python/docs/quickstart.html. Read 2026-11-20.
- neuPrint web application, HHMI Janelia. https://neuprint.janelia.org/.
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.
| Node label | What it represents | Properties or role described in the sources |
|---|---|---|
| Neuron | A larger segment designated as a neuron after proofreading | bodyId (mandatory unique numeric identifier); only neurons receive a cell type, instance name and status |
| Segment | A fragment returned by automatic image segmentation | Small fragments greatly outnumber large ones; merged during proofreading until the largest resemble neurons |
| Synapse | An individual synapse | x, y, z location (indexed); confidence field typically from automatic prediction; boolean value per brain region (ROI) it lies in |
| SynapseSet | The set of synapses for each connection of each neuron | Groups synapses; linked to segments by the Contains relationship |
| Meta | Database-level information | Top-level information about the database |
| Mitochondrion | Mitochondria added to the model for later hemibrain releases | Added as a new cellular structure without disrupting existing access methods |
Sources
- neuPrint: An open access tool for EM connectomics (Plaza et al., 2022) (accessed 2026-11-20)
- connectome-neuprint/neuPrint README (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







