Skip to content

Commit 702478c

Browse files
committed
Update nb
1 parent b8cfb59 commit 702478c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/notebooks/widget_plugin_spatial-query.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
" ViewType as vt,\n",
3131
" CoordinationType as ct,\n",
3232
" CoordinationLevel as CL,\n",
33+
" hconcat,\n",
34+
" vconcat,\n",
3335
")\n",
3436
"from vitessce.widget_plugins import SpatialQueryPlugin"
3537
]
@@ -60,7 +62,8 @@
6062
" os.makedirs(join(\"data\"), exist_ok=True)\n",
6163
" if not isdir(join(\"data\", \"HBM987_KWLK_254\")):\n",
6264
" os.makedirs(join(\"data\", \"HBM987_KWLK_254\"), exist_ok=True)\n",
63-
" urlretrieve('https://assets.hubmapconsortium.org/0a21f3fa27109790483f2a0729be53de/secondary_analysis.h5ad', adata_path)"
65+
" if not isfile(adata_path):\n",
66+
" urlretrieve('https://assets.hubmapconsortium.org/0a21f3fa27109790483f2a0729be53de/secondary_analysis.h5ad', adata_path)"
6467
]
6568
},
6669
{
@@ -115,6 +118,8 @@
115118
"sets_view = vc.add_view(\"obsSets\", dataset=dataset)\n",
116119
"features_view = vc.add_view(\"featureList\", dataset=dataset)\n",
117120
"sq_view = vc.add_view(\"spatialQuery\", dataset=dataset)\n",
121+
"sq_heatmap = vc.add_view(\"spatialQueryHeatmap\", dataset=dataset)\n",
122+
"\n",
118123
"\n",
119124
"obs_set_selection_scope, = vc.add_coordination(\"obsSetSelection\",)\n",
120125
"obs_set_selection_scope.set_value(None)\n",
@@ -137,7 +142,7 @@
137142
" ])\n",
138143
"})\n",
139144
"\n",
140-
"vc.layout((spatial_view | (lc_view / features_view)) / (sets_view | sq_view));"
145+
"vc.layout((spatial_view | (lc_view / features_view)) / hconcat(sets_view, sq_heatmap, sq_view, split=[1, 1, 1]));"
141146
]
142147
},
143148
{

0 commit comments

Comments
 (0)