vitessce 3.7.8__py3-none-any.whl → 3.8.0__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/widget.py CHANGED
@@ -181,7 +181,7 @@ const fallbackImportMap = {
181
181
  "react-dom": "https://cdn.vitessce.io/react-dom@18.2.0/index.js",
182
182
  "react-dom/client": "https://cdn.vitessce.io/react-dom@18.2.0/es2022/client.mjs",
183
183
  // Replaced with version-specific URL below.
184
- "vitessce": "https://cdn.vitessce.io/vitessce@3.8.5/dist/index.min.js",
184
+ "vitessce": "https://cdn.vitessce.io/vitessce@VERSION/dist/index.min.js",
185
185
  },
186
186
  };
187
187
  /*
@@ -191,7 +191,7 @@ const fallbackDevImportMap = {
191
191
  "react-dom": "https://cdn.vitessce.io/react-dom@18.2.0/index_dev.js",
192
192
  "react-dom/client": "https://cdn.vitessce.io/react-dom@18.2.0/es2022/client.development.mjs",
193
193
  // Replaced with version-specific URL below.
194
- "vitessce": "https://cdn.vitessce.io/@vitessce/dev@3.8.5/dist/index.js",
194
+ "vitessce": "https://cdn.vitessce.io/@vitessce/dev@VERSION/dist/index.js",
195
195
  },
196
196
  };
197
197
  */
@@ -729,7 +729,7 @@ class VitessceWidget(anywidget.AnyWidget):
729
729
 
730
730
  next_port = DEFAULT_PORT
731
731
 
732
- js_package_version = Unicode('3.8.5').tag(sync=True)
732
+ js_package_version = Unicode('3.9.0').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.8.5', 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):
745
+ def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.9.0', 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.8.5', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, page_mode=False, page_esm=None, server_host=None):
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.0', 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
@@ -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 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
+ :param list[str] obs_embedding_paths: Column names like `['obsm/X_umap', 'obsm/X_pca']` for showing scatterplots
1437
+ :param list[str] obs_embedding_names: Overriding names like `['UMAP', 'PCA']` for displaying above scatterplots
1438
+ :param list[str] obs_embedding_dims: Dimensions along which to get data for the scatterplot, like `[[0, 1], [4, 5]]` where `[0, 1]` is just the normal x and y but `[4, 5]` could be comparing the third and fourth principal components, for example.
1435
1439
  """
1436
1440
  raise_error_if_zero_or_more_than_one([
1437
1441
  sdata_path,
@@ -1551,6 +1555,7 @@ class SpatialDataWrapper(AnnDataWrapper):
1551
1555
  options = gen_sdata_obs_segmentations_schema(options, self._obs_segmentations_path, self._table_path, self._coordinate_system)
1552
1556
  options = gen_sdata_obs_points_schema(options, self._obs_points_path, self._table_path, self._coordinate_system)
1553
1557
  options = gen_feature_labels_schema(self._feature_labels, options)
1558
+ options = gen_obs_embedding_schema(options, self._mappings_obsm, self._mappings_obsm_names, self._mappings_obsm_dims)
1554
1559
  if len(options.keys()) > 0:
1555
1560
  obj_file_def = {
1556
1561
  "fileType": ft.SPATIALDATA_ZARR_ZIP.value if self.is_zip else ft.SPATIALDATA_ZARR.value,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vitessce
3
- Version: 3.7.8
3
+ Version: 3.8.0
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>
@@ -8,8 +8,8 @@ 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=ndgKqwNLrgYnXnA5pGCu2mgQe0_vF1ZMedWuHDYqPpo,39260
12
- vitessce/wrappers.py,sha256=WdOQ9w4ElGZH_nKrZAfyrtHxW3iVDzIQ1eqBPlrucj0,76993
11
+ vitessce/widget.py,sha256=rR7JipphZy1R8NhzwXVrLoz6DfJBcAe76BlqWv6ox3Q,39264
12
+ vitessce/wrappers.py,sha256=UBUc2lbN3b0G31ZyE3XAxMlaFI3PKKAvv9KuuExxaEA,77804
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.7.8.dist-info/METADATA,sha256=GhjWJVZ8ENw7o44GSQIAM9KiTzPq3dKV_ec_fxCHQYo,9826
23
- vitessce-3.7.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- vitessce-3.7.8.dist-info/licenses/LICENSE,sha256=sNNpI0PQ57AW8_XnTAjU5Yw8YBA_DRNkVHrHYpCIhRU,1067
25
- vitessce-3.7.8.dist-info/RECORD,,
22
+ vitessce-3.8.0.dist-info/METADATA,sha256=xtVyDhn3LWuQp5M2ww2ybyoyX_hcrQ-aeg2MA3pWyKM,9826
23
+ vitessce-3.8.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
24
+ vitessce-3.8.0.dist-info/licenses/LICENSE,sha256=sNNpI0PQ57AW8_XnTAjU5Yw8YBA_DRNkVHrHYpCIhRU,1067
25
+ vitessce-3.8.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any