|
1 | 1 | { |
2 | 2 | "cells": [ |
3 | | - { |
4 | | - "cell_type": "code", |
5 | | - "execution_count": null, |
6 | | - "id": "25408cb3-b6d6-4244-9346-6f3b3166cdb6", |
7 | | - "metadata": {}, |
8 | | - "outputs": [], |
9 | | - "source": [ |
10 | | - "# install histomics_stream\n", |
11 | | - "!pip install -e /tf/notebooks/histomics_stream\n", |
12 | | - "\n", |
13 | | - "# add to system path\n", |
14 | | - "import sys\n", |
15 | | - "\n", |
16 | | - "sys.path.append(\"/tf/notebooks/histomics_stream/\")" |
17 | | - ] |
18 | | - }, |
19 | 3 | { |
20 | 4 | "cell_type": "code", |
21 | 5 | "execution_count": null, |
|
38 | 22 | "\n", |
39 | 23 | "# Add a slide to the study, including slide-wide information with it.\n", |
40 | 24 | "my_slide0 = my_slides[\"Slide_0\"] = {}\n", |
41 | | - "my_slide0[\"filename\"] = \"/tf/notebooks/histomics_stream/example/TCGA-BH-A0BZ-01Z-00-DX1.45EB3E93-A871-49C6-9EAE-90D98AE01913.svs\"\n", |
42 | | - "my_slide0[\"slide_name\"] = \"TCGA-BH-A0BZ-01Z-00-DX1\"\n", |
43 | | - "my_slide0[\"slide_group\"] = \"TCGA-BH-A0BZ\"\n", |
| 25 | + "my_slide0[\"filename\"] = \"TA232.svs\"\n", |
| 26 | + "my_slide0[\"slide_name\"] = \"TA232\"\n", |
| 27 | + "my_slide0[\"slide_group\"] = \"MYC\"\n", |
44 | 28 | "my_slide0[\"number_pixel_rows_for_chunk\"] = 2048\n", |
45 | 29 | "my_slide0[\"number_pixel_columns_for_chunk\"] = 2048\n", |
46 | 30 | "\n", |
|
88 | 72 | " my_study_tiles_by_grid_and_mask,\n", |
89 | 73 | " number_pixel_overlap_rows_for_tile=0,\n", |
90 | 74 | " number_pixel_overlap_columns_for_tile=0,\n", |
91 | | - " mask_filename=\"/tf/notebooks/histomics_stream/example/TCGA-BH-A0BZ-01Z-00-DX1.45EB3E93-A871-49C6-9EAE-90D98AE01913-mask.png\",\n", |
92 | | - " randomly_select=100,\n", |
| 75 | + " mask_filename=\"TA232-mask.png\",\n", |
| 76 | + " randomly_select=50,\n", |
93 | 77 | ")\n", |
94 | 78 | "# We could apply this to a subset of the slides, but we will apply it to all slides in\n", |
95 | 79 | "# this example.\n", |
|
165 | 149 | "name": "python", |
166 | 150 | "nbconvert_exporter": "python", |
167 | 151 | "pygments_lexer": "ipython3", |
168 | | - "version": "3.8.0" |
| 152 | + "version": "3.8.10" |
169 | 153 | } |
170 | 154 | }, |
171 | 155 | "nbformat": 4, |
|
0 commit comments