-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Visualize tracked cells and their features (#13)
* remove unused import * configurable logging levels * metadata options in reader functions * add tracking labels viewer * fix ambiguous variable name * only use labels layer for annotation * clean up arguments * todo comment * improve log message * format * fix exports * use unprojected embeddings * configurable feature files * test add widget * use default napari dependencies for dev * add optional dependencies also redo packaging with pyproject.toml * relax napari pin after napari-clusters-plotter update * format * wip: use xarray output zarr format for embeddings * construct index from xarray * fix index naming * bump iohub to 0.2.0a1 * add fake z axis for tracking * ci: use x86_64 runner for macos since higra is not available on arm64 * disable coverage * use precomputed umap * aggregate feature loading * update widget name in test * add 3.12 to test runners * make features optional this allows the widget to be used as a tracks viewer * fix fov name filtering * pin ncp to commit
- Loading branch information
Showing
9 changed files
with
211 additions
and
104 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
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 |
---|---|---|
@@ -1,12 +1,68 @@ | ||
[build-system] | ||
requires = ["setuptools>=42.0.0", "wheel"] | ||
requires = ["setuptools>=42.0.0", "setuptools-scm[toml]"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "napari-iohub" | ||
description = "OME-Zarr viewer for napari with iohub as the I/O backend" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{ name = "CZ Biohub SF and napari-iohub contributors", email = "[email protected]" }, | ||
] | ||
dependencies = ["iohub>=0.1.0", "magicgui", "qtpy"] | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Framework :: napari", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: Image Processing", | ||
] | ||
|
||
[project.optional-dependencies] | ||
clustering = [ | ||
# https://github.com/BiAPoL/napari-clusters-plotter/pull/345 | ||
"napari-clusters-plotter@git+https://github.com/BiAPoL/napari-clusters-plotter.git@43f5f8297f41927eb5993b95092aaf9f90bb1583", | ||
"ultrack", | ||
"iohub==0.2.0a1", | ||
] | ||
all = ["napari[all]", "napari-iohub[clustering]"] | ||
dev = [ | ||
"tox", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-qt", | ||
"black", | ||
"ruff", | ||
"napari-iohub[all]", | ||
] | ||
|
||
[project.entry-points."napari.manifest"] | ||
"napari-iohub" = "napari_iohub:napari.yaml" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/napari_iohub/_version.py" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.yaml"] | ||
|
||
[tool.black] | ||
line-length = 79 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 79 | ||
[tool.ruff] | ||
src = ["src"] | ||
lint.extend-select = ["I001"] | ||
lint.isort.known-first-party = ["napari_iohub"] |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
__version__ = "0.0.1" | ||
import logging | ||
import os | ||
|
||
from ._edit_labels import EditLabelsWidget | ||
from ._reader import napari_get_reader | ||
from ._view_tracks import open_image_and_tracks | ||
from ._widget import MainWidget | ||
|
||
__all__ = ( | ||
"napari_get_reader", | ||
"MainWidget", | ||
"example_magic_widget", | ||
"EditLabelsWidget", | ||
"open_image_and_tracks", | ||
) | ||
|
||
_logger = logging.getLogger(__name__) | ||
_logger.setLevel(os.getenv("NAPARI_IOHUB_LOGGING_LEVEL", logging.DEBUG)) |
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
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,3 @@ | ||
def test_view_tracks_widget(make_napari_viewer): | ||
viewer = make_napari_viewer() | ||
_ = viewer.window.add_plugin_dock_widget("napari-iohub", "Single-cell features") |
Oops, something went wrong.