Skip to content

Commit a7bc18e

Browse files
committed
Add 3D ROI loading example
1 parent 286050a commit a7bc18e

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

demo-october-2022/ROIs_and_FeatureVis.ipynb

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"import anndata as ad\n",
3838
"import dask.array as da\n",
3939
"import numpy as np\n",
40+
"import pandas as pd\n",
41+
"import matplotlib.pyplot as plt\n",
42+
"\n",
4043
"from utils_roi_loading import convert_ROI_table_to_indices, load_label_roi, load_intensity_roi, prepare_feature_vis"
4144
]
4245
},
@@ -246,13 +249,7 @@
246249
"id": "b6a8391f-de20-4856-8244-47997a486391",
247250
"metadata": {},
248251
"outputs": [],
249-
"source": [
250-
"import pandas as pd\n",
251-
"import napari\n",
252-
"from pathlib import Path\n",
253-
"import matplotlib.pyplot as plt\n",
254-
"import numpy as np"
255-
]
252+
"source": []
256253
},
257254
{
258255
"cell_type": "code",
@@ -409,7 +406,15 @@
409406
"execution_count": 11,
410407
"id": "3d843d31-3f25-4553-b8b2-a447bc95e88e",
411408
"metadata": {},
412-
"outputs": [],
409+
"outputs": [
410+
{
411+
"name": "stderr",
412+
"output_type": "stream",
413+
"text": [
414+
"no parent found for <ome_zarr.reader.Label object at 0x2a9c7da60>: None\n"
415+
]
416+
}
417+
],
413418
"source": [
414419
"colors, label_properties = prepare_feature_vis(feature_df, feature='area')\n",
415420
"label_layer.properties = label_properties\n",
@@ -423,6 +428,24 @@
423428
"metadata": {},
424429
"outputs": [],
425430
"source": []
431+
},
432+
{
433+
"cell_type": "markdown",
434+
"id": "ecd035fb-92e6-47b1-aeca-622670fa9f98",
435+
"metadata": {},
436+
"source": [
437+
"# 3D example"
438+
]
439+
},
440+
{
441+
"cell_type": "code",
442+
"execution_count": null,
443+
"id": "8e76c1b4-21dc-46b2-95b1-4f5c9cdf0272",
444+
"metadata": {},
445+
"outputs": [],
446+
"source": [
447+
"zarr_url = Path('/Users/joel/Desktop/20220928_2x2_Zenodo/20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr')"
448+
]
426449
}
427450
],
428451
"metadata": {

0 commit comments

Comments
 (0)