Giter Site home page Giter Site logo

napari-segment's Introduction

napari-segment

License PyPI Python Version tests codecov napari hub

Interactively segment organoids/spheroids/aggregates in brightfield/fluorescence from nd2 multipositional stack.

image

Installation

pip install napari-segment

or

From napari plugin

image

Usage for segmentation

  1. Drag your nd2 file into napari (otherwise try the Sample data from File / Open Sample / napari-segment)
  2. Lauch Plugins -> napari-segment: Segment multipos
  3. Select the brightfield channel
  4. The data is lazily loaded from nd2 dataset and dynamically segmented in the viewer.
  5. Binning 1-8 allows to skip small features and focus on bigger objects, also makes processing faster. image
  6. Various preprocessing modes allow segmentation of different objects: image
  • Invert: will use the dark shadow around aggregate - best for very old aggregates , out of focus (File / Open Sample / napari-segment / Old aggregate)

image

  • Gradient: best for very sharp edges, early aggregates, single cells (File / Open Sample / napari-segment / Early aggregate)

image

  • Gauss diff: Fluorescence images The result of preprocessing will be shown in the "Preprocessing" layer.
  1. Smooth, Theshold and Erode parameters allow you to adjust the preliminary segmentation -> they all will appear in the "Detections" layer as outlines

image

  1. Min/max diameter and eccentricity allow you to filter out unwanted regions -> the good regions will appear in the "selected labels" layer as filled areas.

image image

  1. Once satisfied, click "Save the params!" - it will automatically create file.nd2.params.yml file, so you can recall how the segmentation was done. Next time you open the same dataset, the parameters will be loaded automatically from this file.

  2. Next section is for quantifying the sizes. Pixel size will be retrieved automatically from metadata. If not: update it manually and click Update plots to see the correct sizes. Click on any suspected value to see the corresponding frame and try to adjust the above parameters.

image

  1. If impossible to get good results with automatic pipeline, click Clone for manual correction: this will create an editable "Manual" layer which you can edin with built-in tools in napari. Click "Update plots" to see the updated values.

  2. "Save csv!" will generate a csv file with regionprops.

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-segment" is free and open source software

Issues

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

napari-segment's People

Contributors

aaristov avatar haesleinhuepf avatar

Stargazers

 avatar Tim Monko avatar Morgan Hough avatar Lucas avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

haesleinhuepf

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.