workshop-demo

A demo napari plugin incorporating reader, writer and dock widget contributions using the new npe2 plugin architecture.

https://github.com/dragadoncila/workshop-demo

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

A demo napari plugin incorporating reader, writer and dock widget contributions using the new npe2 plugin architecture.

Basic Info
  • Host: GitHub
  • Owner: DragaDoncila
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Size: 59.6 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme License Citation

README.md

workshop-demo

License PyPI Python Version tests codecov napari hub

A demo napari plugin incorporating reader, writer and dock widget contributions using the new npe2 plugin architecture.


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

Installation

You can install workshop-demo via pip:

pip install workshop-demo

To install latest development version :

pip install git+https://github.com/DragaDoncila/workshop-demo.git

What is this?

This plugin was created to serve as a semi-meaningful example of a plugin using the new napari npe2 architecture.

It provides a reader, a writer and two dock widgets to support opening, processing and writing out cell tracking challenge data.

We've provided comments and example tests that can be used as a reference when building your own plugin.

Using this plugin

Sample Data

You can download sample data for this plugin from the tracking challenge website. Any 2D+T sequence should work, but this plugin has been tested only with the Human hepatocarcinoma-derived cells expressing the fusion protein YFP-TIA-1 dataset.

Reading Data

This plugin's reader is designed for tracking challenge segmentation gold standard ground truth data conforming to the file format described in the data specification.

Ground truth data is only provided for a subset of the frames of the entire sequence. This reader will attempt to find the number of frames of the associated sequence in a sister directory of the ground truth data directory and open a labels layer with the same number of frames, thus ensuring the labelled data is correctly overlaid onto the original sequence.

https://user-images.githubusercontent.com/17995243/146114062-36124c05-f44a-488e-8991-f39a702c917f.mov

Segmenting Data

One of the dock widgets provided by this plugin is "Segment by Threshold". The widget allows you to select a 2D+T image layer in the viewer (e.g. any of the sequences in the Human hepatocarcinoma dataset above) and segment it using a selection of scikit-image thresholding functions.

The segmentation is then returned as a Labels layer into the viewer.

https://user-images.githubusercontent.com/17995243/146114088-f6fb645e-8d78-4880-827b-2f0334dad859.mov

Highlighting Segmentation Differences

The second dock widget provided by this plugin allows you to visually compare your segmentation against the ground truth data by computing the difference between the two and adding this as a layer in the napari viewer.

To use this widget, open it from the Plugins menu and select the two layers you wish to compare.

https://user-images.githubusercontent.com/17995243/146114112-c891723f-8640-4708-8014-c78731fb3396.mov

Writing to Zip

Finally, you can save your segmentation to a zip file whose internal directory structure will closely mimic that of the tracking challenge datasets, so that it may be opened again in the viewer.

To save your layer, choose File -> Save selected layer(s) with one labels layer selected, then select label zipper from the dropdown choices.

https://user-images.githubusercontent.com/17995243/146114163-ee886990-979c-4756-97c5-aaf2c39dccde.mov

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, "workshop-demo" is free and open source software

Issues

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

Owner

  • Name: Draga Doncila Pop
  • Login: DragaDoncila
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 34
  • Total Committers: 1
  • Avg Commits per committer: 34.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Draga Doncila Pop d****a@g****m 34

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 1
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 16 minutes
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 2.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • goanpeca (1)
Pull Request Authors
  • DragaDoncila (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 23 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 3
  • Total maintainers: 1
pypi.org: workshop-demo

A demo napari plugin incorporating reader, writer and dock widget contributions using the new npe2 plugin architecture.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 23 Last month
Rankings
Dependent packages count: 10.1%
Dependent repos count: 21.6%
Forks count: 22.6%
Average: 27.9%
Stargazers count: 31.9%
Downloads: 53.5%
Maintainers (1)
Last synced: 12 months ago
conda-forge.org: workshop-demo
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Average: 50.7%
Dependent packages count: 51.2%
Forks count: 57.4%
Stargazers count: 60.1%
Last synced: 11 months ago