|
11 | 11 | "outputs": [], |
12 | 12 | "source": [ |
13 | 13 | "%matplotlib widget\n", |
14 | | - "import sys\n", |
15 | | - "import os\n", |
| 14 | + "\n", |
16 | 15 | "import matplotlib.pyplot as plt\n", |
17 | 16 | "plt.ioff()\n", |
18 | 17 | "import numpy as np\n", |
|
30 | 29 | "output_type": "stream", |
31 | 30 | "text": [ |
32 | 31 | "smFRET analysis software version 2.1\n", |
33 | | - "(git revision 2.1-76-gd791ef7)\n", |
34 | | - "Output version 12\n", |
35 | | - "Using sdt-python version 14.4\n" |
| 32 | + "(git revision 2.1-87-ga66b93a)\n", |
| 33 | + "Output version 13\n", |
| 34 | + "Using sdt-python version 15.2\n" |
36 | 35 | ] |
37 | 36 | } |
38 | 37 | ], |
|
47 | 46 | "outputs": [], |
48 | 47 | "source": [ |
49 | 48 | "# Create an Analyzer instance. This will load the tracking data.\n", |
50 | | - "ana = Analyzer()\n", |
51 | | - "# Add a (\"fret\", \"exc_type\") column declaring the excitation type (donor or\n", |
52 | | - "# acceptor) for each localization.\n", |
53 | | - "ana.flag_excitation_type()" |
| 49 | + "ana = Analyzer(\"tracking-split\")" |
54 | 50 | ] |
55 | 51 | }, |
56 | 52 | { |
|
100 | 96 | { |
101 | 97 | "data": { |
102 | 98 | "application/vnd.jupyter.widget-view+json": { |
103 | | - "model_id": "b78aa53144a04e399b3a05cb841a045e", |
| 99 | + "model_id": "828de3b2d9ae4638881111479aec9652", |
104 | 100 | "version_major": 2, |
105 | 101 | "version_minor": 0 |
106 | 102 | }, |
107 | 103 | "text/plain": [ |
108 | | - "VBox(children=(Dropdown(description='channel', options=('acceptor', 'donor'), value='acceptor'), BoundedIntTex…" |
| 104 | + "VBox(children=(Dropdown(description='channel', options=('donor', 'acceptor'), value='donor'), BoundedIntText(v…" |
109 | 105 | ] |
110 | 106 | }, |
111 | 107 | "metadata": {}, |
|
180 | 176 | { |
181 | 177 | "data": { |
182 | 178 | "application/vnd.jupyter.widget-view+json": { |
183 | | - "model_id": "b5b3f0148c874113b3b7bb73e0cf6e03", |
| 179 | + "model_id": "1c97a41d7f64490faf769dd842633e81", |
184 | 180 | "version_major": 2, |
185 | 181 | "version_minor": 0 |
186 | 182 | }, |
|
237 | 233 | { |
238 | 234 | "data": { |
239 | 235 | "application/vnd.jupyter.widget-view+json": { |
240 | | - "model_id": "e57740ca6ea34ab4a2ce00f7bac026e8", |
| 236 | + "model_id": "f8540c53327d4b64996de2dc5159a7c0", |
241 | 237 | "version_major": 2, |
242 | 238 | "version_minor": 0 |
243 | 239 | }, |
|
336 | 332 | { |
337 | 333 | "data": { |
338 | 334 | "application/vnd.jupyter.widget-view+json": { |
339 | | - "model_id": "485d7207aba54ca8aab6982fc5e7ed4c", |
| 335 | + "model_id": "7a57bc95af7447e78a31a8df4af93dcc", |
340 | 336 | "version_major": 2, |
341 | 337 | "version_minor": 0 |
342 | 338 | }, |
343 | 339 | "text/plain": [ |
344 | | - "Thresholder(children=(Dropdown(description='image', options=('DPPC_ctrl-J4/cells-01_000_.tif', 'DPPC_ctrl-J4/c…" |
| 340 | + "Thresholder(children=(ImageSelector(children=(Dropdown(description='image', options=(('DPPC_ctrl-J4/cells-01_0…" |
345 | 341 | ] |
346 | 342 | }, |
347 | 343 | "metadata": {}, |
|
355 | 351 | }, |
356 | 352 | { |
357 | 353 | "cell_type": "code", |
358 | | - "execution_count": 19, |
| 354 | + "execution_count": 20, |
359 | 355 | "metadata": {}, |
360 | 356 | "outputs": [], |
361 | 357 | "source": [ |
362 | 358 | "# Threshold cell images and select only data within cell-occupied areas\n", |
363 | | - "ana.apply_cell_masks(\"adaptive\", block_size=65, c=-2, smooth=3, method=\"mean\")\n", |
| 359 | + "ana.apply_cell_masks([k for k in ana.analyzers if not k.endswith(\"no-cells\")],\n", |
| 360 | + " \"adaptive\", block_size=65, c=-2, smooth=3, method=\"mean\")\n", |
364 | 361 | "\n", |
365 | 362 | "if plot_keys:\n", |
366 | 363 | " dp.dscatter(\"Underneath cells\")" |
367 | 364 | ] |
368 | 365 | }, |
369 | 366 | { |
370 | 367 | "cell_type": "code", |
371 | | - "execution_count": 20, |
| 368 | + "execution_count": 21, |
372 | 369 | "metadata": {}, |
373 | | - "outputs": [], |
| 370 | + "outputs": [ |
| 371 | + { |
| 372 | + "name": "stderr", |
| 373 | + "output_type": "stream", |
| 374 | + "text": [ |
| 375 | + "/home/lukas/Software/fret-analysis/smfret_analysis/analyzer.py:860: PerformanceWarning: \n", |
| 376 | + "your performance may suffer as PyTables will pickle object types that it cannot\n", |
| 377 | + "map directly to c-types [inferred_type->mixed,key->axis1_level0] [items->None]\n", |
| 378 | + "\n", |
| 379 | + " {(\"fret\", \"exc_type\"): str}))\n" |
| 380 | + ] |
| 381 | + } |
| 382 | + ], |
374 | 383 | "source": [ |
375 | 384 | "# Save results to disk (typically \"filtered-v???.h5\")\n", |
376 | 385 | "ana.save()" |
|
401 | 410 | "name": "python", |
402 | 411 | "nbconvert_exporter": "python", |
403 | 412 | "pygments_lexer": "ipython3", |
404 | | - "version": "3.7.6" |
| 413 | + "version": "3.7.8" |
405 | 414 | }, |
406 | 415 | "nbpresent": { |
407 | 416 | "slides": { |
|
0 commit comments