Skip to content

Commit 0cb1326

Browse files
committed
Update 04
1 parent 75dfc09 commit 0cb1326

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

notebooks/04-Coordinated-Multiple-Views.ipynb

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -617,45 +617,6 @@
617617
"- Link the zoom levels of the two spatial views.\n",
618618
"- Link spot-layer properties of both spatial views (opacity, filled/stroked, stroke width, etc.)"
619619
]
620-
},
621-
{
622-
"cell_type": "code",
623-
"execution_count": null,
624-
"id": "2bb228b0",
625-
"metadata": {},
626-
"outputs": [],
627-
"source": [
628-
"# Exercise 3 — your answer here\n",
629-
"vc4 = VitessceConfig(schema_version=\"1.0.18\", name=\"Side-by-side gene comparison\")\n",
630-
"\n",
631-
"wrapper4 = SpatialDataWrapper(\n",
632-
" sdata_path=sdata_filepath,\n",
633-
" image_path=\"images/ST8059050_hires_image\",\n",
634-
" obs_spots_path=\"shapes/ST8059050\",\n",
635-
" table_path=\"tables/table\",\n",
636-
" obs_feature_matrix_path=\"tables/table/X\",\n",
637-
" region=\"ST8059050\",\n",
638-
" coordinate_system=\"global\",\n",
639-
" coordination_values={\"obsType\": \"spot\"},\n",
640-
")\n",
641-
"dataset4 = vc4.add_dataset(name=\"Visium\").add_object(wrapper4)\n",
642-
"\n",
643-
"spatial_a = vc4.add_view(\"spatialBeta\", dataset=dataset4)\n",
644-
"spatial_b = vc4.add_view(\"spatialBeta\", dataset=dataset4)\n",
645-
"\n",
646-
"# TODO: add separate featureSelection scopes for each view\n",
647-
"# [scope_a] = vc4.add_coordination(\"featureSelection\")\n",
648-
"# scope_a.set_value([\"???\"])\n",
649-
"# [scope_b] = vc4.add_coordination(\"featureSelection\")\n",
650-
"# scope_b.set_value([\"???\"])\n",
651-
"# spatial_a.use_coordination(scope_a)\n",
652-
"# spatial_b.use_coordination(scope_b)\n",
653-
"\n",
654-
"vc4.link_views([spatial_a, spatial_b], [\"obsColorEncoding\", \"obsType\"], [\"geneSelection\", wrapper4.obs_type_label])\n",
655-
"\n",
656-
"vc4.layout(spatial_a | spatial_b)\n",
657-
"vc4.widget()"
658-
]
659620
}
660621
],
661622
"metadata": {

0 commit comments

Comments
 (0)