vitessce 3.8.0__py3-none-any.whl → 3.8.1__py3-none-any.whl
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/file_def_utils.py +5 -1
- vitessce/widget.py +3 -3
- vitessce/wrappers.py +11 -2
- {vitessce-3.8.0.dist-info → vitessce-3.8.1.dist-info}/METADATA +1 -1
- {vitessce-3.8.0.dist-info → vitessce-3.8.1.dist-info}/RECORD +7 -7
- {vitessce-3.8.0.dist-info → vitessce-3.8.1.dist-info}/WHEEL +0 -0
- {vitessce-3.8.0.dist-info → vitessce-3.8.1.dist-info}/licenses/LICENSE +0 -0
vitessce/file_def_utils.py
CHANGED
|
@@ -147,7 +147,7 @@ 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:
|
|
150
|
+
def gen_sdata_obs_points_schema(options, path: str, table_path: str = "tables/table", coordinate_system: Optional[str] = None, feature_index_column: Optional[str] = None, morton_code_column: Optional[str] = None) -> dict:
|
|
151
151
|
if path is not None:
|
|
152
152
|
options["obsPoints"] = {
|
|
153
153
|
"path": path
|
|
@@ -156,6 +156,10 @@ def gen_sdata_obs_points_schema(options, path: str, table_path: str = "tables/ta
|
|
|
156
156
|
options["obsPoints"]['tablePath'] = table_path
|
|
157
157
|
if coordinate_system is not None:
|
|
158
158
|
options["obsPoints"]['coordinateSystem'] = coordinate_system
|
|
159
|
+
if feature_index_column is not None:
|
|
160
|
+
options["obsPoints"]['featureIndexColumn'] = feature_index_column
|
|
161
|
+
if morton_code_column is not None:
|
|
162
|
+
options["obsPoints"]['mortonCodeColumn'] = morton_code_column
|
|
159
163
|
return options
|
|
160
164
|
|
|
161
165
|
|
vitessce/widget.py
CHANGED
|
@@ -729,7 +729,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
729
729
|
|
|
730
730
|
next_port = DEFAULT_PORT
|
|
731
731
|
|
|
732
|
-
js_package_version = Unicode('3.9.
|
|
732
|
+
js_package_version = Unicode('3.9.2').tag(sync=True)
|
|
733
733
|
js_dev_mode = Bool(False).tag(sync=True)
|
|
734
734
|
custom_js_url = Unicode('').tag(sync=True)
|
|
735
735
|
plugin_esm = List(trait=Unicode(''), default_value=[]).tag(sync=True)
|
|
@@ -742,7 +742,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
742
742
|
|
|
743
743
|
store_urls = List(trait=Unicode(''), default_value=[]).tag(sync=True)
|
|
744
744
|
|
|
745
|
-
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.9.
|
|
745
|
+
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.9.2', 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):
|
|
746
746
|
"""
|
|
747
747
|
Construct a new Vitessce widget. Not intended to be instantiated directly; instead, use ``VitessceConfig.widget``.
|
|
748
748
|
|
|
@@ -876,7 +876,7 @@ class VitessceWidget(anywidget.AnyWidget):
|
|
|
876
876
|
# Launch Vitessce using plain HTML representation (no ipywidgets)
|
|
877
877
|
|
|
878
878
|
|
|
879
|
-
def ipython_display(config, height=600, theme='auto', base_url=None, host_name=None, uid=None, port=None, proxy=False, js_package_version='3.9.
|
|
879
|
+
def ipython_display(config, height=600, theme='auto', base_url=None, host_name=None, uid=None, port=None, proxy=False, js_package_version='3.9.2', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, page_mode=False, page_esm=None, server_host=None):
|
|
880
880
|
from IPython.display import display, HTML
|
|
881
881
|
uid_str = "vitessce" + get_uid_str(uid)
|
|
882
882
|
|
vitessce/wrappers.py
CHANGED
|
@@ -1407,7 +1407,7 @@ SpatialDataWrapperType = TypeVar('SpatialDataWrapperType', bound='SpatialDataWra
|
|
|
1407
1407
|
|
|
1408
1408
|
class SpatialDataWrapper(AnnDataWrapper):
|
|
1409
1409
|
|
|
1410
|
-
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):
|
|
1410
|
+
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, obs_points_feature_index_column: Optional[str] = None, obs_points_morton_code_column: Optional[str] = None, table_path: str = "tables/table", is_zip=None, coordination_values=None, **kwargs):
|
|
1411
1411
|
"""
|
|
1412
1412
|
Wrap a SpatialData object.
|
|
1413
1413
|
|
|
@@ -1432,6 +1432,10 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1432
1432
|
:type obs_segmentations_path: Optional[str]
|
|
1433
1433
|
:param obs_points_path: Path to a points element, by default None
|
|
1434
1434
|
:type obs_points_path: Optional[str]
|
|
1435
|
+
:param obs_points_feature_index_column: Column in the points dataframe that contains a feature index value (i.e., index into table.var.index to specify a gene) for each point, by default None
|
|
1436
|
+
:type obs_points_feature_index_column: Optional[str]
|
|
1437
|
+
:param obs_points_morton_code_column: Column in the points dataframe that contains a morton code for each point, by default None
|
|
1438
|
+
:type obs_points_morton_code_column: Optional[str]
|
|
1435
1439
|
:param str feature_labels_path: Path to a table var column containing feature labels (e.g., alternate gene symbols), instead of the default index column of the `var` dataframe.
|
|
1436
1440
|
:param list[str] obs_embedding_paths: Column names like `['obsm/X_umap', 'obsm/X_pca']` for showing scatterplots
|
|
1437
1441
|
:param list[str] obs_embedding_names: Overriding names like `['UMAP', 'PCA']` for displaying above scatterplots
|
|
@@ -1466,6 +1470,8 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1466
1470
|
self._obs_spots_path = obs_spots_path
|
|
1467
1471
|
self._obs_segmentations_path = obs_segmentations_path
|
|
1468
1472
|
self._obs_points_path = obs_points_path
|
|
1473
|
+
self._obs_points_feature_index_column = obs_points_feature_index_column
|
|
1474
|
+
self._obs_points_morton_code_column = obs_points_morton_code_column
|
|
1469
1475
|
if self._adata_path is not None:
|
|
1470
1476
|
self.zarr_folder = 'spatialdata.zarr'
|
|
1471
1477
|
self.obs_type_label = None
|
|
@@ -1553,7 +1559,10 @@ class SpatialDataWrapper(AnnDataWrapper):
|
|
|
1553
1559
|
options = gen_sdata_obs_spots_schema(options, self._obs_spots_path, self._table_path, self._region, self._coordinate_system)
|
|
1554
1560
|
options = gen_sdata_image_schema(options, self._image_path, self._coordinate_system)
|
|
1555
1561
|
options = gen_sdata_obs_segmentations_schema(options, self._obs_segmentations_path, self._table_path, self._coordinate_system)
|
|
1556
|
-
options = gen_sdata_obs_points_schema(
|
|
1562
|
+
options = gen_sdata_obs_points_schema(
|
|
1563
|
+
options, self._obs_points_path, self._table_path, self._coordinate_system,
|
|
1564
|
+
self._obs_points_feature_index_column, self._obs_points_morton_code_column
|
|
1565
|
+
)
|
|
1557
1566
|
options = gen_feature_labels_schema(self._feature_labels, options)
|
|
1558
1567
|
options = gen_obs_embedding_schema(options, self._mappings_obsm, self._mappings_obsm_names, self._mappings_obsm_dims)
|
|
1559
1568
|
if len(options.keys()) > 0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vitessce
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.1
|
|
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>
|
|
@@ -3,13 +3,13 @@ vitessce/config.py,sha256=vZyxrvzsrDpbp3QMcfOZghSO-kSb4myUbRNTGl6Ur6o,83101
|
|
|
3
3
|
vitessce/config_converter.py,sha256=IRPnGPGaETvJbYZNUv2pe54SHHHsDY9VWo3JRjSI5FM,14681
|
|
4
4
|
vitessce/constants.py,sha256=7w71Z5TLJIWy7ieNxTmNaC-KB3G5mok_U0tTrcUG6g4,15500
|
|
5
5
|
vitessce/export.py,sha256=L7j5sVC0nBSqGocFWQyyHImSiAF4IjXhmqV1QtpuNc4,3874
|
|
6
|
-
vitessce/file_def_utils.py,sha256=
|
|
6
|
+
vitessce/file_def_utils.py,sha256=1_jSFTHzOGpjHo4AqFTDvy9yeOrK0b_eu27Cv-u_0h4,7473
|
|
7
7
|
vitessce/repr.py,sha256=qMmefmZ3E-3sRVxeI5q1DTZnfuwbXKiA85eyqk5MCT4,2287
|
|
8
8
|
vitessce/responses.py,sha256=Z6Wo4AXN-RyzmxMPhSuhpIsHTItHM4GyIgMLGoVEYcU,339
|
|
9
9
|
vitessce/routes.py,sha256=U8T-L-3QCD_tAbPF8LsUlSMhPWNbyzbLNUnxP9Z9s9o,2140
|
|
10
10
|
vitessce/utils.py,sha256=obzjj65qsagu60_yuhGc-0jmHO-BW0Y-bDs0FgrBqLY,981
|
|
11
|
-
vitessce/widget.py,sha256=
|
|
12
|
-
vitessce/wrappers.py,sha256=
|
|
11
|
+
vitessce/widget.py,sha256=IS487Ve5U1ySyRVo65F9QCx87y3353B8PWUxlsytogo,39264
|
|
12
|
+
vitessce/wrappers.py,sha256=0eue_o0r9vb0wToaDcOzFK_HSy1A_IWHZhDaqvPCej0,78647
|
|
13
13
|
vitessce/data_utils/__init__.py,sha256=lZZ58HlbMiWYIBw3JckGorjmySR_8N4RCZS3U00jUsQ,716
|
|
14
14
|
vitessce/data_utils/anndata.py,sha256=iLa5-bRezHgBzL_XCHO7w0pc0RQ4urzZbDsqJbBYeCk,10668
|
|
15
15
|
vitessce/data_utils/entities.py,sha256=X8enC_TQbgwBzjgD1x53IPS6aVr9wyP0s-NLuYBeMeU,11705
|
|
@@ -19,7 +19,7 @@ vitessce/data_utils/spatialdata_points_zorder.py,sha256=pAga1GGyiFgvJCxiqjpsqDpV
|
|
|
19
19
|
vitessce/widget_plugins/__init__.py,sha256=lto2GXnc7KwjIoT-jvzyRYLj0XTJG3uxoX45Hc9EcWA,82
|
|
20
20
|
vitessce/widget_plugins/demo_plugin.py,sha256=14S7nOxdlKSxIHw9DUcNCN83NE_U1EMPy2D4k0FDues,1797
|
|
21
21
|
vitessce/widget_plugins/spatial_query.py,sha256=CYxvmMT1Je_jguikPROQxlegkPgIIzemKGbZSJfZMyI,12314
|
|
22
|
-
vitessce-3.8.
|
|
23
|
-
vitessce-3.8.
|
|
24
|
-
vitessce-3.8.
|
|
25
|
-
vitessce-3.8.
|
|
22
|
+
vitessce-3.8.1.dist-info/METADATA,sha256=rAo5H8aG4sgH000LzSzmBsPYN-qqc1P-hdlNH8yvxAI,9826
|
|
23
|
+
vitessce-3.8.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
24
|
+
vitessce-3.8.1.dist-info/licenses/LICENSE,sha256=sNNpI0PQ57AW8_XnTAjU5Yw8YBA_DRNkVHrHYpCIhRU,1067
|
|
25
|
+
vitessce-3.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|