Segment organoids and measure intensities
Project description
napari-segment
Segment organoids in brightfield from nd2 stack
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Installation
pip install git+https://github.com/aaristov/napari-segment.git
Usage for segmentation
- Drag your nd2 file into napari
- Lauch Plugins -> napari-segment: Segment prognoid
- Select the brightfield channel
- The data is lazily loaded from nd2 dataset and dynamically segmented in the viewer.
- Theshold and erode parameters allow you to adjust segmentation -> they all will appear in the Detections layer
- Min/max diameter and eccentricity allow you to filter out unwanted regions -> the good regions will appear in the "selected labels" layer.
- You can deactivate the Detection layer with a checkbox.
- Once saticfied, simply save the selected labels layer with build-in napari saver for future use and downstream analysis.
Usage for multicale zarr preview
- Drag and drop the folder with mutiscale zarr dataset.
- The plugin will look for the napari attributes in the .zattr file and render the stack accordingly. See the example below for 4D dataset:
{
"multiscales": {
"multiscales": [
{
"channel_axis": 1,
"colormap": [
"gray",
"green",
"blue"
],
"datasets": [
{
"path": "0"
},
{
"path": "1"
},
{
"path": "2"
},
{
"path": "3"
}
],
"lut": [
[
1000,
30000
],
[
440,
600
],
[
0,
501
]
],
"name": [
"BF",
"TRITC",
"mask"
],
"title": "BF_TRITC_aligned.zarr",
"type": "nd2",
"version": "0.1"
}
]
}
}
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
napari_segment-0.2.3.tar.gz
(24.0 kB
view hashes)
Built Distribution
Close
Hashes for napari_segment-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9a2772423b5baebb152b17926319a0360d9837052d164238b83f0271e916076 |
|
MD5 | d860c8e459f2dfa00495425b49de757e |
|
BLAKE2b-256 | fd0e8a602a0a11a1b28a370cfaa08279ee83f42df66c7fae8e73e1a8f9f09ebb |