|
10 | 10 | }, |
11 | 11 | { |
12 | 12 | "cell_type": "code", |
13 | | - "execution_count": 6, |
| 13 | + "execution_count": 1, |
14 | 14 | "id": "b81ab32e", |
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [ |
17 | 17 | { |
18 | 18 | "name": "stdout", |
19 | 19 | "output_type": "stream", |
20 | 20 | "text": [ |
21 | | - "The autoreload extension is already loaded. To reload it, use:\n", |
22 | | - " %reload_ext autoreload\n", |
23 | 21 | "env: ANYWIDGET_HMR=1\n" |
24 | 22 | ] |
| 23 | + }, |
| 24 | + { |
| 25 | + "name": "stderr", |
| 26 | + "output_type": "stream", |
| 27 | + "text": [ |
| 28 | + "/Users/feni/Documents/celldega/dega/lib/python3.12/site-packages/h5py/__init__.py:36: UserWarning: h5py is running against HDF5 1.14.5 when it was built against 1.14.6, this may cause problems\n", |
| 29 | + " _warn((\"h5py is running against HDF5 {0} when it was built against {1}, \"\n" |
| 30 | + ] |
25 | 31 | } |
26 | 32 | ], |
27 | 33 | "source": [ |
|
42 | 48 | }, |
43 | 49 | { |
44 | 50 | "cell_type": "code", |
45 | | - "execution_count": 7, |
| 51 | + "execution_count": null, |
46 | 52 | "id": "13350680", |
47 | 53 | "metadata": {}, |
48 | 54 | "outputs": [ |
|
51 | 57 | "output_type": "stream", |
52 | 58 | "text": [ |
53 | 59 | "Starting preprocessing for sample: Xenium_V1_human_Pancreas_FFPE_outs\n", |
| 60 | + "Created directory: data/landscape_files/Xenium_V1_human_Pancreas_FFPE_outs_test\n", |
54 | 61 | "\n", |
55 | 62 | "========Unzip and extract Xenium-related files========\n", |
56 | 63 | "All files have been successfully extracted or skipped.\n", |
|
59 | 66 | "Transformation matrix saved to 'data/landscape_files/Xenium_V1_human_Pancreas_FFPE_outs_test/micron_to_image_transform.csv'.\n", |
60 | 67 | "\n", |
61 | 68 | "========Check if all required files or directories exist========\n", |
62 | | - "All required files or directories for technology 'Xenium' are present in 'data/raw/Xenium_V1_human_Pancreas_FFPE_outs'.\n", |
| 69 | + "All required files or directories for technology 'Xenium' are present in 'data/xenium_data/Xenium_V1_human_Pancreas_FFPE_outs'.\n", |
63 | 70 | "\n", |
64 | 71 | "========Make meta cells in pixel space========\n", |
65 | 72 | "Done.\n", |
|
71 | 78 | "name": "stderr", |
72 | 79 | "output_type": "stream", |
73 | 80 | "text": [ |
74 | | - "/Users/whuan/dev/celldega/src/celldega/pre/__init__.py:213: PerformanceWarning: Concatenating sparse arrays with multiple fill values: '[True, False]'. Picking the first and converting the rest.\n", |
| 81 | + "/Users/feni/Documents/celldega/src/celldega/pre/__init__.py:213: PerformanceWarning: Concatenating sparse arrays with multiple fill values: '[True, False]'. Picking the first and converting the rest.\n", |
75 | 82 | " df_sig = df_sig.dropna(axis=1, how=\"all\")\n" |
76 | 83 | ] |
77 | 84 | }, |
|
112 | 119 | "Cell clusters and meta cluster files created successfully.\n", |
113 | 120 | "\n", |
114 | 121 | "========Generating image tiles========\n", |
115 | | - "------ xenium\n", |
116 | | - "generating dapi image tiles ...\n", |
117 | | - "Image tiles created successfully.\n", |
118 | | - "\n", |
119 | | - "========Generating transcript tiles========\n" |
120 | | - ] |
121 | | - }, |
122 | | - { |
123 | | - "name": "stderr", |
124 | | - "output_type": "stream", |
125 | | - "text": [ |
126 | | - "Processing chunks: 100%|██████████| 81/81 [00:00<00:00, 1101.60it/s]\n", |
127 | | - "Processing coarse tiles: 84tile [00:08, 9.64tile/s]\n" |
128 | | - ] |
129 | | - }, |
130 | | - { |
131 | | - "name": "stdout", |
132 | | - "output_type": "stream", |
133 | | - "text": [ |
134 | | - "tile bounds: {'x_min': 0, 'x_max': 34126.65, 'y_min': 0, 'y_max': 13744.4}\n", |
135 | | - "\n", |
136 | | - "========Generating boundary tiles========\n", |
137 | | - "technology Xenium\n" |
138 | | - ] |
139 | | - }, |
140 | | - { |
141 | | - "name": "stderr", |
142 | | - "output_type": "stream", |
143 | | - "text": [ |
144 | | - "Processing coarse tiles: 100%|██████████| 14/14 [00:10<00:00, 1.35it/s]" |
145 | | - ] |
146 | | - }, |
147 | | - { |
148 | | - "name": "stdout", |
149 | | - "output_type": "stream", |
150 | | - "text": [ |
151 | | - "Done.\n", |
152 | | - "\n", |
153 | | - "========Save landscape parameters========\n", |
154 | | - "Done.\n", |
155 | | - "Preprocessing completed successfully.\n" |
156 | | - ] |
157 | | - }, |
158 | | - { |
159 | | - "name": "stderr", |
160 | | - "output_type": "stream", |
161 | | - "text": [ |
162 | | - "\n" |
| 122 | + "------ xenium\n" |
163 | 123 | ] |
164 | 124 | } |
165 | 125 | ], |
166 | 126 | "source": [ |
167 | 127 | "sample = 'Xenium_V1_human_Pancreas_FFPE_outs'\n", |
168 | | - "data_dir = f'data/raw/{sample}'\n", |
| 128 | + "data_dir = f'data/xenium_data/'\n", |
169 | 129 | "path_landscape_files=f'data/landscape_files/{sample}_test'\n", |
170 | 130 | "\n", |
171 | 131 | "tile_size=250\n", |
|
394 | 354 | ], |
395 | 355 | "metadata": { |
396 | 356 | "kernelspec": { |
397 | | - "display_name": "celldega_env", |
| 357 | + "display_name": "Python 3 (ipykernel)", |
398 | 358 | "language": "python", |
399 | 359 | "name": "python3" |
400 | 360 | }, |
|
408 | 368 | "name": "python", |
409 | 369 | "nbconvert_exporter": "python", |
410 | 370 | "pygments_lexer": "ipython3", |
411 | | - "version": "3.12.9" |
| 371 | + "version": "3.12.7" |
412 | 372 | }, |
413 | 373 | "toc": { |
414 | 374 | "base_numbering": 1, |
|
0 commit comments