vitessce 3.7.4__tar.gz → 3.7.5__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.
- {vitessce-3.7.4 → vitessce-3.7.5}/PKG-INFO +1 -1
- {vitessce-3.7.4 → vitessce-3.7.5}/pyproject.toml +1 -1
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/file_def_utils.py +12 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/widget.py +3 -3
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/wrappers.py +6 -1
- {vitessce-3.7.4 → vitessce-3.7.5}/uv.lock +1 -1
- {vitessce-3.7.4 → vitessce-3.7.5}/.coveragerc_omit +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/.coveragerc_real +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/.devcontainer/devcontainer.json +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/.gitignore +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/.python-version +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/CHANGELOG.md +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/LICENSE +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/MANIFEST.in +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/Makefile +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/README.md +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/setup.cfg +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/setup.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/__init__.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/config.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/config_converter.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/constants.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/data_utils/__init__.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/data_utils/anndata.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/data_utils/entities.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/data_utils/multivec.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/data_utils/ome.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/export.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/repr.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/responses.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/routes.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/utils.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/widget_plugins/__init__.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/widget_plugins/demo_plugin.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/src/vitessce/widget_plugins/spatial_query.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/__init__.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/create_test_data.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/data/test.ome.tif +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_anndata_utils.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_config.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_config_converter.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_config_updates.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_entities.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_ome_utils.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests/test_wrappers.py +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests-widget/example.spec.js +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests-widget/package.json +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests-widget/playwright.config.js +0 -0
- {vitessce-3.7.4 → vitessce-3.7.5}/tests-widget/pnpm-lock.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vitessce
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.5
|
|
4
4
|
Summary: Jupyter widget facilitating interactive visualization of spatial single-cell data with Vitessce
|
|
5
5
|
Project-URL: repository, https://github.com/vitessce/vitessce-python
|
|
6
6
|
Author-email: Mark Keller <mark_keller@hms.harvard.edu>
|
|
@@ -147,6 +147,18 @@ def gen_sdata_obs_segmentations_schema(options, path: str, table_path: str = "ta
|
|
|
147
147
|
return options
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
def gen_sdata_obs_points_schema(options, path: str, table_path: str = "tables/table", coordinate_system: Optional[str] = None) -> dict:
|
|
151
|
+
if path is not None:
|
|
152
|
+
options["obsPoints"] = {
|
|
153
|
+
"path": path
|
|
154
|
+
}
|
|
155
|
+
if table_path is not None:
|
|
156
|
+
options["obsPoints"]['tablePath'] = table_path
|
|
157
|
+
if coordinate_system is not None:
|
|
158
|
+
options["obsPoints"]['coordinateSystem'] = coordinate_system
|
|
159
|
+
return options
|
|
160
|
+
|
|
161
|
+
|
|
150
162
|
def gen_sdata_obs_spots_schema(options: dict, shapes_path: str, table_path: str = "tables/table", region: Optional[str] = None, coordinate_system: Optional[str] = None) -> dict:
|
|
151
163
|
if shapes_path is not None:
|
|
152
164
|
options['obsSpots'] = {
|
|
@@ -651,7 +651,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
651
651
|
|
|
652
652
|
next_port = DEFAULT_PORT
|
|
653
653
|
|
|
654
|
-
js_package_version = Unicode('3.
|
|
654
|
+
js_package_version = Unicode('3.8.3').tag(sync=True)
|
|
655
655
|
js_dev_mode = Bool(False).tag(sync=True)
|
|
656
656
|
custom_js_url = Unicode('').tag(sync=True)
|
|
657
657
|
plugin_esm = List(trait=Unicode(''), default_value=[]).tag(sync=True)
|
|
@@ -664,7 +664,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
664
664
|
|
|
665
665
|
store_urls = List(trait=Unicode(''), default_value=[]).tag(sync=True)
|
|
666
666
|
|
|
667
|
-
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.
|
|
667
|
+
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.8.3', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, prefer_local=True, invoke_timeout=300000, invoke_batched=True, page_mode=False, page_esm=None, prevent_scroll=True, server_host=None):
|
|
668
668
|
"""
|
|
669
669
|
Construct a new Vitessce widget. Not intended to be instantiated directly; instead, use ``VitessceConfig.widget``.
|
|
670
670
|
|
|
@@ -798,7 +798,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
798
798
|
# Launch Vitessce using plain HTML representation (no ipywidgets)
|
|
799
799
|
|
|
800
800
|
|
|
801
|
-
def ipython_display(config, height=600, theme='auto', base_url=None, host_name=None, uid=None, port=None, proxy=False, js_package_version='3.
|
|
801
|
+
def ipython_display(config, height=600, theme='auto', base_url=None, host_name=None, uid=None, port=None, proxy=False, js_package_version='3.8.3', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, page_mode=False, page_esm=None, server_host=None):
|
|
802
802
|
from IPython.display import display, HTML
|
|
803
803
|
uid_str = "vitessce" + get_uid_str(uid)
|
|
804
804
|
|
|
@@ -28,6 +28,7 @@ from vitessce.file_def_utils import (
|
|
|
28
28
|
gen_obs_sets_schema,
|
|
29
29
|
gen_sdata_image_schema,
|
|
30
30
|
gen_sdata_obs_segmentations_schema,
|
|
31
|
+
gen_sdata_obs_points_schema,
|
|
31
32
|
gen_sdata_obs_spots_schema,
|
|
32
33
|
gen_sdata_obs_sets_schema,
|
|
33
34
|
gen_sdata_obs_feature_matrix_schema,
|
|
@@ -1399,7 +1400,7 @@ SpatialDataWrapperType = TypeVar('SpatialDataWrapperType', bound='SpatialDataWra
|
|
|
1399
1400
|
|
|
1400
1401
|
class SpatialDataWrapper(AnnDataWrapper):
|
|
1401
1402
|
|
|
1402
|
-
def __init__(self, sdata_path: Optional[str] = None, sdata_url: Optional[str] = None, sdata_store: Optional[Union[str, zarr.storage.StoreLike]] = None, sdata_artifact: Optional[ln.Artifact] = None, image_path: Optional[str] = None, region: Optional[str] = None, coordinate_system: Optional[str] = None, obs_spots_path: Optional[str] = None, obs_segmentations_path: Optional[str] = None, table_path: str = "tables/table", is_zip=None, coordination_values=None, **kwargs):
|
|
1403
|
+
def __init__(self, sdata_path: Optional[str] = None, sdata_url: Optional[str] = None, sdata_store: Optional[Union[str, zarr.storage.StoreLike]] = None, sdata_artifact: Optional[ln.Artifact] = None, image_path: Optional[str] = None, region: Optional[str] = None, coordinate_system: Optional[str] = None, obs_spots_path: Optional[str] = None, obs_segmentations_path: Optional[str] = None, obs_points_path: Optional[str] = None, table_path: str = "tables/table", is_zip=None, coordination_values=None, **kwargs):
|
|
1403
1404
|
"""
|
|
1404
1405
|
Wrap a SpatialData object.
|
|
1405
1406
|
|
|
@@ -1422,6 +1423,8 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1422
1423
|
:type obs_spots_path: Optional[str]
|
|
1423
1424
|
:param obs_segmentations_path: Path to a labels or shapes element (segmentation bitmask label image or segmentation polygon shapes), by default None
|
|
1424
1425
|
:type obs_segmentations_path: Optional[str]
|
|
1426
|
+
:param obs_points_path: Path to a points element, by default None
|
|
1427
|
+
:type obs_points_path: Optional[str]
|
|
1425
1428
|
"""
|
|
1426
1429
|
raise_error_if_zero_or_more_than_one([
|
|
1427
1430
|
sdata_path,
|
|
@@ -1451,6 +1454,7 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1451
1454
|
self._kwargs = kwargs
|
|
1452
1455
|
self._obs_spots_path = obs_spots_path
|
|
1453
1456
|
self._obs_segmentations_path = obs_segmentations_path
|
|
1457
|
+
self._obs_points_path = obs_points_path
|
|
1454
1458
|
if self._adata_path is not None:
|
|
1455
1459
|
self.zarr_folder = 'spatialdata.zarr'
|
|
1456
1460
|
self.obs_type_label = None
|
|
@@ -1538,6 +1542,7 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1538
1542
|
options = gen_sdata_obs_spots_schema(options, self._obs_spots_path, self._table_path, self._region, self._coordinate_system)
|
|
1539
1543
|
options = gen_sdata_image_schema(options, self._image_path, self._coordinate_system)
|
|
1540
1544
|
options = gen_sdata_obs_segmentations_schema(options, self._obs_segmentations_path, self._table_path, self._coordinate_system)
|
|
1545
|
+
options = gen_sdata_obs_points_schema(options, self._obs_points_path, self._table_path, self._coordinate_system)
|
|
1541
1546
|
options = gen_feature_labels_schema(self._feature_labels, options)
|
|
1542
1547
|
if len(options.keys()) > 0:
|
|
1543
1548
|
obj_file_def = {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|