-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from GenevieveBuckley/napari-plugin
micro-sam napari plugin
- Loading branch information
Showing
6 changed files
with
282 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include LICENSE | ||
include README.md | ||
|
||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: micro-sam | ||
display_name: SegmentAnything for Microscopy | ||
contributions: | ||
commands: | ||
- id: micro-sam.sample_data_image_series | ||
python_name: micro_sam.sample_data:sample_data_image_series | ||
title: Load image series sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_wholeslide | ||
python_name: micro_sam.sample_data:sample_data_wholeslide | ||
title: Load WholeSlide sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_livecell | ||
python_name: micro_sam.sample_data:sample_data_livecell | ||
title: Load LiveCell sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_hela_2d | ||
python_name: micro_sam.sample_data:sample_data_hela_2d | ||
title: Load 2D Hela sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_3d | ||
python_name: micro_sam.sample_data:sample_data_3d | ||
title: Load Lucchi++ 3D sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_tracking | ||
python_name: micro_sam.sample_data:sample_data_tracking | ||
title: Load tracking sample data from micro-sam plugin | ||
- id: micro-sam.sample_data_segmentation | ||
python_name: micro_sam.sample_data:sample_data_segmentation | ||
title: Load segmentation sample data from micro-sam plugin | ||
sample_data: | ||
- command: micro-sam.sample_data_image_series | ||
display_name: Image series example data | ||
key: micro-sam-image-series | ||
- command: micro-sam.sample_data_wholeslide | ||
display_name: WholeSlide example data | ||
key: micro-sam-wholeslide | ||
- command: micro-sam.sample_data_livecell | ||
display_name: LiveCell example data | ||
key: micro-sam-livecell | ||
- command: micro-sam.sample_data_hela_2d | ||
display_name: HeLa 2d example data | ||
key: micro-sam-hela2d | ||
- command: micro-sam.sample_data_3d | ||
display_name: Lucchi++ 3d dataset | ||
key: micro-sam-lucchi | ||
- command: micro-sam.sample_data_tracking | ||
display_name: Tracking sample dataset | ||
key: micro-sam-tracking | ||
- command: micro-sam.sample_data_segmentation | ||
display_name: Segmentation sample dataset | ||
key: micro-sam-segmentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[build-system] | ||
requires = ["setuptools>=42.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py38', 'py39', 'py310'] | ||
|
||
|
||
[tool.ruff] | ||
line-length = 79 | ||
select = [ | ||
"E", "F", "W", #flake8 | ||
"UP", # pyupgrade | ||
"I", # isort | ||
"BLE", # flake8-blind-exception | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"ISC", # flake8-implicit-str-concat | ||
"G", # flake8-logging-format | ||
"PIE", # flake8-pie | ||
"SIM", # flake8-simplify | ||
] | ||
ignore = [ | ||
"E501", # line too long. let black handle this | ||
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this. | ||
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9 | ||
] | ||
|
||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".mypy_cache", | ||
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"*vendored*", | ||
"*_vendor*", | ||
] | ||
|
||
target-version = "py38" | ||
fix = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[metadata] | ||
name = micro-sam | ||
version = attr: micro_sam.__version__ | ||
description = SegmentAnything For Microscopy | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/computational-cell-analytics/micro-sam | ||
author = Anwai Archit, Constantin Pape | ||
author_email = [email protected] | ||
license = MIT | ||
license_files = LICENSE | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
Framework :: napari | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Topic :: Scientific/Engineering :: Image Processing | ||
project_urls = | ||
Bug Tracker = https://github.com/computational-cell-analytics/micro-sam/issues | ||
Documentation = https://computational-cell-analytics.github.io/micro-sam/micro_sam.html | ||
Source Code = https://github.com/computational-cell-analytics/micro-sam | ||
User Support = https://github.com/computational-cell-analytics/micro-sam/issues | ||
|
||
[options] | ||
packages = find: | ||
python_requires = >=3.8 | ||
include_package_data = True | ||
package_dir = | ||
= . | ||
|
||
[options.packages.find] | ||
where = . | ||
|
||
# tell napari where to find to your manifest | ||
[options.entry_points] | ||
napari.manifest = | ||
micro-sam = micro_sam:napari.yaml | ||
|
||
# make sure it gets included in your package | ||
[options.package_data] | ||
* = *.yaml | ||
|
||
[project.scripts] | ||
micro_sam.annotator = "micro_sam.sam_annotator.annotator:main" | ||
micro_sam.annotator_2d = "micro_sam.sam_annotator.annotator_2d:main" | ||
micro_sam.annotator_3d = "micro_sam.sam_annotator.annotator_3d:main" | ||
micro_sam.annotator_tracking = "micro_sam.sam_annotator.annotator_tracking:main" | ||
micro_sam.image_series_annotator = "micro_sam.sam_annotator.image_series_annotator:main" | ||
micro_sam.precompute_embeddings = "micro_sam.util:main" |