Git Product home page Git Product logo

napari-spofi's Introduction

napari-spofi

License BSD-3 PyPI Python Version tests codecov napari hub

napari plugin to interactively train and test a StarDist model


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

Description

This plugin provides tools for annotating spots in a 3D two-channel image (hdf5 type input file), submitting tiles for StarDist model generation or model re-training, and refining initial annotations based on predictions.

The objects of interest in the image are sphere-like spots with a diameter of just a few pixels and are thus well suited for StarDist instance segmentation. The image imensions are typically 1024x1024 pixels in xy and more than 100 sections in z.

Installation

With python and pip installed (e.g., via miniconda or miniforge), it is recommended to create a new environment and install napari-spofi using pip.

pip install napari napari-spofi

Starting napari-spofi

Start napari and select "spot finder (napari-spofi)" from the "plugin" menu.

In the 'annotation' widget, create a new directory for annotations. Add an image folder containing at least one h5 file. Select an image file, foreground and background channels. Load the image file.

Inspect the image for distinct regions. To help locate relevant tile positions, make the 'checkerboard' layer visible. While the 'tiles' layer is active, double-click a tile to add it to the list of tiles. This list will be used to generate a set of smaller images and masks for training purposes.

Switch to napari's 2D view. Navigate to the central section of individual spots and add points using the 'true' points layer. The heuristic built-in will annotate pixels that belong to individual spots. Some image enhancement step may be beneficial.

Annotate tiles in one or a few images. To prepare training data, use the 'extract spots' button.

Contributing

Contributions are very welcome.

License

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

Issues

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.