napari-point-proofread 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- napari_point_proofread-0.4.0/.copier-answers.yml +18 -0
- napari_point_proofread-0.4.0/.github/ISSUE_TEMPLATE/bug_report.yml +87 -0
- napari_point_proofread-0.4.0/.github/ISSUE_TEMPLATE/documentation.md +11 -0
- napari_point_proofread-0.4.0/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- napari_point_proofread-0.4.0/.github/ISSUE_TEMPLATE/task.md +11 -0
- napari_point_proofread-0.4.0/.github/PULL_REQUEST_TEMPLATE.md +12 -0
- napari_point_proofread-0.4.0/.github/dependabot.yml +25 -0
- napari_point_proofread-0.4.0/.github/workflows/test_and_deploy.yml +101 -0
- napari_point_proofread-0.4.0/.gitignore +84 -0
- napari_point_proofread-0.4.0/.pre-commit-config.yaml +17 -0
- napari_point_proofread-0.4.0/LICENSE +22 -0
- napari_point_proofread-0.4.0/PKG-INFO +213 -0
- napari_point_proofread-0.4.0/README.md +179 -0
- napari_point_proofread-0.4.0/docs/images/step-1-load-data.png +0 -0
- napari_point_proofread-0.4.0/docs/images/step-2-open-widgets.png +0 -0
- napari_point_proofread-0.4.0/docs/images/step-3-image-prep.png +0 -0
- napari_point_proofread-0.4.0/docs/images/step-4-points-annotation.png +0 -0
- napari_point_proofread-0.4.0/docs/images/step-5-threshold-predictions.png +0 -0
- napari_point_proofread-0.4.0/docs/images/step-6-save-csv.png +0 -0
- napari_point_proofread-0.4.0/pyproject.toml +111 -0
- napari_point_proofread-0.4.0/setup.cfg +4 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread/__init__.py +7 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread/_io.py +65 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread/_version.py +24 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread/_widget.py +1503 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread/napari.yaml +26 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/PKG-INFO +213 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/SOURCES.txt +37 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/dependency_links.txt +1 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/entry_points.txt +2 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/requires.txt +7 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/scm_file_list.json +32 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/scm_version.json +8 -0
- napari_point_proofread-0.4.0/src/napari_point_proofread.egg-info/top_level.txt +1 -0
- napari_point_proofread-0.4.0/tests/__init__.py +0 -0
- napari_point_proofread-0.4.0/tests/test_io.py +54 -0
- napari_point_proofread-0.4.0/tests/test_widget.py +60 -0
- napari_point_proofread-0.4.0/tox.ini +33 -0
- napari_point_proofread-0.4.0/uv.lock +4619 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: v2.3.0
|
|
3
|
+
_src_path: https://github.com/napari/napari-plugin-template
|
|
4
|
+
display_name: Point Proofread
|
|
5
|
+
email: sungbin246@gmail.com
|
|
6
|
+
full_name: Seongbin Lim
|
|
7
|
+
github_repository_url: https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread
|
|
8
|
+
github_username_or_organization: LaboratoryOpticsBiosciences
|
|
9
|
+
include_reader_plugin: false
|
|
10
|
+
include_sample_data_plugin: false
|
|
11
|
+
include_widget_plugin: false
|
|
12
|
+
include_writer_plugin: false
|
|
13
|
+
install_dependabot: true
|
|
14
|
+
install_precommit: true
|
|
15
|
+
license: MIT
|
|
16
|
+
module_name: napari_point_proofread
|
|
17
|
+
plugin_name: napari-point-proofread
|
|
18
|
+
short_description: Proofreading point annotations on images with napari
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: "\U0001F41B Bug Report"
|
|
2
|
+
description: Report a bug encountered while using napari-point-proofread
|
|
3
|
+
labels:
|
|
4
|
+
- "bug"
|
|
5
|
+
|
|
6
|
+
body:
|
|
7
|
+
- type: markdown
|
|
8
|
+
attributes:
|
|
9
|
+
value: |
|
|
10
|
+
Thanks for taking the time to report this issue! 🙏🏼
|
|
11
|
+
|
|
12
|
+
Please fill out the sections below to help us reproduce the problem.
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: bug-report
|
|
16
|
+
attributes:
|
|
17
|
+
label: "\U0001F41B Bug Report"
|
|
18
|
+
description: "Please provide a clear and concise description of the bug."
|
|
19
|
+
placeholder: "What went wrong? What did you expect to happen?"
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: steps-to-reproduce
|
|
25
|
+
attributes:
|
|
26
|
+
label: "\U0001F4A1 Steps to Reproduce"
|
|
27
|
+
description: "Please provide a minimal code snippet or list of steps to reproduce the bug."
|
|
28
|
+
placeholder: |
|
|
29
|
+
1. Go to '...'
|
|
30
|
+
2. Click on '....'
|
|
31
|
+
3. Scroll down to '....'
|
|
32
|
+
4. See error
|
|
33
|
+
validations:
|
|
34
|
+
required: true
|
|
35
|
+
|
|
36
|
+
- type: textarea
|
|
37
|
+
id: expected-behavior
|
|
38
|
+
attributes:
|
|
39
|
+
label: "\U0001F4A1 Expected Behavior"
|
|
40
|
+
description: "Please provide a clear and concise description of what you expected to happen."
|
|
41
|
+
placeholder: "What did you expect to happen?"
|
|
42
|
+
|
|
43
|
+
- type: textarea
|
|
44
|
+
id: environment
|
|
45
|
+
attributes:
|
|
46
|
+
label: "\U0001F30E Environment"
|
|
47
|
+
description: |
|
|
48
|
+
Please provide detailed information regarding your environment. Please paste the output of `napari --info` here or copy the information from the "napari info" dialog in the napari Help menu.
|
|
49
|
+
|
|
50
|
+
Otherwise, please provide information regarding your operating system (OS), Python version, napari version, Qt backend and version, Qt platform, method of installation, and any other relevant information related to your environment.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
placeholder: |
|
|
54
|
+
napari: 0.5.0
|
|
55
|
+
Platform: macOS-13.2.1-arm64-arm-64bit
|
|
56
|
+
System: MacOS 13.2.1
|
|
57
|
+
Python: 3.11.4 (main, Aug 7 2023, 20:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
|
|
58
|
+
Qt: 5.15.10
|
|
59
|
+
PyQt5: 5.15.10
|
|
60
|
+
NumPy: 1.25.1
|
|
61
|
+
SciPy: 1.11.1
|
|
62
|
+
Dask: 2023.7.1
|
|
63
|
+
VisPy: 0.13.0
|
|
64
|
+
magicgui: 0.7.2
|
|
65
|
+
superqt: 0.5.4
|
|
66
|
+
in-n-out: 0.1.8
|
|
67
|
+
app-model: 0.2.0
|
|
68
|
+
npe2: 0.7.2
|
|
69
|
+
|
|
70
|
+
OpenGL:
|
|
71
|
+
- GL version: 2.1 Metal - 83
|
|
72
|
+
- MAX_TEXTURE_SIZE: 16384
|
|
73
|
+
|
|
74
|
+
Screens:
|
|
75
|
+
- screen 1: resolution 1512x982, scale 2.0
|
|
76
|
+
|
|
77
|
+
Settings path:
|
|
78
|
+
- /Users/.../napari/napari_5c6993c40c104085444cfc0c77fa392cb5cb8f56/settings.yaml
|
|
79
|
+
validations:
|
|
80
|
+
required: true
|
|
81
|
+
|
|
82
|
+
- type: textarea
|
|
83
|
+
id: additional-context
|
|
84
|
+
attributes:
|
|
85
|
+
label: "\U0001F4A1 Additional Context"
|
|
86
|
+
description: "Please provide any additional information or context regarding the problem here."
|
|
87
|
+
placeholder: "Add any other context about the problem here."
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F4DA Documentation"
|
|
3
|
+
about: Report an issue with napari-point-proofread documentation
|
|
4
|
+
title: ''
|
|
5
|
+
labels: documentation
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 📚 Documentation
|
|
11
|
+
<!-- A clear and concise description of the documentation that needs to be created/updated -->
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F680 Feature Request"
|
|
3
|
+
about: Submit a proposal/request for a new napari-point-proofread feature
|
|
4
|
+
title: ''
|
|
5
|
+
labels: feature
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚀 Feature
|
|
11
|
+
<!-- A clear and concise description of the feature proposal -->
|
|
12
|
+
|
|
13
|
+
## Motivation
|
|
14
|
+
|
|
15
|
+
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
|
|
16
|
+
|
|
17
|
+
## Pitch
|
|
18
|
+
|
|
19
|
+
<!-- A clear and concise description of what you want to happen. -->
|
|
20
|
+
|
|
21
|
+
## Alternatives
|
|
22
|
+
|
|
23
|
+
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
|
|
24
|
+
|
|
25
|
+
## Additional context
|
|
26
|
+
|
|
27
|
+
<!-- Add any other context or screenshots about the feature request here. -->
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# References and relevant issues
|
|
2
|
+
<!-- What relevant resources were used in the creation of this PR?
|
|
3
|
+
If this PR addresses an existing issue on the repo,
|
|
4
|
+
please link to that issue here as "Closes #(issue-number)"
|
|
5
|
+
If this PR depends on another PR/issue (even in another repo),
|
|
6
|
+
please link to it with "Depends on #PR-number" or "Depends on org/repo#PR-number"
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# Description
|
|
10
|
+
<!-- What does this pull request (PR) do? Is it a new feature, a bug fix,
|
|
11
|
+
an improvement, or something else? Why is it necessary? If relevant, please add
|
|
12
|
+
a screenshot or a screen capture: "An image is worth a thousand words!" -->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Dependabot configuration
|
|
2
|
+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates#enabling-github-dependabot-version-updates
|
|
3
|
+
# https://til.simonwillison.net/github/dependabot-python-setup
|
|
4
|
+
|
|
5
|
+
version: 2
|
|
6
|
+
updates:
|
|
7
|
+
# Monitor pip dependencies
|
|
8
|
+
- package-ecosystem: pip
|
|
9
|
+
directory: "/"
|
|
10
|
+
schedule:
|
|
11
|
+
interval: monthly
|
|
12
|
+
groups:
|
|
13
|
+
python-packages:
|
|
14
|
+
patterns:
|
|
15
|
+
- "*"
|
|
16
|
+
|
|
17
|
+
# Monitor GitHub Actions and propose updates for security and maintenance
|
|
18
|
+
- package-ecosystem: github-actions
|
|
19
|
+
directory: "/"
|
|
20
|
+
schedule:
|
|
21
|
+
interval: monthly
|
|
22
|
+
groups:
|
|
23
|
+
github-actions:
|
|
24
|
+
patterns:
|
|
25
|
+
- "*"
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# This workflows will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
+
name: tests
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
tags:
|
|
10
|
+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
11
|
+
pull_request:
|
|
12
|
+
branches:
|
|
13
|
+
- main
|
|
14
|
+
workflow_dispatch:
|
|
15
|
+
|
|
16
|
+
concurrency:
|
|
17
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
18
|
+
cancel-in-progress: true
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
test:
|
|
22
|
+
name: ${{ matrix.platform }} py${{ matrix.python-version }}
|
|
23
|
+
runs-on: ${{ matrix.platform }}
|
|
24
|
+
timeout-minutes: 30
|
|
25
|
+
permissions:
|
|
26
|
+
id-token: write # needed for codecov OIDC authentication
|
|
27
|
+
strategy:
|
|
28
|
+
fail-fast: false
|
|
29
|
+
matrix:
|
|
30
|
+
platform: [ubuntu-latest]
|
|
31
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
32
|
+
# ubuntu + py3.12 is skipped: all tests pass, but the Python process
|
|
33
|
+
# segfaults after pytest finishes (tox reports "FAIL code -11"),
|
|
34
|
+
# which fails the job. The crash happens at interpreter teardown,
|
|
35
|
+
# most likely in the Qt/napari stack rather than the plugin code.
|
|
36
|
+
# py3.12 is still covered by the windows and macos jobs below.
|
|
37
|
+
# Re-enable once the segfault is resolved.
|
|
38
|
+
exclude:
|
|
39
|
+
- platform: ubuntu-latest
|
|
40
|
+
python-version: "3.12"
|
|
41
|
+
include:
|
|
42
|
+
- platform: windows-latest
|
|
43
|
+
python-version: "3.12"
|
|
44
|
+
- platform: macos-latest
|
|
45
|
+
python-version: "3.12"
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v7
|
|
49
|
+
|
|
50
|
+
- name: Setup python
|
|
51
|
+
uses: astral-sh/setup-uv@v7
|
|
52
|
+
with:
|
|
53
|
+
python-version: ${{ matrix.python-version }}
|
|
54
|
+
activate-environment: "true"
|
|
55
|
+
- name: Setup headless display
|
|
56
|
+
uses: pyvista/setup-headless-display-action@v4.3
|
|
57
|
+
with:
|
|
58
|
+
qt: true
|
|
59
|
+
wm: herbstluftwm
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# note: if you need dependencies from conda, considering using
|
|
63
|
+
# setup-miniconda: https://github.com/conda-incubator/setup-miniconda
|
|
64
|
+
# and
|
|
65
|
+
# tox-conda: https://github.com/tox-dev/tox-conda
|
|
66
|
+
# this runs the platform-specific tests declared in tox.ini
|
|
67
|
+
- name: Test with tox
|
|
68
|
+
run: uvx --with tox-gh-actions tox
|
|
69
|
+
env:
|
|
70
|
+
PLATFORM: ${{ matrix.platform }}
|
|
71
|
+
|
|
72
|
+
- name: Coverage
|
|
73
|
+
uses: codecov/codecov-action@v7
|
|
74
|
+
with:
|
|
75
|
+
use_oidc: true # reliable tokenless codecov uploads
|
|
76
|
+
|
|
77
|
+
build-and-inspect-package:
|
|
78
|
+
name: Build & inspect package.
|
|
79
|
+
runs-on: ubuntu-latest
|
|
80
|
+
|
|
81
|
+
steps:
|
|
82
|
+
- uses: actions/checkout@v7
|
|
83
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
|
84
|
+
|
|
85
|
+
deploy:
|
|
86
|
+
# this will run when you have tagged a commit, starting with "v*"
|
|
87
|
+
# and requires that you have put your twine API key in your
|
|
88
|
+
# github secrets (see readme for details)
|
|
89
|
+
needs: [test, build-and-inspect-package]
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
if: contains(github.ref, 'tags')
|
|
92
|
+
permissions:
|
|
93
|
+
id-token: write
|
|
94
|
+
steps:
|
|
95
|
+
- name: Download built artifact to dist/
|
|
96
|
+
uses: actions/download-artifact@v8
|
|
97
|
+
with:
|
|
98
|
+
name: Packages
|
|
99
|
+
path: dist
|
|
100
|
+
- name: Publish to PyPI
|
|
101
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
|
|
27
|
+
# PyInstaller
|
|
28
|
+
# Usually these files are written by a python script from a template
|
|
29
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
30
|
+
*.manifest
|
|
31
|
+
*.spec
|
|
32
|
+
|
|
33
|
+
# Installer logs
|
|
34
|
+
pip-log.txt
|
|
35
|
+
pip-delete-this-directory.txt
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.coverage
|
|
41
|
+
.coverage.*
|
|
42
|
+
.cache
|
|
43
|
+
nosetests.xml
|
|
44
|
+
coverage.xml
|
|
45
|
+
*,cover
|
|
46
|
+
.hypothesis/
|
|
47
|
+
.napari_cache
|
|
48
|
+
|
|
49
|
+
# Translations
|
|
50
|
+
*.mo
|
|
51
|
+
*.pot
|
|
52
|
+
|
|
53
|
+
# Django stuff:
|
|
54
|
+
*.log
|
|
55
|
+
local_settings.py
|
|
56
|
+
|
|
57
|
+
# Flask instance folder
|
|
58
|
+
instance/
|
|
59
|
+
|
|
60
|
+
# Sphinx documentation
|
|
61
|
+
docs/_build/
|
|
62
|
+
|
|
63
|
+
# MkDocs documentation
|
|
64
|
+
/site/
|
|
65
|
+
|
|
66
|
+
# PyBuilder
|
|
67
|
+
target/
|
|
68
|
+
|
|
69
|
+
# Pycharm and VSCode
|
|
70
|
+
.idea/
|
|
71
|
+
venv/
|
|
72
|
+
.vscode/
|
|
73
|
+
|
|
74
|
+
# IPython Notebook
|
|
75
|
+
.ipynb_checkpoints
|
|
76
|
+
|
|
77
|
+
# pyenv
|
|
78
|
+
.python-version
|
|
79
|
+
|
|
80
|
+
# OS
|
|
81
|
+
.DS_Store
|
|
82
|
+
|
|
83
|
+
# written by setuptools_scm
|
|
84
|
+
**/_version.py
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-docstring-first
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: check-yaml # checks for correct yaml syntax for github actions ex.
|
|
9
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
10
|
+
rev: v0.14.6
|
|
11
|
+
hooks:
|
|
12
|
+
- id: ruff-check
|
|
13
|
+
- id: ruff-format
|
|
14
|
+
- repo: https://github.com/napari/napari-plugin-checks
|
|
15
|
+
rev: v0.3.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: napari-plugin-checks
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2022 Seongbin Lim
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: napari-point-proofread
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Proofreading point annotations on images with napari
|
|
5
|
+
Author: Seongbin Lim
|
|
6
|
+
Author-email: sungbin246@gmail.com
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread#README.md
|
|
10
|
+
Project-URL: Source Code, https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread
|
|
11
|
+
Project-URL: User Support, https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread/issues
|
|
12
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
13
|
+
Classifier: Framework :: napari
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: napari
|
|
28
|
+
Requires-Dist: numpy
|
|
29
|
+
Requires-Dist: magicgui
|
|
30
|
+
Requires-Dist: qtpy
|
|
31
|
+
Provides-Extra: all
|
|
32
|
+
Requires-Dist: napari[all]; extra == "all"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# napari-point-proofread
|
|
36
|
+
https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread
|
|
37
|
+
|
|
38
|
+
[](https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread/raw/main/LICENSE)
|
|
39
|
+
[](https://pypi.org/project/napari-point-proofread)
|
|
40
|
+
[](https://python.org)
|
|
41
|
+
[](https://github.com/LaboratoryOpticsBiosciences/napari-point-proofread/actions)
|
|
42
|
+
[](https://codecov.io/gh/LaboratoryOpticsBiosciences/napari-point-proofread)
|
|
43
|
+
[](https://napari-hub.org/plugins/napari-point-proofread)
|
|
44
|
+
[](https://napari.org/stable/plugins/index.html)
|
|
45
|
+
[](https://github.com/copier-org/copier)
|
|
46
|
+
|
|
47
|
+
Proofreading point annotations on images with napari
|
|
48
|
+
|
|
49
|
+
----------------------------------
|
|
50
|
+
|
|
51
|
+
> [!IMPORTANT]
|
|
52
|
+
> Since v0.4.0 this plugin is published as `napari-point-proofread`. It was previously released as `napari-proofread-brainbow` (up to v0.3.3), which is no longer maintained. If you have the old package installed, run `pip uninstall napari-proofread-brainbow` before installing the new one.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
This [napari] plugin was generated with [copier] using the [napari-plugin-template].
|
|
56
|
+
|
|
57
|
+
<!--
|
|
58
|
+
Don't miss the full getting started guide to set up your new package:
|
|
59
|
+
https://github.com/napari/napari-plugin-template#getting-started
|
|
60
|
+
|
|
61
|
+
and review the napari docs for plugin developers:
|
|
62
|
+
https://napari.org/stable/plugins/index.html
|
|
63
|
+
-->
|
|
64
|
+
|
|
65
|
+
## Installation
|
|
66
|
+
|
|
67
|
+
You can install `napari-point-proofread` via [pip]:
|
|
68
|
+
|
|
69
|
+
pip install napari-point-proofread
|
|
70
|
+
|
|
71
|
+
If napari is not already installed, you can install `napari-point-proofread` with napari and Qt via:
|
|
72
|
+
|
|
73
|
+
pip install "napari-point-proofread[all]"
|
|
74
|
+
|
|
75
|
+
## Beginner Quick Guide (Step-by-Step)
|
|
76
|
+
|
|
77
|
+
This plugin provides two panels in napari:
|
|
78
|
+
|
|
79
|
+
- **Plugins > Point Proofread > Manual Proofread**
|
|
80
|
+
- **Plugins > Point Proofread > Proofread Predictions (from csv)**
|
|
81
|
+
|
|
82
|
+
### 1. Open napari and load your data
|
|
83
|
+
|
|
84
|
+
1. Start napari:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
napari
|
|
88
|
+
```
|
|
89
|
+
2. Drag and drop your image into the viewer (or use **File > Open File(s)...**).
|
|
90
|
+
3. If you have prediction points, also load the CSV file.
|
|
91
|
+
|
|
92
|
+

|
|
93
|
+
|
|
94
|
+
### 2. Open the plugin widgets
|
|
95
|
+
|
|
96
|
+
1. Open **Plugins > Point Proofread > Manual Proofread**.
|
|
97
|
+
2. (Optional) Open **Plugins > Point Proofread > Proofread Predictions (from csv)** if you want to review model predictions.
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
### 3. Prepare the image for proofreading
|
|
102
|
+
|
|
103
|
+
In **Manual Proofread**:
|
|
104
|
+
|
|
105
|
+
1. Select your image in **Image layer**.
|
|
106
|
+
2. Click **Convert to RGB** (for 4D channel-first/channel-middle data).
|
|
107
|
+
3. Click **Normalize (perc=99)** to improve visibility.
|
|
108
|
+
4. Use **Contrast max** and **ZYX scale** sliders as needed.
|
|
109
|
+
5. (Optional) Click **Make grid** to create a labeled grid overlay for systematic review.
|
|
110
|
+
|
|
111
|
+
Tip: In napari layer list, right-click an RGB layer and use **Split RGB** when needed (often helpful for 3D inspection).
|
|
112
|
+
|
|
113
|
+

|
|
114
|
+
|
|
115
|
+
### 4. Add or edit proofreading points
|
|
116
|
+
|
|
117
|
+
1. Create or select a **Points** layer.
|
|
118
|
+
2. In **Point Layer Tools**, set **Point size** for better visibility.
|
|
119
|
+
3. (Optional) Enable **Enable class annotation**.
|
|
120
|
+
4. Choose a class number and use **Assign class to selected** to label points.
|
|
121
|
+
|
|
122
|
+

|
|
123
|
+
|
|
124
|
+
### 5. Review prediction CSV points by confidence (optional)
|
|
125
|
+
|
|
126
|
+
In **Proofread Predictions (from csv)**:
|
|
127
|
+
|
|
128
|
+
1. Select the loaded prediction points layer.
|
|
129
|
+
2. Adjust **Min probability**.
|
|
130
|
+
3. Click **Threshold probability (csv)** to create/update a filtered layer (`threshold_prob`).
|
|
131
|
+
|
|
132
|
+

|
|
133
|
+
|
|
134
|
+
### 6. Save your corrected points
|
|
135
|
+
|
|
136
|
+
1. Select your final points layer.
|
|
137
|
+
2. Save as CSV from napari.
|
|
138
|
+
3. In the save dialog, set **Files of type** to **Point Proofread (*.csv)** (as shown in the image). Otherwise, values that should remain integers (for example, class labels) may not be saved correctly.
|
|
139
|
+
|
|
140
|
+

|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## Developer Setup
|
|
144
|
+
|
|
145
|
+
After cloning the repository, you can set up a development environment with conda:
|
|
146
|
+
|
|
147
|
+
### pip
|
|
148
|
+
|
|
149
|
+
#### Step 1: Create and activate the corresponding conda environment
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
conda create -n napari-point-proofread -c conda-forge python=3.11 pip -y
|
|
153
|
+
conda activate napari-point-proofread
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### Step 2: Install requirements with pip
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
cd napari-point-proofread
|
|
160
|
+
pip install -e . --group dev
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
`--group` requires pip >= 25.1.
|
|
164
|
+
|
|
165
|
+
#### Step 3: Test the plugin by running napari
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
napari
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The plugin should appear under *Plugins > Point Proofread*
|
|
172
|
+
|
|
173
|
+
### With uv
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
uv sync
|
|
177
|
+
uv run napari
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Run the tests with `uv run pytest` (current environment) or `uv run tox` (full matrix).
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## Contributing
|
|
186
|
+
|
|
187
|
+
Contributions are very welcome. Tests can be run with [tox], please ensure
|
|
188
|
+
the coverage at least stays the same before you submit a pull request.
|
|
189
|
+
|
|
190
|
+
## License
|
|
191
|
+
|
|
192
|
+
Distributed under the terms of the [MIT] license,
|
|
193
|
+
"napari-point-proofread" is free and open source software
|
|
194
|
+
|
|
195
|
+
## Issues
|
|
196
|
+
|
|
197
|
+
If you encounter any problems, please [file an issue] along with a detailed description.
|
|
198
|
+
|
|
199
|
+
[napari]: https://github.com/napari/napari
|
|
200
|
+
[copier]: https://copier.readthedocs.io/en/stable/
|
|
201
|
+
[@napari]: https://github.com/napari
|
|
202
|
+
[MIT]: http://opensource.org/licenses/MIT
|
|
203
|
+
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
|
|
204
|
+
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
|
|
205
|
+
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
206
|
+
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
|
|
207
|
+
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
|
|
208
|
+
[napari-plugin-template]: https://github.com/napari/napari-plugin-template
|
|
209
|
+
|
|
210
|
+
[napari]: https://github.com/napari/napari
|
|
211
|
+
[tox]: https://tox.readthedocs.io/en/latest/
|
|
212
|
+
[pip]: https://pypi.org/project/pip/
|
|
213
|
+
[PyPI]: https://pypi.org/
|