Skip to main content

napari-allencell-annotator

License BSD-3 PyPI Python Version tests codecov napari hub

A plugin that enables image annotation/scoring and writes annotations to a .csv file. Plugin provided by the Allen Institute for Cell Science.

The Allen Cell Image Annotator plugin for napari provides an intuitive graphical user interface to create annotation templates, annotate large image sets using these templates, and save image annotations to a csv file. The Allen Cell Image Annotator is a Python-based open source toolkit developed at the Allen Institute for Cell Science for both blind, unbiased and un-blind microscope image annotating. This toolkit supports easy image set selection from a file finder and creation of annotation templates (text, checkbox, drop-down, spinbox, and point). With napari's multi-dimensional image viewing capabilities, the plugin seamlessly allows users to view each image and write annotations into the custom template. Annotation templates can be written to a json file for sharing or re-using. After annotating, the annotation template, image file list, and the annotation values are conveniently saved to csv file, which can be re-opened for further annotating.

  • Supports the following image types:
    • OME-TIFF
    • TIFF
    • CZI
    • PNG
    • JPEG
    • OME-ZARR

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation using Command Line

1. Prerequisites

The plugin requires Conda.

2. Install the plugin

Click the link corresponding to your OS.

Windows

  • From the link above, click the three dots on the top menu bar and select download.
  • Open a file explorer and go to the Downloads folder. Use Option 1 below. A prompt window should open and start installing. If this fails use Option 2.
    • Option 1: Double-click the file install_napari.sh
    • Option 2: Search the file finder for Anaconda Prompt. Open version 3. Run the following commands one line at a time.
      • conda create -n napari_annotator python=3.10 anaconda
      • conda activate napari_annotator
      • python -m pip install --upgrade pip
      • python -m pip install "napari[all]"
      • python -m pip install napari-allencell-annotator
      • napari
    • Still not working? Try using conda forge instead of pip.
      • Ex: conda install -c conda-forge napari instead of python -m pip install "napari[all]"

MacOS/Unix

  • From the link above, download the file.
  • Open terminal.
  • Run chmod +x ./Downloads/install_napari.command
    • If you get a file not found error try adjusting the path to match where install_napari.command was downloaded.
  • Open finder, navigate to the file, double-click install_napari.command .
    • A terminal window should open and start installing.

3. Launch the Plugin

Once the napari window opens, go to Plugins.

  • If napari-allencell-annotator is listed click it to launch.
  • If it is not listed
  • Install/Uninstall Plugins ⇨ check the box next to napari-allencell-annotator ⇨ close ⇨ Plugins ⇨ napari-allencell-annotator .

4. Re-opening the Plugin After Installing

  • Windows
    • Search for anaconda navigator in file finder
    • Click on navigator version 3
    • Once the navigator opens, click Environments on the left side
    • Click on the annotator environment and wait for it to load
    • Press the play button
    • Type napari in the prompt that opens
    • Click Plugins ⇨ napari-allencell-annotator
  • MacOS
    • Open terminal
    • Run these commands one line at a time
      • conda activate napari_annotator
      • napari
    • Click Plugins ⇨ napari-allencell-annotator

Installation from Napari Hub

If you have previously installed Napari on your machine, you can follow these steps to install the plugin from Napari Hub.

1. Install the Plugin

  • Open Napari
  • Go to Plugins ⇨ Install/Uninstall Plugins...
  • Find napari-allencell-annotator in Available Plugins
  • Click Install
  • Close the window after the installation finishes

2. Launch the Plugin

  • Click Plugins ⇨ napari-allencell-annotator
    • You might have to restart Napari for the annotator to appear in the plugin list.
    • If you still can't see the plugin, go to Install/Uninstall Plugins ⇨ check the box next to napari-allencell-annotator.

Quick Start

  1. Open napari
  2. Start the plugin
    • Open napari, go to Plugins ⇨ napari-allencell-annotator.
  3. Create or import annotations and add images to annotate.

For more detailed usage instructions, check out this document

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.

License

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

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for napari-allencell-annotator 2.0.1

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-allencell-annotator 2.0.1
File Size Uploaded
napari_allencell_annotator-2.0.1.tar.gz 44.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-allencell-annotator 2.0.1
File Interpreter ABI Platform
napari_allencell_annotator-2.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 98.8 kB

Release files / napari_allencell_annotator-2.0.1.tar.gz

Download URL napari_allencell_annotator-2.0.1.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d96880d08f994a8cd70be0342b740ba2e4fae9666ded2d0e14d054d5c4f6ad9c
BLAKE2b-256 checksum
How to use checksums
715e0bd96759e8e40ede4a10c8de6b74dace5fb2629ef959390c8a6c824cd4e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / napari_allencell_annotator-2.0.1-py2.py3-none-any.whl

Download URL napari_allencell_annotator-2.0.1-py2.py3-none-any.whl
Size 54.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
07de6c2ae6f3104ac67c06d4562eec54c01434f49958eaaea3841c682684523a
BLAKE2b-256 checksum
How to use checksums
31abd1101d981c1c437540311aa95d2f2acdc5b672c85a116732e21fffafaba9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

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