|
219 | 219 | "- upper_lo_size_threshold (float): upper threshold of large object size\n", |
220 | 220 | "\n", |
221 | 221 | "\"\"\"\n", |
| 222 | + "\n", |
222 | 223 | "RASP.focus_score_diff = 0.2\n", |
223 | 224 | "base_folder = \"/scratch/sycamore-asap/ASAP_Imaging_Data/Jonathan/Sycamore/20250115_DVP_pretreatment_optimisation/slide4_scan2\"\n", |
224 | 225 | "protein_file = os.path.abspath(\n", |
225 | | - " os.path.join(base_folder, \"202050121_DVP_pretreatment_optimisation_S4_scan2 - Position 1 [900]_XY1737471395_Z00_T026_C1.tif\")\n", |
| 226 | + " os.path.join(\n", |
| 227 | + " base_folder,\n", |
| 228 | + " \"202050121_DVP_pretreatment_optimisation_S4_scan2 - Position 1 [900]_XY1737471395_Z00_T026_C1.tif\",\n", |
| 229 | + " )\n", |
226 | 230 | ") # example file, replace as you wish. Always input as the absolute path of a raw string\n", |
227 | 231 | "cell_file = os.path.abspath(\n", |
228 | | - " os.path.join(base_folder, \"202050121_DVP_pretreatment_optimisation_S4_scan2 - Position 1 [900]_XY1737471395_Z00_T026_C0.tif\")\n", |
| 232 | + " os.path.join(\n", |
| 233 | + " base_folder,\n", |
| 234 | + " \"202050121_DVP_pretreatment_optimisation_S4_scan2 - Position 1 [900]_XY1737471395_Z00_T026_C0.tif\",\n", |
| 235 | + " )\n", |
229 | 236 | ") # the real cell-channel companion of protein_file above (same acquisition, C0)\n", |
230 | 237 | "\n", |
231 | 238 | "# Cell-detection parameters: cell masks are detected with a full 3D pipeline\n", |
|
264 | 271 | "RASP.cell_sigma1 = preset[\"cell_sigma1\"]\n", |
265 | 272 | "RASP.cell_sigma2 = preset[\"cell_sigma2\"]\n", |
266 | 273 | "RASP.cell_lower_size_threshold = preset[\"cell_lower_size_threshold\"]\n", |
267 | | - "RASP.cell_upper_size_threshold = preset[\"cell_upper_size_threshold\"] # fine-tune from here if needed\n", |
| 274 | + "RASP.cell_upper_size_threshold = preset[\n", |
| 275 | + " \"cell_upper_size_threshold\"\n", |
| 276 | + "] # fine-tune from here if needed\n", |
268 | 277 | "\n", |
269 | 278 | "RASP.single_image_analysis(\n", |
270 | 279 | " protein_file,\n", |
|
506 | 515 | "- upper_lo_size_threshold (float): upper threshold of large object size\n", |
507 | 516 | "\n", |
508 | 517 | "\"\"\"\n", |
| 518 | + "\n", |
509 | 519 | "RASP.focus_score_diff = 0.2\n", |
510 | 520 | "base_folder = \"/scratch/sycamore-asap/ASAP_Imaging_Data/Main_Survey/20241105_oligomers_in_cells/cingulate/microglia/PD/PD10\"\n", |
511 | 521 | "protein_file = os.path.abspath(\n", |
512 | | - " os.path.join(base_folder, \"20231018_MS_R3_S50_SS1 - Position 1 [9]_XY1697644814_Z00_T0_C1.tif\")\n", |
| 522 | + " os.path.join(\n", |
| 523 | + " base_folder,\n", |
| 524 | + " \"20231018_MS_R3_S50_SS1 - Position 1 [9]_XY1697644814_Z00_T0_C1.tif\",\n", |
| 525 | + " )\n", |
513 | 526 | ") # example file, replace as you wish. Always input as the absolute path of a raw string\n", |
514 | 527 | "cell_file = os.path.abspath(\n", |
515 | | - " os.path.join(base_folder, \"20231018_MS_R3_S50_SS1 - Position 1 [9]_XY1697644814_Z00_T0_C0.tif\")\n", |
| 528 | + " os.path.join(\n", |
| 529 | + " base_folder,\n", |
| 530 | + " \"20231018_MS_R3_S50_SS1 - Position 1 [9]_XY1697644814_Z00_T0_C0.tif\",\n", |
| 531 | + " )\n", |
516 | 532 | ") # the real cell-channel companion of protein_file above (same acquisition, C0)\n", |
517 | 533 | "\n", |
518 | 534 | "# Cell-detection parameters: cell masks are detected with a full 3D pipeline\n", |
|
551 | 567 | "RASP.cell_sigma1 = preset[\"cell_sigma1\"]\n", |
552 | 568 | "RASP.cell_sigma2 = preset[\"cell_sigma2\"]\n", |
553 | 569 | "RASP.cell_lower_size_threshold = preset[\"cell_lower_size_threshold\"]\n", |
554 | | - "RASP.cell_upper_size_threshold = preset[\"cell_upper_size_threshold\"] # fine-tune from here if needed\n", |
| 570 | + "RASP.cell_upper_size_threshold = preset[\n", |
| 571 | + " \"cell_upper_size_threshold\"\n", |
| 572 | + "] # fine-tune from here if needed\n", |
555 | 573 | "\n", |
556 | 574 | "RASP.single_image_analysis(\n", |
557 | 575 | " protein_file,\n", |
|
0 commit comments