Skip to content

Commit 5ccfae5

Browse files
committed
Move example files to new folder
1 parent 1e87756 commit 5ccfae5

File tree

5 files changed

+258
-14
lines changed

5 files changed

+258
-14
lines changed

demo-october-2022/ROIs_and_FeatureVis.ipynb

Lines changed: 258 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": null,
28+
"execution_count": 1,
2929
"id": "fcf58b17-746c-4295-9fbe-f030567fb349",
3030
"metadata": {},
3131
"outputs": [],
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"cell_type": "code",
45-
"execution_count": null,
45+
"execution_count": 2,
4646
"id": "12dae7d5-0500-4442-a5f8-90dd20399b8a",
4747
"metadata": {},
4848
"outputs": [],
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"cell_type": "code",
57-
"execution_count": null,
57+
"execution_count": 3,
5858
"id": "9de6e678-889a-4a38-b748-6f70335d878a",
5959
"metadata": {},
6060
"outputs": [],
@@ -71,10 +71,129 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": null,
74+
"execution_count": 4,
7575
"id": "017efc23-ae9f-45cf-a713-1631bbccded7",
7676
"metadata": {},
77-
"outputs": [],
77+
"outputs": [
78+
{
79+
"data": {
80+
"text/html": [
81+
"<div>\n",
82+
"<style scoped>\n",
83+
" .dataframe tbody tr th:only-of-type {\n",
84+
" vertical-align: middle;\n",
85+
" }\n",
86+
"\n",
87+
" .dataframe tbody tr th {\n",
88+
" vertical-align: top;\n",
89+
" }\n",
90+
"\n",
91+
" .dataframe thead th {\n",
92+
" text-align: right;\n",
93+
" }\n",
94+
"</style>\n",
95+
"<table border=\"1\" class=\"dataframe\">\n",
96+
" <thead>\n",
97+
" <tr style=\"text-align: right;\">\n",
98+
" <th></th>\n",
99+
" <th>x_micrometer</th>\n",
100+
" <th>y_micrometer</th>\n",
101+
" <th>z_micrometer</th>\n",
102+
" <th>len_x_micrometer</th>\n",
103+
" <th>len_y_micrometer</th>\n",
104+
" <th>len_z_micrometer</th>\n",
105+
" <th>x_micrometer_original</th>\n",
106+
" <th>y_micrometer_original</th>\n",
107+
" </tr>\n",
108+
" <tr>\n",
109+
" <th>field_id</th>\n",
110+
" <th></th>\n",
111+
" <th></th>\n",
112+
" <th></th>\n",
113+
" <th></th>\n",
114+
" <th></th>\n",
115+
" <th></th>\n",
116+
" <th></th>\n",
117+
" <th></th>\n",
118+
" </tr>\n",
119+
" </thead>\n",
120+
" <tbody>\n",
121+
" <tr>\n",
122+
" <th>FOV_1</th>\n",
123+
" <td>-1448.300049</td>\n",
124+
" <td>-1517.699951</td>\n",
125+
" <td>0.0</td>\n",
126+
" <td>416.0</td>\n",
127+
" <td>351.0</td>\n",
128+
" <td>1.0</td>\n",
129+
" <td>-1448.300049</td>\n",
130+
" <td>-1517.699951</td>\n",
131+
" </tr>\n",
132+
" <tr>\n",
133+
" <th>FOV_2</th>\n",
134+
" <td>-1032.300049</td>\n",
135+
" <td>-1517.699951</td>\n",
136+
" <td>0.0</td>\n",
137+
" <td>416.0</td>\n",
138+
" <td>351.0</td>\n",
139+
" <td>1.0</td>\n",
140+
" <td>-1032.300049</td>\n",
141+
" <td>-1517.699951</td>\n",
142+
" </tr>\n",
143+
" <tr>\n",
144+
" <th>FOV_3</th>\n",
145+
" <td>-1448.300049</td>\n",
146+
" <td>-1166.699951</td>\n",
147+
" <td>0.0</td>\n",
148+
" <td>416.0</td>\n",
149+
" <td>351.0</td>\n",
150+
" <td>1.0</td>\n",
151+
" <td>-1448.300049</td>\n",
152+
" <td>-1166.699951</td>\n",
153+
" </tr>\n",
154+
" <tr>\n",
155+
" <th>FOV_4</th>\n",
156+
" <td>-1032.300049</td>\n",
157+
" <td>-1166.699951</td>\n",
158+
" <td>0.0</td>\n",
159+
" <td>416.0</td>\n",
160+
" <td>351.0</td>\n",
161+
" <td>1.0</td>\n",
162+
" <td>-1032.300049</td>\n",
163+
" <td>-1166.699951</td>\n",
164+
" </tr>\n",
165+
" </tbody>\n",
166+
"</table>\n",
167+
"</div>"
168+
],
169+
"text/plain": [
170+
" x_micrometer y_micrometer z_micrometer len_x_micrometer \\\n",
171+
"field_id \n",
172+
"FOV_1 -1448.300049 -1517.699951 0.0 416.0 \n",
173+
"FOV_2 -1032.300049 -1517.699951 0.0 416.0 \n",
174+
"FOV_3 -1448.300049 -1166.699951 0.0 416.0 \n",
175+
"FOV_4 -1032.300049 -1166.699951 0.0 416.0 \n",
176+
"\n",
177+
" len_y_micrometer len_z_micrometer x_micrometer_original \\\n",
178+
"field_id \n",
179+
"FOV_1 351.0 1.0 -1448.300049 \n",
180+
"FOV_2 351.0 1.0 -1032.300049 \n",
181+
"FOV_3 351.0 1.0 -1448.300049 \n",
182+
"FOV_4 351.0 1.0 -1032.300049 \n",
183+
"\n",
184+
" y_micrometer_original \n",
185+
"field_id \n",
186+
"FOV_1 -1517.699951 \n",
187+
"FOV_2 -1517.699951 \n",
188+
"FOV_3 -1166.699951 \n",
189+
"FOV_4 -1166.699951 "
190+
]
191+
},
192+
"execution_count": 4,
193+
"metadata": {},
194+
"output_type": "execute_result"
195+
}
196+
],
78197
"source": [
79198
"# Look at the ROI table\n",
80199
"roi_an = ad.read_zarr(zarr_url / f'{well}/0/tables/{roi_table}')\n",
@@ -84,7 +203,7 @@
84203
},
85204
{
86205
"cell_type": "code",
87-
"execution_count": null,
206+
"execution_count": 5,
88207
"id": "83a88ed0-9400-4550-8e71-8caff424dd04",
89208
"metadata": {},
90209
"outputs": [],
@@ -95,7 +214,7 @@
95214
},
96215
{
97216
"cell_type": "code",
98-
"execution_count": null,
217+
"execution_count": 7,
99218
"id": "e5b72f22-86c7-4801-997c-487728f85c9f",
100219
"metadata": {},
101220
"outputs": [],
@@ -123,7 +242,7 @@
123242
},
124243
{
125244
"cell_type": "code",
126-
"execution_count": null,
245+
"execution_count": 8,
127246
"id": "b6a8391f-de20-4856-8244-47997a486391",
128247
"metadata": {},
129248
"outputs": [],
@@ -137,7 +256,7 @@
137256
},
138257
{
139258
"cell_type": "code",
140-
"execution_count": null,
259+
"execution_count": 9,
141260
"id": "1e6a6a3d-fef0-44d5-8fcf-ef9583f7cc00",
142261
"metadata": {},
143262
"outputs": [],
@@ -149,18 +268,145 @@
149268
},
150269
{
151270
"cell_type": "code",
152-
"execution_count": null,
271+
"execution_count": 10,
153272
"id": "7ccbe7ea-2996-42e2-90e8-80c343052ff1",
154273
"metadata": {},
155-
"outputs": [],
274+
"outputs": [
275+
{
276+
"data": {
277+
"text/html": [
278+
"<div>\n",
279+
"<style scoped>\n",
280+
" .dataframe tbody tr th:only-of-type {\n",
281+
" vertical-align: middle;\n",
282+
" }\n",
283+
"\n",
284+
" .dataframe tbody tr th {\n",
285+
" vertical-align: top;\n",
286+
" }\n",
287+
"\n",
288+
" .dataframe thead th {\n",
289+
" text-align: right;\n",
290+
" }\n",
291+
"</style>\n",
292+
"<table border=\"1\" class=\"dataframe\">\n",
293+
" <thead>\n",
294+
" <tr style=\"text-align: right;\">\n",
295+
" <th></th>\n",
296+
" <th>area</th>\n",
297+
" <th>mean_intensity</th>\n",
298+
" <th>standard_deviation_intensity</th>\n",
299+
" </tr>\n",
300+
" <tr>\n",
301+
" <th>label</th>\n",
302+
" <th></th>\n",
303+
" <th></th>\n",
304+
" <th></th>\n",
305+
" </tr>\n",
306+
" </thead>\n",
307+
" <tbody>\n",
308+
" <tr>\n",
309+
" <th>1</th>\n",
310+
" <td>2128.0</td>\n",
311+
" <td>293.573792</td>\n",
312+
" <td>53.578331</td>\n",
313+
" </tr>\n",
314+
" <tr>\n",
315+
" <th>2</th>\n",
316+
" <td>384.0</td>\n",
317+
" <td>311.109375</td>\n",
318+
" <td>106.931992</td>\n",
319+
" </tr>\n",
320+
" <tr>\n",
321+
" <th>3</th>\n",
322+
" <td>1312.0</td>\n",
323+
" <td>231.229416</td>\n",
324+
" <td>47.511070</td>\n",
325+
" </tr>\n",
326+
" <tr>\n",
327+
" <th>4</th>\n",
328+
" <td>2608.0</td>\n",
329+
" <td>264.913727</td>\n",
330+
" <td>57.151825</td>\n",
331+
" </tr>\n",
332+
" <tr>\n",
333+
" <th>5</th>\n",
334+
" <td>704.0</td>\n",
335+
" <td>387.032684</td>\n",
336+
" <td>176.512741</td>\n",
337+
" </tr>\n",
338+
" <tr>\n",
339+
" <th>...</th>\n",
340+
" <td>...</td>\n",
341+
" <td>...</td>\n",
342+
" <td>...</td>\n",
343+
" </tr>\n",
344+
" <tr>\n",
345+
" <th>2962</th>\n",
346+
" <td>1104.0</td>\n",
347+
" <td>311.662140</td>\n",
348+
" <td>75.626266</td>\n",
349+
" </tr>\n",
350+
" <tr>\n",
351+
" <th>2963</th>\n",
352+
" <td>1104.0</td>\n",
353+
" <td>296.225555</td>\n",
354+
" <td>73.479431</td>\n",
355+
" </tr>\n",
356+
" <tr>\n",
357+
" <th>2964</th>\n",
358+
" <td>736.0</td>\n",
359+
" <td>280.744568</td>\n",
360+
" <td>48.305725</td>\n",
361+
" </tr>\n",
362+
" <tr>\n",
363+
" <th>2965</th>\n",
364+
" <td>624.0</td>\n",
365+
" <td>204.426285</td>\n",
366+
" <td>44.935898</td>\n",
367+
" </tr>\n",
368+
" <tr>\n",
369+
" <th>2966</th>\n",
370+
" <td>304.0</td>\n",
371+
" <td>247.736847</td>\n",
372+
" <td>56.399334</td>\n",
373+
" </tr>\n",
374+
" </tbody>\n",
375+
"</table>\n",
376+
"<p>2966 rows × 3 columns</p>\n",
377+
"</div>"
378+
],
379+
"text/plain": [
380+
" area mean_intensity standard_deviation_intensity\n",
381+
"label \n",
382+
"1 2128.0 293.573792 53.578331\n",
383+
"2 384.0 311.109375 106.931992\n",
384+
"3 1312.0 231.229416 47.511070\n",
385+
"4 2608.0 264.913727 57.151825\n",
386+
"5 704.0 387.032684 176.512741\n",
387+
"... ... ... ...\n",
388+
"2962 1104.0 311.662140 75.626266\n",
389+
"2963 1104.0 296.225555 73.479431\n",
390+
"2964 736.0 280.744568 48.305725\n",
391+
"2965 624.0 204.426285 44.935898\n",
392+
"2966 304.0 247.736847 56.399334\n",
393+
"\n",
394+
"[2966 rows x 3 columns]"
395+
]
396+
},
397+
"execution_count": 10,
398+
"metadata": {},
399+
"output_type": "execute_result"
400+
}
401+
],
156402
"source": [
157403
"feature_df = nuclei_an.to_df()\n",
158404
"feature_df[['area', 'mean_intensity', 'standard_deviation_intensity']]"
159405
]
160406
},
161407
{
162408
"cell_type": "code",
163-
"execution_count": null,
409+
"execution_count": 11,
164410
"id": "3d843d31-3f25-4553-b8b2-a447bc95e88e",
165411
"metadata": {},
166412
"outputs": [],

demo-october-2022/example_2x2_cardio_fmi/.fractal.env

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)