Metadata-Version: 2.1
Name: napari-allencell-annotator
Version: 2.0.1
Summary: A plugin that enables annotations provided by Allen Institute for Cell Science
Home-page: https://github.com/aics-int/napari-allencell-annotator/
Author: Allen Institute for Cell Science
Classifier: Intended Audience :: Science/Research
Classifier: Framework :: napari
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: BSD License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: napari>=0.4.9
Requires-Dist: napari-plugin-engine>=0.1.4
Requires-Dist: numpy
Requires-Dist: xarray>=2022.6.0
Requires-Dist: magicgui>=0.3.7
Requires-Dist: aicspylibczi>=3.0.5
Requires-Dist: fsspec>=2022.8.2
Requires-Dist: bioformats-jar
Requires-Dist: bfio
Requires-Dist: qtpy
Requires-Dist: bioio
Requires-Dist: bioio-ome-tiff
Requires-Dist: bioio-czi
Requires-Dist: bioio-ome-zarr
Requires-Dist: tifffile>=2021.8.30
Requires-Dist: bioio-imageio
Provides-Extra: test
Requires-Dist: black>=19.10b0; extra == "test"
Requires-Dist: codecov>=2.0.22; extra == "test"
Requires-Dist: docutils<0.16,>=0.10; extra == "test"
Requires-Dist: flake8>=3.7.7; extra == "test"
Requires-Dist: psutil>=5.7.0; extra == "test"
Requires-Dist: pytest>=4.3.0; extra == "test"
Requires-Dist: pytest-cov==2.6.1; extra == "test"
Requires-Dist: pytest-raises>=0.10; extra == "test"
Requires-Dist: pytest-qt>=3.3.0; extra == "test"
Requires-Dist: quilt3>=3.1.12; extra == "test"
Requires-Dist: pyqt5; extra == "test"
Provides-Extra: dev
Requires-Dist: black>=19.10b0; extra == "dev"
Requires-Dist: bumpversion>=0.5.3; extra == "dev"
Requires-Dist: docutils<0.16,>=0.10; extra == "dev"
Requires-Dist: flake8>=3.7.7; extra == "dev"
Requires-Dist: gitchangelog>=3.0.4; extra == "dev"
Requires-Dist: ipython>=7.5.0; extra == "dev"
Requires-Dist: m2r>=0.2.1; extra == "dev"
Requires-Dist: pytest>=4.3.0; extra == "dev"
Requires-Dist: pytest-cov==2.6.1; extra == "dev"
Requires-Dist: pytest-raises>=0.10; extra == "dev"
Requires-Dist: pytest-runner>=4.4; extra == "dev"
Requires-Dist: pytest-qt>=3.3.0; extra == "dev"
Requires-Dist: quilt3>=3.1.12; extra == "dev"
Requires-Dist: Sphinx<3,>=2.0.0b1; extra == "dev"
Requires-Dist: sphinx_rtd_theme>=0.1.2; extra == "dev"
Requires-Dist: tox>=3.5.2; extra == "dev"
Requires-Dist: twine>=1.13.0; extra == "dev"
Requires-Dist: wheel>=0.33.1; extra == "dev"
Provides-Extra: setup
Requires-Dist: pytest-runner; extra == "setup"
Provides-Extra: all
Requires-Dist: napari>=0.4.9; extra == "all"
Requires-Dist: napari-plugin-engine>=0.1.4; extra == "all"
Requires-Dist: numpy; extra == "all"
Requires-Dist: xarray>=2022.6.0; extra == "all"
Requires-Dist: magicgui>=0.3.7; extra == "all"
Requires-Dist: aicspylibczi>=3.0.5; extra == "all"
Requires-Dist: fsspec>=2022.8.2; extra == "all"
Requires-Dist: bioformats-jar; extra == "all"
Requires-Dist: bfio; extra == "all"
Requires-Dist: qtpy; extra == "all"
Requires-Dist: bioio; extra == "all"
Requires-Dist: bioio-ome-tiff; extra == "all"
Requires-Dist: bioio-czi; extra == "all"
Requires-Dist: bioio-ome-zarr; extra == "all"
Requires-Dist: tifffile>=2021.8.30; extra == "all"
Requires-Dist: bioio-imageio; extra == "all"
Requires-Dist: black>=19.10b0; extra == "all"
Requires-Dist: codecov>=2.0.22; extra == "all"
Requires-Dist: docutils<0.16,>=0.10; extra == "all"
Requires-Dist: flake8>=3.7.7; extra == "all"
Requires-Dist: psutil>=5.7.0; extra == "all"
Requires-Dist: pytest>=4.3.0; extra == "all"
Requires-Dist: pytest-cov==2.6.1; extra == "all"
Requires-Dist: pytest-raises>=0.10; extra == "all"
Requires-Dist: pytest-qt>=3.3.0; extra == "all"
Requires-Dist: quilt3>=3.1.12; extra == "all"
Requires-Dist: pyqt5; extra == "all"
Requires-Dist: pytest-runner; extra == "all"
Requires-Dist: black>=19.10b0; extra == "all"
Requires-Dist: bumpversion>=0.5.3; extra == "all"
Requires-Dist: docutils<0.16,>=0.10; extra == "all"
Requires-Dist: flake8>=3.7.7; extra == "all"
Requires-Dist: gitchangelog>=3.0.4; extra == "all"
Requires-Dist: ipython>=7.5.0; extra == "all"
Requires-Dist: m2r>=0.2.1; extra == "all"
Requires-Dist: pytest>=4.3.0; extra == "all"
Requires-Dist: pytest-cov==2.6.1; extra == "all"
Requires-Dist: pytest-raises>=0.10; extra == "all"
Requires-Dist: pytest-runner>=4.4; extra == "all"
Requires-Dist: pytest-qt>=3.3.0; extra == "all"
Requires-Dist: quilt3>=3.1.12; extra == "all"
Requires-Dist: Sphinx<3,>=2.0.0b1; extra == "all"
Requires-Dist: sphinx_rtd_theme>=0.1.2; extra == "all"
Requires-Dist: tox>=3.5.2; extra == "all"
Requires-Dist: twine>=1.13.0; extra == "all"
Requires-Dist: wheel>=0.33.1; extra == "all"

# napari-allencell-annotator

[![License BSD-3](https://img.shields.io/pypi/l/napari-allencell-annotator.svg?color=green)](https://github.com/bbridge0200/napari-allencell-annotator/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/napari-allencell-annotator.svg?color=green)](https://pypi.org/project/napari-allencell-annotator)
[![Python Version](https://img.shields.io/pypi/pyversions/napari-allencell-annotator.svg?color=green)](https://python.org)
[![tests](https://github.com/bbridge0200/napari-allencell-annotator/workflows/tests/badge.svg)](https://github.com/bbridge0200/napari-allencell-annotator/actions)
[![codecov](https://codecov.io/gh/bbridge0200/napari-allencell-annotator/branch/main/graph/badge.svg)](https://codecov.io/gh/bbridge0200/napari-allencell-annotator)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-allencell-annotator)](https://napari-hub.org/plugins/napari-allencell-annotator)

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.

<!--
Don't miss the full getting started guide to files up your new package:
https://github.com/napari/cookiecutter-napari-plugin#getting-started

and review the napari docs for plugin developers:
https://napari.org/plugins/index.html
-->

## Installation using Command Line
### 1. Prerequisites

The plugin requires [Conda](https://docs.anaconda.com/anaconda/install/).
- [Installing on Windows ](https://docs.anaconda.com/anaconda/install/windows/) 
  - Follow the steps linked above except
  - On step 8, check top the box to add to PATH
  - ![Alt text](napari_allencell_annotator/assets/windowsstep8.png)
- [Installing on Mac ](https://docs.anaconda.com/anaconda/install/mac-os/) 

### 2. Install the plugin
Click the link corresponding to your OS.
#### [Windows](https://alleninstitute-my.sharepoint.com/:u:/g/personal/r_dhamrongsirivadh_alleninstitute_org/EexXIxeeIbNEs4KMjimcXOcBMn2J2QwxJhNEkOcRHC1eVg?e=JKa5WI)
- 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](https://alleninstitute-my.sharepoint.com/:u:/g/personal/r_dhamrongsirivadh_alleninstitute_org/ESeAYWwWFuRFhgpqgbiKQ6QBXdU8Dg8OU9ilpJ5VmoY-cA?e=BHpReg)
- 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](napari_allencell_annotator/assets/AnnotatorInstructions.pdf) 
## 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.

[napari]: https://github.com/napari/napari
[Cookiecutter]: https://github.com/audreyr/cookiecutter
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin

[file an issue]: https://github.com/bbridge0200/napari-allencell-annotator/issues

[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/
