Skip to main content

napari atlas cci

Napari plugin to give a GUI interface to the cci atlas tool.

This is a wrapper around the cci atlas package.

Installation

A standalone version of napari is available at napari.org, and the plugin is available on the napari hub. Just follow the installation instruction from napari. You can install the plugin from the plugin manager.

It is also possible to install the plugin from source code or from pip with pip install napari-atlas-cci. In this case, be sure to isolate the installation in a dedicated environment with napari.

How to use

Browse and load an atlas project. An atlas project is composed of a series of S_ folder, each containing 1 or multiple tiff images.

Initial status

2D stitching

For 2D stitching, select one, multiple, or all S_ folders. Stitched sections and their metadata are stored in stitched_sections.zarr in the project folder. The thread count in Options controls how many sections can be stitched concurrently; higher counts require more memory.

On going stitching

After processing, you can select one S_ folder and display the image in Napari.

Z alignement

Initial Z alignment uses completed sections in the master Zarr, in numeric section order or in the order specified by correct_order.txt. The alignement is required to run first a on downsampled image. This downsampling factor can be control in the Options.

Once the initial alignement is completed, a preview image is display. Please confirm that the alignement is correct through the z volume.

Initial align preview

To adjust alignment, choose a correction mode and click Enter Correction. The default, Trace: one point per plane, creates a single Reference Points layer. Follow the same feature through consecutive Z planes, placing one point per plane, consistently forward or backward. Points are used in the order you enter them: [P0, P1, P2] creates the pairs P0 → P1 and P1 → P2.

A gap in Z starts a separate trace. For example, points on planes [2, 3, 4, 8, 9, 10] create four pairs, never a pair from plane 4 to plane 8. Each trace needs at least two points. There can be only one reference point per plane across all traces. Duplicate planes, isolated points, and invalid ordering are rejected before correction starts; edit the points and try again.

For the original workflow, choose Explicit point pairs. This creates Reference Points and Adjustable Points. Place matching landmarks in the same order in both layers, with each reference point one Z slice before its adjustable point. Both layers must contain the same number of points. The mode selector determines which workflow is used; tracing ignores any existing Adjustable Points layer.

Once done, click on the "Apply correction" button. It will reprocess the downsample image, then display the corrected zstack. Check that the correction happen.

WIP: Small video Youtube to display alignement correction.

Once the data is aligned, it can be processed for the "Final Z Alignement". This step can be time consuming based on the size of the dataset, so please, be patient.

Final alignment

Options and saved preferences

The Options... dialog includes lower and upper saturation percentiles for alignment processing. Defaults are 1.0 and 99.95; values must satisfy 0 ≤ lower < upper ≤ 100. They apply to saved previews, previews regenerated after manual correction, and full-resolution aligned outputs. Changing them does not modify outputs that have already been generated.

Click OK to apply and save the Options values; Cancel leaves them unchanged. Thread count, maximum stitching shift, alignment downsampling, CZI compression, and both percentiles are restored next time the plugin opens. Axial pixel size and its explicit unit are also saved when the edit is finished or the unit changes. Thread count is limited to one fewer than the available CPU cores (with a minimum of one).

Preferences are saved as readable JSON in <Qt GenericConfigLocation>/napari-atlas-cci/settings.json, under the user's AppData directory on Windows. They apply across projects on that computer. Missing preferences use the defaults; invalid files produce feedback and fall back to defaults. Upload tokens and project paths are excluded. This implements local user preferences alongside #12; portable project configurations and historical run snapshots described in #14 remain separate work.

Export and upload

Stitched sections are stored in stitched_sections.zarr in the project folder. Alignment results are saved as a pandas pickle table under alignment_results. The preview and full-resolution aligned data are written as Zarr arrays and OME-Zarr pyramids.

For easier data manipulation, it is possible to export the final alignement as a czi file. The other option is to upload the data on Webknossos, which is great for both visualization and fine z-alignement. To do this upload, it is required to have a account on webknossos and to indicate your token for the upload.

Upload to webknossos

webknossos ulpoad success

After fine alignment in WebKnossos, use Download from webknossos... at the bottom of the plugin. Enter your token, the new aligned dataset's ID or full dataset URL, an output filename, and the destination folder (defaults to the current project). No local aligned output is required to use this button.

The download reads the full-resolution color layer one Z plane at a time and writes that plane as CZI tiles of at most 1024 × 1024 pixels. All channels are preserved, XY axes are converted to CZI order, and voxel sizes are copied from the remote dataset. Source bounding-box offsets are rebased to CZI coordinates starting at zero. CZI compression follows Options... at download start. An existing destination file is never overwritten; choose a new filename. If a transfer fails after writing starts, a partial CZI may remain at that path.

Local Export to CZI uses the same tiled writer and reads one aligned Zarr plane at a time, without loading the entire volume. Downloads run in the existing background export worker, with an activity indicator and completion/error notifications. Tokens are used for the request and are not saved in preferences.

Troubleshooting

Contributing

Contributions are very welcome. Tests can be run with [tox], please ensure the coverage at least stays the same before you submit a pull request.

Metadata

Release files for napari-atlas-cci 1.1.12

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

Source distribution (sdist)

Source distribution for napari-atlas-cci 1.1.12
File Size Uploaded Provenance Actions
napari_atlas_cci-1.1.12.tar.gz 2.3 MB With provenance Details for napari_atlas_cci-1.1.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-atlas-cci 1.1.12
File Interpreter ABI Platform Actions
napari_atlas_cci-1.1.12-py3-none-any.whl Python 3 none any Details for napari_atlas_cci-1.1.12-py3-none-any.whl

Total release size: 2.4 MB

Release files / napari_atlas_cci-1.1.12.tar.gz

Download URL napari_atlas_cci-1.1.12.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
04bab4bb26cd281cd99164cd7ab7b35097b808f93c046a5a3adac62b780f760d
BLAKE2b-256 checksum
How to use checksums
bef7d0734ca43dd173aa4177ec2fbaccdf3cad82711ac4e42fdef499bbc993e3
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 13, 2026.

Transparency log

Release files / napari_atlas_cci-1.1.12-py3-none-any.whl

Download URL napari_atlas_cci-1.1.12-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9f1aad82a03777ffb81ac69f7cc4b7ad068084b079b89ccdfbf3f7f23cb9e44
BLAKE2b-256 checksum
How to use checksums
933eb8856f0fdef03ebad4b3acc8203004bcf3f71fec1f7a7560a9ef60ca0f32
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 13, 2026.

Transparency log

Security for napari-atlas-cci 1.1.12

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 napari_atlas_cci-1.1.12.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 13, 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