Skip to content

Commit 1fb78ad

Browse files
committed
Updates
1 parent 9f13498 commit 1fb78ad

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

docs/notebooks/spatial_data_xenium_morton.ipynb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"source": [
7171
"data_dir = \"data\"\n",
7272
"zip_filepath = join(data_dir, \"xenium_rep1_io.spatialdata.zarr.zip\")\n",
73-
"spatialdata_filepath = join(data_dir, \"xenium_rep1_io2.spatialdata.zarr\")"
73+
"spatialdata_filepath = join(data_dir, \"xenium_rep1_io.spatialdata.zarr\")"
7474
]
7575
},
7676
{
@@ -313,7 +313,8 @@
313313
" image_path=\"images/morphology_focus\",\n",
314314
" table_path=\"tables/table\",\n",
315315
" obs_feature_matrix_path=\"tables/table/X\",\n",
316-
" obs_spots_path=\"shapes/cell_circles\",\n",
316+
" #obs_spots_path=\"shapes/cell_circles\",\n",
317+
" obs_segmentations_path=\"shapes/cell_boundaries\",\n",
317318
" coordinate_system=\"global\",\n",
318319
" coordination_values={\n",
319320
" # The following tells Vitessce to consider each observation as a \"spot\"\n",
@@ -339,11 +340,21 @@
339340
"layer_controller = vc.add_view(\"layerControllerBeta\", dataset=dataset)\n",
340341
"obs_sets = vc.add_view(\"obsSets\", dataset=dataset)\n",
341342
"\n",
343+
"\"\"\"\n",
342344
"vc.link_views_by_dict([spatial, layer_controller], {\n",
343345
" 'spotLayer': CL([{\n",
344346
" 'obsType': 'cell',\n",
345347
" }]),\n",
346348
"}, scope_prefix=get_initial_coordination_scope_prefix(\"A\", \"obsSpots\"))\n",
349+
"\"\"\"\n",
350+
"\n",
351+
"vc.link_views_by_dict([spatial, layer_controller], {\n",
352+
" 'segmentationLayer': CL([{\n",
353+
" 'segmentationChannel': CL([{\n",
354+
" 'obsType': 'cell',\n",
355+
" }]),\n",
356+
" }]),\n",
357+
"}, scope_prefix=get_initial_coordination_scope_prefix(\"A\", \"obsSegmentations\"))\n",
347358
"\n",
348359
"vc.link_views_by_dict([spatial, layer_controller], {\n",
349360
" 'pointLayer': CL([{\n",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "vitessce"
7-
version = "3.8.4"
7+
version = "3.9.0"
88
authors = [
99
{ name="Mark Keller", email="mark_keller@hms.harvard.edu" },
1010
]

src/vitessce/widget.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ class VitessceWidget(anywidget.AnyWidget):
796796

797797
next_port = DEFAULT_PORT
798798

799-
js_package_version = Unicode('3.9.9').tag(sync=True)
799+
js_package_version = Unicode('3.9.10').tag(sync=True)
800800
js_dev_mode = Bool(False).tag(sync=True)
801801
custom_js_url = Unicode('').tag(sync=True)
802802
plugin_esm = List(trait=Unicode(''), default_value=[]).tag(sync=True)
@@ -809,7 +809,7 @@ class VitessceWidget(anywidget.AnyWidget):
809809

810810
store_urls = List(trait=Unicode(''), default_value=[]).tag(sync=True)
811811

812-
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.9.9', 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):
812+
def __init__(self, config, height=600, theme='auto', uid=None, port=None, proxy=False, js_package_version='3.9.10', 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):
813813
"""
814814
Construct a new Vitessce widget. Not intended to be instantiated directly; instead, use ``VitessceConfig.widget``.
815815
@@ -1024,7 +1024,7 @@ async def _dispatch_command(self, msg: dict, buffers: list[bytes]) -> None:
10241024
# Launch Vitessce using plain HTML representation (no ipywidgets)
10251025

10261026

1027-
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.9', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, page_mode=False, page_esm=None, server_host=None):
1027+
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.10', js_dev_mode=False, custom_js_url='', plugins=None, remount_on_uid_change=True, page_mode=False, page_esm=None, server_host=None):
10281028
from IPython.display import display, HTML
10291029
uid_str = "vitessce" + get_uid_str(uid)
10301030

0 commit comments

Comments
 (0)