Skip to main content

UELer

Unified Exploratory Linked Viewer: a Jupyter-based framework for interactive exploration of multiplexed imaging datasets.

Try it on Binder

You can try UELer without installation by launching it on Binder: Binder

The demo builds from the develop branch, so it shows the newest features — including ones not yet in the released package below.

Installation

The install name is ueler-viewer; the import name is ueler.

The stable release is on PyPI:

pip install ueler-viewer

This pulls in every runtime dependency. Two optional extras are available:

pip install "ueler-viewer[ark]"     # adds ark-analysis (pinned) for ark-based workflows
pip install "ueler-viewer[docs]"    # adds the mkdocs toolchain for building the docs

Requires Python 3.10, 3.11, or 3.12. Then, in Python:

import ueler

Pre-releases (TestPyPI)

Every release also goes to TestPyPI, and pre-releases (alpha, beta, rc) go there only — so use this if you want a preview of a version that is not out yet. Keep the command on one line: --extra-index-url is required, because TestPyPI does not mirror UELer's runtime dependencies, and --pre is what lets pip pick a pre-release at all.

pip install --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ueler-viewer

Extras work the same way — "ueler-viewer[ark]", "ueler-viewer[docs]" — and appending ==0.6.0rc1 pins one specific preview. Full details, including how to get back to the stable channel: the installation page.

If the install fails

  • No matching distribution found for scikit-image>=0.19 (or for any other dependency) — specific to the TestPyPI command: the resolver is only seeing TestPyPI, which hosts an empty scikit-image project. Keep the command on one line: the --extra-index-url https://pypi.org/simple/ part is what lets the dependencies come from real PyPI, and it is easy to lose when a multi-line command is pasted.

  • Installing with uv — uv's default --index-strategy first-index stops at the first index that lists a package at all, so it never falls back to PyPI for the dependencies. It needs an extra flag:

    uv pip install --prerelease=allow --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --index-strategy unsafe-best-match ueler-viewer
    
  • You installed an earlier release under the old ueler distribution name — run pip uninstall ueler first. Both distributions install the same ueler/ package, and pip does not know they are the same project, so having both leaves two installs fighting over the same files.

Option B — install from source (for development)

Use this if you want to modify UELer or track the develop branch.

  1. Create a compatible environment from the env/environment.yml file in this repository:

    micromamba env create --name ark-analysis-ueler --file environment.yml
    
  2. Clone the repository and activate the environment:

    git clone https://github.com/HartmannLab/UELer.git
    micromamba activate ark-analysis-ueler
    
  3. Install in editable mode from the cloned directory:

    cd UELer
    pip install -e .
    

Upgrade UELer

If you installed the stable release from PyPI:

pip install --upgrade ueler-viewer

If you installed a pre-release from TestPyPI:

pip install --upgrade --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ueler-viewer

Coming from a release installed as ueler rather than ueler-viewer? Run pip uninstall ueler first — see If the install fails. If you installed from source, pull the latest commits in your UELer directory. Re-run the install only when the dependencies changed — an editable install picks up code changes on its own:

git pull
pip install -e .   # only needed if env/environment.yml or pyproject.toml changed

Getting started

  1. Open your favorite editor that supports Jupyter notebook.
  2. Open the starter notebook script/run_ueler.ipynb. If you installed with pip rather than cloning, download it from the repository.
  3. Select the kernel for an ark-analysis compatible conda/micromamba env.
  4. Change the lines according to the instructions in the notebook: when configuring the /script/run_ueler.ipynb, ensure that you specify the following directory paths:
  • base_folder: The directory containing the FOV (Field of View) folders with image data (e.g., .../image_data).
  • masks_folder (optional): The directory containing the segmentation .tif files for cell segmentation (e.g., .../segmentation/cellpose_output).
  • annotations_folder (optional): The directory containing annotation files for marking regions of interest (e.g., .../annotations).
  • cell_table_path (optional): The path to the file containing the cell table data (e.g., .../segmentation/cell_table/cell_table_size_normalized.csv). Make sure these paths are correctly set in the notebook for the viewer to access the data correctly.
  1. Run the code and you will see the viewer displayed.

Streaming from the BioImage Archive (BIA)

You can explore a public BioImage Archive study (an S-BIAD* accession) without downloading the whole dataset first:

from ueler.runner import load_bia_cell_table, run_viewer_bia

viewer = run_viewer_bia(
    "S-BIAD2557",                      # accession id (or a direct HTTPS base URL)
    descriptor={                        # optional; auto-detection is attempted if omitted
        "mode": "folder",
        "fov_container": "zip",         # each FOV is a <FOV>.zip of channel TIFFs
        "base": "Files/spatial_murine_iCCAvsHCC/image_data",
        "mask_dir": "Files/spatial_murine_iCCAvsHCC/segmentation/cleaned_mask",
        "mask_glob": "{fov}_*.tiff",
        "cell_table": "Files/spatial_murine_iCCAvsHCC/cell_table/pCSL005_cell_table.parquet",
    },
)

# The study's cell table — read column by column over the network, never downloaded:
load_bia_cell_table(viewer)

Because BIA studies have no standard folder layout, a small JSON descriptor (a dict or a path to a .json file) maps the study files onto FOVs / channels / masks; when omitted, UELer attempts to auto-detect the folder-per-FOV, OME-TIFF-per-FOV, or zip-container layouts. The descriptor is flexible enough for the variation seen across real studies:

  • Masks accept either a single mask_dir/mask_glob, or a masks list of sources — each with an optional name (renames masks named <fov>.tiff to a clean label) or per_fov: true (masks stored in a per-FOV subfolder <dir>/<fov>/*.tiff). annotations uses the same shape.
  • Zipped FOVs: set "fov_container": "zip" when each FOV is a <FOV>.zip of channel TIFFs — UELer reads a single channel straight out of the remote zip via an HTTP byte-range request rather than downloading the whole archive.
  • Cell table: "cell_table" names the study's cell table (a path, or {"path": ..., "fov_column": ...} when the FOV id is not in a fov column). load_bia_cell_table(viewer, fovs=...) caches it and attaches it; run_viewer_bia(..., cell_table=True) does it as the viewer opens. fovs= keeps only those FOVs' rows and filters them while the file streams, so a large table (S-BIAD2557's is 361 MB / ~440,000 cells) never has to be downloaded or parsed whole.

Pyramidal OME-TIFFs and single zip members are streamed via HTTP byte-range requests; other files (e.g. single-resolution MIBI TIFFs) are downloaded once into a local cache. A per-study workspace at ~/.ueler/bia/<accession>/ (override with local_dir=) holds your persistent .UELer work (ROIs, checkpoints, palettes) plus a disposable cache/ of downloaded images.

Examples for three real studies — S-BIAD2557 (single-dir masks), S-BIAD2864 (two named mask folders), and S-BIAD2708 (zipped FOVs + per-FOV masks) — are in script/run_ueler_BIA.ipynb.

User interface

GUI_preview The GUI can be split into four main regions (wide plugins toggle the optional footer automatically):

  • left: overall settings (channel, annotation, and mask accordions)
  • middle: main viewer with overlay controls and image navigation
  • right: plugin tools (Mask Painter, ROI Manager, palette editors, statistics panels)
  • bottom (optional): wide plugin tabs (e.g., horizontal heatmap or gallery extensions)

For more details, see the user guide.

New Update

UELer v0.6.0 Summary

  • Map mode opens about three times faster. Switching to a map reads each image once instead of three times, so a 25-tile map (2048 × 2048 px, 6 channels) now appears in about 2 s instead of 6 s, and the first zoom into new tiles is about a quarter faster.

  • Map mode: zooming back out to the whole map is near-instant. The overview is now kept in memory while you zoom in and out, so returning to it drops from about 1.5 s to 40 ms on a 25-tile map, and changing contrast at the whole-map view from about 1.6 s to 50 ms.

  • Faster over slow remote connections: choose JPEG or WebP frames. Advanced Settings → Frame format sends zooms, FOV switches, channel changes and the sharp frame after a drag as JPEG or WebP, about a third of the PNG size (for example 1.4 MB → 0.44 MB per FOV switch on a large canvas). PNG stays the lossless default.

  • Panning stays responsive on high-DPI screens and remote connections. While you drag, the viewer shows a coarser preview and sharpens the image when you let go. On a 2048 × 2048 px, 10-channel image on a Retina screen each pan step drops from about 200 to 35 ms and from about 1.1 MB to 160 KB sent to the browser. Set viewer.drag_preview_px = 0 to keep every frame sharp.

  • Adding a marker or switching FOV no longer renders the image twice. Adding a channel on a 2048 × 2048 px, 10-channel dataset drops from about 320 to 260 ms on a Retina screen, and a first visit to a FOV while zoomed in from about 730 to 650 ms; the viewer also renders once at start-up.

  • The status bar no longer keeps showing the busy spinner after the image has loaded. It switches to the ready checkmark once the viewer is shown, shows the spinner while a FOV or channel loads, and changes in one step instead of briefly resizing.

  • Panning, zooming and going back to a FOV you visited no longer re-read the image files. Each channel is decoded once and kept in memory, so a pan step on a 2048 × 2048 px, 10-channel FOV drops from about 320 to 200 ms on a Retina screen and from about 160 to 60 ms on a standard one. The cache uses at most 512 MiB by default; change it with viewer.channel_level_cache.set_max_bytes(n), or set 0 to turn it off.

  • Panning and zooming no longer show a blurred frame first. Each pan, zoom or FOV switch used to send the browser an outdated image and then the correct one; it now sends only the correct one, halving what goes over the wire. The hover tooltip and the status indicator also stop redrawing when nothing has changed.

  • Panning, zooming, adding markers and switching FOVs are about twice as fast. Blending the channels into the displayed image is roughly nine times faster, and the viewer no longer renders more pixels than your screen can show. On a 2048 × 2048, 10-channel dataset, one pan step went from about 0.75 s to 0.33 s on a Retina screen (0.66 s to 0.16 s on a standard one), and adding a marker from 0.9 s to 0.5 s.

Earlier changes (v0.5.2 and before) are in the update log.

License

UELer is released under the BSD 3-Clause License — see LICENSE.txt.

You are free to use, modify and redistribute UELer, including in commercial and closed-source work, provided you keep the copyright notice and do not use the authors' names to endorse a derived product. This is the same license as scikit-image, dask, bokeh, anndata and napari, so UELer imposes no constraints your existing scientific Python stack does not.

If you use UELer in published work, a citation is appreciated but not required.

Issues and contact

Bug reports and feature requests: GitHub Issues. Maintained by Yu-Le Wu, Hartmann Lab, DKFZ Heidelberg.

Metadata

Release files for ueler-viewer 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ueler-viewer 0.6.0
File Size Uploaded Provenance Actions
ueler_viewer-0.6.0.tar.gz 403.4 kB With provenance Details for ueler_viewer-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ueler-viewer 0.6.0
File Interpreter ABI Platform Actions
ueler_viewer-0.6.0-py3-none-any.whl Python 3 none any Details for ueler_viewer-0.6.0-py3-none-any.whl

Total release size: 829.6 kB

Release files / ueler_viewer-0.6.0.tar.gz

Download URL ueler_viewer-0.6.0.tar.gz
Size 403.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0ea20fff529cf2b3b3f0b2704084763d2daeee39635fb2bca14adc4cd89b7b92
BLAKE2b-256 checksum
How to use checksums
3e58cb5046c540b5814f414848485296981ee49ce7c89246b44ed71aedd4bf25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / ueler_viewer-0.6.0-py3-none-any.whl

Download URL ueler_viewer-0.6.0-py3-none-any.whl
Size 426.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9da1f3f09798ae6e87e6243e7b631b325b76a87bc8a7ec5435abf207d4a7998d
BLAKE2b-256 checksum
How to use checksums
f8ce561d842a10604c095fb57920aff4d4500cfdb74df167729452a4c3fbc3d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for ueler-viewer 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ueler_viewer-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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