Skip to content

Commit 17db817

Browse files
committed
revert to full_image
1 parent be2bb3e commit 17db817

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

notebooks/examples/technology_visium_hd.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@
190190
"source": [
191191
"from spatialdata import get_extent\n",
192192
"\n",
193-
"data_extent = get_extent(sdata[\"Visium_HD_Mouse_Small_Intestine_full_image\"], coordinate_system=\"global\")\n",
193+
"data_extent = get_extent(\n",
194+
" sdata[\"Visium_HD_Mouse_Small_Intestine_full_image\"], coordinate_system=\"Visium_HD_Mouse_Small_Intestine\"\n",
195+
")\n",
194196
"data_extent"
195197
]
196198
},
@@ -208,7 +210,7 @@
208210
" min_coordinate=[data_extent[\"x\"][0], data_extent[\"y\"][0]],\n",
209211
" max_coordinate=[data_extent[\"x\"][1], data_extent[\"y\"][1]],\n",
210212
" axes=(\"x\", \"y\"),\n",
211-
" target_coordinate_system=\"global\",\n",
213+
" target_coordinate_system=\"Visium_HD_Mouse_Small_Intestine\",\n",
212214
")\n",
213215
"sdata[\"queried_cytassist\"] = queried_cytassist"
214216
]
@@ -254,10 +256,10 @@
254256
"\n",
255257
"\n",
256258
"crop0(sdata).pl.render_images(\"Visium_HD_Mouse_Small_Intestine_full_image\").pl.show(\n",
257-
" ax=axes[0], title=\"Full image\", coordinate_systems=\"global\"\n",
259+
" ax=axes[0], title=\"Full image\", coordinate_systems=\"Visium_HD_Mouse_Small_Intestine\"\n",
258260
")\n",
259261
"crop0(sdata).pl.render_images(\"queried_cytassist\").pl.show(\n",
260-
" ax=axes[1], title=\"CytAssit image\", coordinate_systems=\"global\"\n",
262+
" ax=axes[1], title=\"CytAssit image\", coordinate_systems=\"Visium_HD_Mouse_Small_Intestine\"\n",
261263
")"
262264
]
263265
},
@@ -601,7 +603,7 @@
601603
"gene_name = \"AA986860\"\n",
602604
"\n",
603605
"for bin_size in [16, 8]:\n",
604-
" sdata_small.pl.render_images(\"Visium_HD_Mouse_Small_Intestine_hires_image\").pl.render_shapes(\n",
606+
" sdata_small.pl.render_images(\"Visium_HD_Mouse_Small_Intestine_full_image\").pl.render_shapes(\n",
605607
" f\"Visium_HD_Mouse_Small_Intestine_square_{bin_size:03}um\", color=gene_name, cmap=new_cmap\n",
606608
" ).pl.show(coordinate_systems=\"Visium_HD_Mouse_Small_Intestine\", title=f\"bin_size={bin_size}µm\", figsize=(10, 10))"
607609
]
@@ -641,7 +643,7 @@
641643
" )\n",
642644
"\n",
643645
"\n",
644-
"crop1(sdata_small).pl.render_images(\"Visium_HD_Mouse_Small_Intestine_hires_image\").pl.render_shapes(\n",
646+
"crop1(sdata_small).pl.render_images(\"Visium_HD_Mouse_Small_Intestine_full_image\").pl.render_shapes(\n",
645647
" \"Visium_HD_Mouse_Small_Intestine_square_002um\", color=gene_name, cmap=new_cmap, method=\"matplotlib\"\n",
646648
").pl.show(coordinate_systems=\"Visium_HD_Mouse_Small_Intestine\", title=\"bin_size=2µm\", figsize=(10, 10))"
647649
]
@@ -772,7 +774,7 @@
772774
"outputs": [],
773775
"source": [
774776
"%%time\n",
775-
"crop1(sdata).pl.render_images(\"Visium_HD_Mouse_Small_Intestine_hires_image\").pl.render_shapes(\n",
777+
"crop0(sdata).pl.render_images(\"Visium_HD_Mouse_Small_Intestine_full_image\").pl.render_shapes(\n",
776778
" \"Visium_HD_Mouse_Small_Intestine_square_016um\", color=\"Cluster\"\n",
777779
").pl.show(coordinate_systems=\"Visium_HD_Mouse_Small_Intestine\", title=\"bin_size=016µm\", figsize=(10, 10))"
778780
]

0 commit comments

Comments
 (0)