Skip to main content

napari-dmc-brainmap

DMC-BrainMap is an end-to-end tool for multi-feature brain mapping across species.
This napari plugin was generated with Cookiecutter using napari's cookiecutter-napari-plugin template.

License BSD-3 PyPI Python Version napari hub Documentation Status

Quick start

User guides and tutorials are available in the project wiki. The generated technical documentation is published on Read the Docs.

Installation

DMC-BrainMap is a plugin for napari. There are two recommended installation paths, depending on whether you want to use the released plugin or develop the code.

Users

For reproducible regular use, first install napari by following the napari installation guide. Then install DMC-BrainMap from napari's graphical plugin manager:

Plugins > Install/Uninstall Plugins...

Search for napari-dmc-brainmap, then install it from the plugin manager. Napari handles the plugin installation graphically.

You can also install the released plugin with pip:

pip install napari-dmc-brainmap
Optional registration prediction

PyTorch is optional and is not installed with the standard plugin. To use the registration prediction feature in a pip or napari environment, install the CPU-only build separately:

python -m pip install "torch>=2.12.0" --index-url https://download.pytorch.org/whl/cpu

See the prediction-assisted registration guide for model download, setup, usage, and quality-control guidance.

After installation, open DMC-BrainMap from the napari plugin menu:

Plugins > dmc_brainmap

Developers

For troubleshooting and contributing to repo development, install the repository as an editable project with uv. In editable mode, code changes in this repository are picked up the next time napari is started with uv run napari.

First install uv if needed, following the uv installation guide.

Clone the repository:

git clone https://github.com/hejDMC/napari-dmc-brainmap.git
cd napari-dmc-brainmap

Sync the environment:

uv sync

This creates the project environment, installs Python 3.10 as required by the project, installs napari and all required dependencies, and installs napari-dmc-brainmap from the local checkout. Optional prediction support is installed only when the prediction extra is selected as described below.

Optional registration prediction

Enable the prediction extra when synchronizing the development environment:

uv sync --extra prediction

To include both prediction and test dependencies, use:

uv sync --extra prediction --group test

uv sync --all-extras also installs prediction support. A plain uv sync intentionally excludes optional extras and may remove a previously installed PyTorch package during exact synchronization. PyTorch remains recorded in uv.lock so the selected extra stays reproducible.

Start napari:

uv run napari

Then find DMC-BrainMap from the napari plugin menu:

Plugins > dmc_brainmap

Usage

Please refer to the Wiki pages for detailed instructions and a short tutorial on how to use DMC-BrainMap. When working with DMC-BrainMap on your own data, please keep the following points in mind:

  • DMC-BrainMap requires single-channel 16-bit .tif/.tiff images to work (in principle 8-bit also work)
  • DMC-BrainMap requires that your data is organized by animals in separate folders (you can pool data later down the lane)
  • DMC-BrainMap uses 5 channel labels (dapi, green, n3, cy3, cy5) corresponding to blue, green, orange, red and far red channels. However, these are only labels, you can assign them as you please. Hence, you can use DMC-BrainMap also for non-fluorescence data given you converted your images to single-channel 16-bit .tif/.tiff images. Please contact us if you need to use more than 5 channels.
  • It is essential that you structure your data in the following way (hierarchical organization, same name for images in different channels, channel labels are selected by you), otherwise DMC-BrainMap won't work:
animal_id-001
│
└───stitched
│   │
│   └───dapi
│   |    │   animal_id-001_001.tiff
│   |    │   animal_id-001_002.tiff
|   │    |   animal_id-001_003.tiff
│   |    │   animal_id-001_004.tiff
│   |    │   ...
│   │   
│   └───green
│       │   animal_id-001_001.tiff
│       │   animal_id-001_002.tiff
│       │   animal_id-001_003.tiff
│       │   animal_id-001_004.tiff
│       │   ...
│   
animal_id-2
│   ...

Documentation

Seeking help or contributing

DMC-BrainMap is an open-source project, and we welcome contributions of all kinds. If you have any questions, feedback, or suggestions, please feel free to open an issue on this repository.

License

Distributed under the terms of the BSD-3 license, "napari-dmc-brainmap" is free and open source software

Citing DMC-BrainMap

If you use DMC-BrainMap in your scientific work, please cite:

Jung, F., Cao, X., Heymans, L., Carlén, M. (2026) "DMC-BrainMap is an open-source, end-to-end tool for multi-feature brain mapping across species", Cell Reports Methods, https://doi.org/10.1016/j.crmeth.2026.101302

BibTeX:

@article{Jung2026a,
title = {DMC-BrainMap is an open-source, end-to-end tool for multi-feature brain mapping in different species},
journal = {Cell Reports Methods},
volume = {6},
number = {2},
pages = {101302},
year = {2026},
issn = {2667-2375},
doi = {https://doi.org/10.1016/j.crmeth.2026.101302},
url = {https://www.sciencedirect.com/science/article/pii/S2667237526000020},
author = {Felix Jung and Xiao Cao and Loran Heymans and Marie Carlén}
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_dmc_brainmap-0.1.8.tar.gz (393.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_dmc_brainmap-0.1.8-py3-none-any.whl (415.4 kB view details)

Uploaded Python 3

File details

Details for the file napari_dmc_brainmap-0.1.8.tar.gz.

File metadata

  • Download URL: napari_dmc_brainmap-0.1.8.tar.gz
  • Upload date:
  • Size: 393.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for napari_dmc_brainmap-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d6b54c807b3e2b183681674ed531fc0becf9ee8b07d0e546193bffbc2a03041d
MD5 35209319539bcecf0467c84c53e817e6
BLAKE2b-256 d07728dcea5a533fd22b04e6188265167c18935c46284f05c28ae5c07dcc6026

See more details on using hashes here.

File details

Details for the file napari_dmc_brainmap-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_dmc_brainmap-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 98063c19a9b01851d78411b43eed11c5a0099825ba6da435bc10b8bf74fcfada
MD5 8bd2a3e1024a4a5ef056faf296c8d9fa
BLAKE2b-256 d779b533db776e88097af9b8e714ea5acf9566c06e1df65bb92f2dbd49566899

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page