celldetective 1.3.9.post5__py3-none-any.whl → 1.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- celldetective/__init__.py +0 -3
- celldetective/_version.py +1 -1
- celldetective/events.py +2 -4
- celldetective/exceptions.py +11 -0
- celldetective/extra_properties.py +132 -0
- celldetective/filters.py +7 -1
- celldetective/gui/InitWindow.py +37 -46
- celldetective/gui/__init__.py +3 -9
- celldetective/gui/about.py +19 -15
- celldetective/gui/analyze_block.py +34 -19
- celldetective/gui/base_annotator.py +786 -0
- celldetective/gui/base_components.py +23 -0
- celldetective/gui/classifier_widget.py +86 -94
- celldetective/gui/configure_new_exp.py +163 -46
- celldetective/gui/control_panel.py +76 -146
- celldetective/gui/{signal_annotator.py → event_annotator.py} +533 -1438
- celldetective/gui/generic_signal_plot.py +11 -13
- celldetective/gui/gui_utils.py +54 -23
- celldetective/gui/help/neighborhood.json +2 -2
- celldetective/gui/json_readers.py +5 -4
- celldetective/gui/layouts.py +265 -31
- celldetective/gui/{signal_annotator2.py → pair_event_annotator.py} +433 -635
- celldetective/gui/plot_measurements.py +21 -17
- celldetective/gui/plot_signals_ui.py +125 -72
- celldetective/gui/process_block.py +283 -188
- celldetective/gui/processes/compute_neighborhood.py +594 -0
- celldetective/gui/processes/downloader.py +37 -34
- celldetective/gui/processes/measure_cells.py +19 -8
- celldetective/gui/processes/segment_cells.py +47 -11
- celldetective/gui/processes/track_cells.py +18 -13
- celldetective/gui/seg_model_loader.py +21 -62
- celldetective/gui/settings/__init__.py +7 -0
- celldetective/gui/settings/_settings_base.py +70 -0
- celldetective/gui/{retrain_signal_model_options.py → settings/_settings_event_model_training.py} +54 -109
- celldetective/gui/{measurement_options.py → settings/_settings_measurements.py} +54 -92
- celldetective/gui/{neighborhood_options.py → settings/_settings_neighborhood.py} +10 -13
- celldetective/gui/settings/_settings_segmentation.py +49 -0
- celldetective/gui/{retrain_segmentation_model_options.py → settings/_settings_segmentation_model_training.py} +38 -92
- celldetective/gui/{signal_annotator_options.py → settings/_settings_signal_annotator.py} +78 -103
- celldetective/gui/{btrack_options.py → settings/_settings_tracking.py} +85 -116
- celldetective/gui/styles.py +2 -1
- celldetective/gui/survival_ui.py +49 -95
- celldetective/gui/tableUI.py +53 -25
- celldetective/gui/table_ops/__init__.py +0 -0
- celldetective/gui/table_ops/merge_groups.py +118 -0
- celldetective/gui/thresholds_gui.py +617 -1221
- celldetective/gui/viewers.py +107 -42
- celldetective/gui/workers.py +8 -4
- celldetective/io.py +137 -57
- celldetective/links/zenodo.json +145 -144
- celldetective/measure.py +94 -53
- celldetective/neighborhood.py +342 -268
- celldetective/preprocessing.py +56 -35
- celldetective/regionprops/_regionprops.py +16 -5
- celldetective/relative_measurements.py +50 -29
- celldetective/scripts/analyze_signals.py +4 -1
- celldetective/scripts/measure_cells.py +5 -5
- celldetective/scripts/measure_relative.py +20 -12
- celldetective/scripts/segment_cells.py +4 -10
- celldetective/scripts/segment_cells_thresholds.py +3 -3
- celldetective/scripts/track_cells.py +10 -8
- celldetective/scripts/train_segmentation_model.py +18 -6
- celldetective/signals.py +29 -14
- celldetective/tracking.py +14 -3
- celldetective/utils.py +91 -62
- {celldetective-1.3.9.post5.dist-info → celldetective-1.4.1.dist-info}/METADATA +24 -16
- celldetective-1.4.1.dist-info/RECORD +123 -0
- {celldetective-1.3.9.post5.dist-info → celldetective-1.4.1.dist-info}/WHEEL +1 -1
- tests/gui/__init__.py +0 -0
- tests/gui/test_new_project.py +228 -0
- tests/gui/test_project.py +99 -0
- tests/test_preprocessing.py +2 -2
- celldetective/models/segmentation_effectors/ricm_bf_all_last/config_input.json +0 -79
- celldetective/models/segmentation_effectors/ricm_bf_all_last/ricm_bf_all_last +0 -0
- celldetective/models/segmentation_effectors/ricm_bf_all_last/training_instructions.json +0 -37
- celldetective/models/segmentation_effectors/test-transfer/config_input.json +0 -39
- celldetective/models/segmentation_effectors/test-transfer/test-transfer +0 -0
- celldetective/models/signal_detection/NucCond/classification_loss.png +0 -0
- celldetective/models/signal_detection/NucCond/classifier.h5 +0 -0
- celldetective/models/signal_detection/NucCond/config_input.json +0 -1
- celldetective/models/signal_detection/NucCond/log_classifier.csv +0 -126
- celldetective/models/signal_detection/NucCond/log_regressor.csv +0 -282
- celldetective/models/signal_detection/NucCond/regression_loss.png +0 -0
- celldetective/models/signal_detection/NucCond/regressor.h5 +0 -0
- celldetective/models/signal_detection/NucCond/scores.npy +0 -0
- celldetective/models/signal_detection/NucCond/test_confusion_matrix.png +0 -0
- celldetective/models/signal_detection/NucCond/test_regression.png +0 -0
- celldetective/models/signal_detection/NucCond/validation_confusion_matrix.png +0 -0
- celldetective/models/signal_detection/NucCond/validation_regression.png +0 -0
- celldetective-1.3.9.post5.dist-info/RECORD +0 -129
- tests/test_qt.py +0 -103
- {celldetective-1.3.9.post5.dist-info → celldetective-1.4.1.dist-info}/entry_points.txt +0 -0
- {celldetective-1.3.9.post5.dist-info → celldetective-1.4.1.dist-info/licenses}/LICENSE +0 -0
- {celldetective-1.3.9.post5.dist-info → celldetective-1.4.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
celldetective/__init__.py,sha256=ZygAIkX6Nbjag1czWdQa-yP-GM1mBE_9ss21Xh__JFc,34
|
|
2
|
+
celldetective/__main__.py,sha256=bxTlSvbKhqn3LW_azd2baDCnDsgb37PAP9DfuAJ1_5M,1844
|
|
3
|
+
celldetective/_version.py,sha256=BqOI5y46o1G1RWC9bF1DPL-YM68lGYPmZt1pn6FZFZs,22
|
|
4
|
+
celldetective/events.py,sha256=n15R53c7QZ2wT8gjb0oeNikQbuRBrVVbyNsRCqXjzXA,8166
|
|
5
|
+
celldetective/exceptions.py,sha256=f3VmIYOthWTiqMEV5xQCox2rw5c5e7yog88h-CcV4oI,356
|
|
6
|
+
celldetective/extra_properties.py,sha256=QxXl-zug3NyxZMNTJUsDxo8PHLIRt0AwOFUkTyYBv7E,19987
|
|
7
|
+
celldetective/filters.py,sha256=RhgwDBZ1wcpu1syQikjdVgkH7ln_fVv14IGNRhaAMLM,4637
|
|
8
|
+
celldetective/io.py,sha256=7vCUprvmPa68Vp5BWHqYIJ46MHqamrF74Dc9MvqBXzg,124208
|
|
9
|
+
celldetective/measure.py,sha256=VZibDPYgMtMqIPItoPq1Hhkl6R5gAAHfOpAnUHMe88E,59541
|
|
10
|
+
celldetective/neighborhood.py,sha256=av7fzW3CjK7A5xO9AA1h36S50HzfM-aF9aaXb-uCrV4,60493
|
|
11
|
+
celldetective/preprocessing.py,sha256=YpffYSYZxnd8A0KLfVANEQGWb2I9JW663_aSvZbt3nI,45005
|
|
12
|
+
celldetective/relative_measurements.py,sha256=vQhgkHokUtt2xBpZbR-MHWUukfJ02WbiBsBJqV9A_90,30964
|
|
13
|
+
celldetective/segmentation.py,sha256=WApzoU1s3Ntvp0eIw_pRZXNwCA8LDKC9YoyR52tioz4,30943
|
|
14
|
+
celldetective/signals.py,sha256=-AnJOwU4S4T7y-xaH5vjrau2ZJgYDwFf3JjakdHJMog,112236
|
|
15
|
+
celldetective/tracking.py,sha256=4ngFo5-slTmmOdYCqIjH3gqzQ4e3Zovk_X5P3uFAifQ,40567
|
|
16
|
+
celldetective/utils.py,sha256=R2S1_lAoxhlSgEjuebr9Zs8NiQGwvehTdrzozQYoX7Q,105316
|
|
17
|
+
celldetective/datasets/segmentation_annotations/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
+
celldetective/datasets/signal_annotations/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
+
celldetective/gui/InitWindow.py,sha256=2TUHJbT6qfPvzN63Nx8ld2Dr2StgKY-jWDykeGvNzac,14767
|
|
20
|
+
celldetective/gui/__init__.py,sha256=AWNdszogNhpl0Fn7a6TYGNC11E2T-ZAemORqxyUk3B8,708
|
|
21
|
+
celldetective/gui/about.py,sha256=TaPAAiOrDcyaYQMEZQLQmhNfZH3QKoasIV1gbbPc8iU,1801
|
|
22
|
+
celldetective/gui/analyze_block.py,sha256=ukLlqqooP6UkJG00tZGnNWe3vqjVKj4zhtXcUnjOJj8,3048
|
|
23
|
+
celldetective/gui/base_annotator.py,sha256=hDeYhppFAuRb-h2GkbfQMpUv077rCPzQ3B3a2Y18jRM,25898
|
|
24
|
+
celldetective/gui/base_components.py,sha256=gYC0Gc3axDC241RpjNCXe7UKYG2uCDnMLx7at0kHKjA,768
|
|
25
|
+
celldetective/gui/classifier_widget.py,sha256=J6FBgwa_P5Sw_40Ruh6uQ6Z1-aBwDduOH07E5CxcWoU,20548
|
|
26
|
+
celldetective/gui/configure_new_exp.py,sha256=kYmWCqMK7F4yflS9b05gWvMEAoS1PoNV0siNNITNY1Y,24742
|
|
27
|
+
celldetective/gui/control_panel.py,sha256=GDJaEmE9sWP8dfepvVw8sS1D9oWWMdBAEWVaAb6YFVM,18104
|
|
28
|
+
celldetective/gui/event_annotator.py,sha256=SwX5s98UIzsh-nIvNLBXRfsiLqXHKOjzM37-9Yl76BQ,57110
|
|
29
|
+
celldetective/gui/generic_signal_plot.py,sha256=9IYFKychgjCDeBRJUqyiAZ0bflOBWxk0S1aTQK8R99w,36459
|
|
30
|
+
celldetective/gui/gui_utils.py,sha256=Uf9Qu0aPrbt1GEo0qw_RJCLtR79-R9zUekYYTXXKSs8,40253
|
|
31
|
+
celldetective/gui/json_readers.py,sha256=gDE9ly8x8oMR1id5U--JsOylGPMSmu9xw9wCfxH1stA,3719
|
|
32
|
+
celldetective/gui/layouts.py,sha256=h3xzfPRHM2Zos5v4m9yUl9ah4icrbpTJrdhUQVSF_Ug,60890
|
|
33
|
+
celldetective/gui/pair_event_annotator.py,sha256=fdCqoOtrRFnduPJ_H-xn3s6jNE0iyNt4ikitTGzpzXs,94503
|
|
34
|
+
celldetective/gui/plot_measurements.py,sha256=TQAFIOud8Tzrgm37EFKGd8Aj4rRYOjFk5BeiVstBheQ,51058
|
|
35
|
+
celldetective/gui/plot_signals_ui.py,sha256=op5vMKJ4nV_Hoys4SRlTJhCHb-HXnQYCAFhtIhxGOC4,21060
|
|
36
|
+
celldetective/gui/process_block.py,sha256=od5I_ZM1_GE_H5ApDB_l9_o4nWbWOhk5pZ1VGsNGLIw,75103
|
|
37
|
+
celldetective/gui/seg_model_loader.py,sha256=xTzJ02DJxBoyqeanmEybheVbn8uoxP1eay2odZbGH04,18108
|
|
38
|
+
celldetective/gui/styles.py,sha256=3yYr2-fMxGczsjPqlZ7VRfLRoWypWhsHimPALMvbKSU,5138
|
|
39
|
+
celldetective/gui/survival_ui.py,sha256=e5SqthRgylqwD9EZjJQ1pnJ0CAMwuW8VrMtgnUDdgOE,12296
|
|
40
|
+
celldetective/gui/tableUI.py,sha256=LWfq63N1sdTUjYaCKhZQbjJiqAOhliRnf8v4LytYBek,59249
|
|
41
|
+
celldetective/gui/thresholds_gui.py,sha256=d_vncQO837yPw9OMTJmrT0zl02G3___ynUHh1uU8k7A,29235
|
|
42
|
+
celldetective/gui/viewers.py,sha256=ZMbgVeVXGnYJHlYpiCzHoToB_HowpSnMc6za9f3C2n4,50019
|
|
43
|
+
celldetective/gui/workers.py,sha256=1sdRDwBsGJjjTNsf8YqnKuf2m6Fa5E7YFLnncFWqbjU,4298
|
|
44
|
+
celldetective/gui/help/DL-segmentation-strategy.json,sha256=PZD9xXjrwbX3TiudHJPuvcyZD28o4k-fVgeTd7dBKzI,1583
|
|
45
|
+
celldetective/gui/help/Threshold-vs-DL.json,sha256=rrFnZT2DhyS7g1nIDWeUV8-HH7M2Sv8D7sDCGBU1M_0,934
|
|
46
|
+
celldetective/gui/help/cell-populations.json,sha256=e5yJp75rKsYkGVuO8stXxU1TznkADw71djdMUs21gd8,1200
|
|
47
|
+
celldetective/gui/help/exp-structure.json,sha256=61zZAHms7se4Vtuma904xKMsNlWuTOIeF24cbwQiYQg,1973
|
|
48
|
+
celldetective/gui/help/feature-btrack.json,sha256=wvKFiM38AvfQ2QsePDjTflOovqq04CWYcK2QXZhHs-A,693
|
|
49
|
+
celldetective/gui/help/neighborhood.json,sha256=h-aFuQUFM1mnjZPLE0eR6oaRGcRFLeK8ilTXICqkzzg,1259
|
|
50
|
+
celldetective/gui/help/prefilter-for-segmentation.json,sha256=NEL6O2nj_l8ImjMzzX6qqg7U9QV01sgZMFvkGHUiG4E,791
|
|
51
|
+
celldetective/gui/help/preprocessing.json,sha256=M-AxW6zYB5oDiQdoc9wcky8C5p0m6uv-CJMLpUVboew,4716
|
|
52
|
+
celldetective/gui/help/propagate-classification.json,sha256=F7Ir1mtgRVTXWLN7n3ny3vrU01LFNeDh5dN2QBIXHqE,1227
|
|
53
|
+
celldetective/gui/help/track-postprocessing.json,sha256=VaGd8EEkA33OL-EI3NXWZ8yHeWWyUeImDF5yAjsVYGA,3990
|
|
54
|
+
celldetective/gui/help/tracking.json,sha256=yIAoOToqCSQ_XF4gwEZCcyXcvQ3mROju263ZPDvlUyY,776
|
|
55
|
+
celldetective/gui/processes/compute_neighborhood.py,sha256=J0T1DaG58p1nB0_WseVbl3AL5jb76W0hzFaSNci5EDU,29181
|
|
56
|
+
celldetective/gui/processes/downloader.py,sha256=jnNitmQ9xUCGJHSvr3Myts5soe6rdYDBx_AGJKr1AWk,3406
|
|
57
|
+
celldetective/gui/processes/measure_cells.py,sha256=XAw6SnT14EXfJXZ01bQ2FmPLGYWJHnX9Nko25RH0ZIo,13388
|
|
58
|
+
celldetective/gui/processes/segment_cells.py,sha256=nhoeOQ8YbIWpFZl-I6Ig8oFQpupvufwUAXXhDXTfLNE,12668
|
|
59
|
+
celldetective/gui/processes/track_cells.py,sha256=4t6UZE_dyiryDH9e-G6jdINzdXHXi8BTta2v1gI0w3Q,10165
|
|
60
|
+
celldetective/gui/processes/train_segmentation_model.py,sha256=bvcPG19hBjhNY9hd6Ch5_wk2FOJYQg97Azoz4RKeP-0,10776
|
|
61
|
+
celldetective/gui/processes/train_signal_model.py,sha256=qqqkq9gdvNyvycYkmzWgRXWvsbEozyzNWP_POGvnlIs,3816
|
|
62
|
+
celldetective/gui/settings/__init__.py,sha256=sW3VeD5sWpHz7cN5-jLI7N10TaamEJuHI95gC9lkMDk,448
|
|
63
|
+
celldetective/gui/settings/_settings_base.py,sha256=Y7kjMyAZyjVoPFxvlBjOR1fpKWRqej1rsPMyHtN8Sb8,2281
|
|
64
|
+
celldetective/gui/settings/_settings_event_model_training.py,sha256=TSmd6_Oxw5qKtbawV2U-eG2IYu3HW2NRgXEfe-7cpRE,20219
|
|
65
|
+
celldetective/gui/settings/_settings_measurements.py,sha256=fV9nYi1IMQmHLDgZznjtg0OQGCZAKp0Pd6eNYIT0gdw,38482
|
|
66
|
+
celldetective/gui/settings/_settings_neighborhood.py,sha256=8ef6bmJblHFK68HUITxaKuyeMmdT59rx8fDvZQ3wqBo,19647
|
|
67
|
+
celldetective/gui/settings/_settings_segmentation.py,sha256=6DihD1mk-dN4Sstdth1iJ-0HR34rTVlTHP-pXUh_rY0,1901
|
|
68
|
+
celldetective/gui/settings/_settings_segmentation_model_training.py,sha256=dPcRjIkJTob-F7_FOIjDKVChPkot3ACJ2MLEKTfuTn8,21837
|
|
69
|
+
celldetective/gui/settings/_settings_signal_annotator.py,sha256=s-csxb2JAJoUO9QTHSkt-XyNf3yk0ubW4yQm5eSdv8U,10223
|
|
70
|
+
celldetective/gui/settings/_settings_tracking.py,sha256=pOdShRqHuq84woVuCf_6D4K9Xv4vcHdOUORuipZiU_g,42898
|
|
71
|
+
celldetective/gui/table_ops/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
72
|
+
celldetective/gui/table_ops/merge_groups.py,sha256=rWwmPBuUeLeAkJcI9ISW5lhmM1L6oQo5lAVc0-D05B4,4059
|
|
73
|
+
celldetective/icons/logo-large.png,sha256=FXSwV3u6zEKcfpuSn4unnqB0oUnN9cHqQ9BCKWytrpg,36631
|
|
74
|
+
celldetective/icons/logo.png,sha256=wV2OS8_dU5Td5cgdPbCOU3JpMpTwNuYLnfVcnQX0tJA,2437
|
|
75
|
+
celldetective/icons/signals_icon.png,sha256=vEiKoqWTtN0-uJgVqtAlwCuP-f4QeWYOlO3sdp2tg2w,3969
|
|
76
|
+
celldetective/icons/splash-test.png,sha256=W9smcuuwJUF9DU-rz4aACx7_rCmGRsxYUGPBDlDnrJk,17523
|
|
77
|
+
celldetective/icons/splash.png,sha256=J_1jPJylxwHGzGF1xCGocc-BmylHtHTII9VJSLKnezY,17895
|
|
78
|
+
celldetective/icons/splash0.png,sha256=qVXsrYUinm5g6-vbHcqwyjh8SIqs9lEqPWnPa1WijaQ,14233
|
|
79
|
+
celldetective/icons/survival2.png,sha256=8zsualD7d9VPAecoFA4Om9TFARErqpJzMg6U7XANXf4,4479
|
|
80
|
+
celldetective/icons/vignette_signals2.png,sha256=hsVOdQDpEfMGM45aaSeacEm3lvxbquRKKYutiS9qoS0,20743
|
|
81
|
+
celldetective/icons/vignette_signals2.svg,sha256=muGNcQudV1jG-bmFd9FwV-Wb8PcrRV5osdZ7pHR7Ekk,5947
|
|
82
|
+
celldetective/links/zenodo.json,sha256=3OSml-j5FbCY5B24t7LZ7raXyVA1834osurmaEckIP8,34511
|
|
83
|
+
celldetective/models/pair_signal_detection/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
|
+
celldetective/models/segmentation_effectors/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
|
+
celldetective/models/segmentation_generic/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
|
+
celldetective/models/segmentation_targets/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
|
+
celldetective/models/signal_detection/blank,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
88
|
+
celldetective/models/tracking_configs/biased_motion.json,sha256=RZa-ZCP4jbFtMVz-M4lf1LtqmAvBrUxIhhudNiU1jtY,1782
|
|
89
|
+
celldetective/models/tracking_configs/mcf7.json,sha256=iDjb8i6yxs0GleW39dvY3Ld5bZJatlXJrwI8PG3vCT0,1780
|
|
90
|
+
celldetective/models/tracking_configs/no_z_motion.json,sha256=b4RWOJ0w6Y2e0vJYwKMyOexedeL2eA8fEDbSzbNmB4A,2702
|
|
91
|
+
celldetective/models/tracking_configs/ricm.json,sha256=L-vmwCR1f89U-qnH2Ms0cBfPFR_dxIWoe2ccH8V-QBA,2727
|
|
92
|
+
celldetective/models/tracking_configs/ricm2.json,sha256=DDjJ6ScYcDWvlsy7ujPID8v8H28vcNcMuZmNR8XmGxo,2718
|
|
93
|
+
celldetective/regionprops/__init__.py,sha256=ohe9vC7j4lnpKnGXidVo1PVfoQfC8TqCuHTNo8rXmdg,44
|
|
94
|
+
celldetective/regionprops/_regionprops.py,sha256=sNa8Wdvq8lL1VLxmTIH-AJdJqJY3ia7g1EdT8IXINwM,10288
|
|
95
|
+
celldetective/regionprops/props.json,sha256=sCwACmbh0n-JAw9eve9yV85REukoMBJLsRjxCwTRMm8,2424
|
|
96
|
+
celldetective/scripts/analyze_signals.py,sha256=WfBqWFKzPpJNkkgLSWwpmpqFO67ZSewdxe2NCIXxEyQ,2190
|
|
97
|
+
celldetective/scripts/measure_cells.py,sha256=db6K0wO_uPbBDNlqK-9OOe1YMGTQe0eolWcoDyMKyh0,11803
|
|
98
|
+
celldetective/scripts/measure_relative.py,sha256=Tv0tagL07l4P6_0YNLN5-1hVw2Qq--FgAM2XfSLvR-Q,4091
|
|
99
|
+
celldetective/scripts/segment_cells.py,sha256=odadT16C4z3NIrTyiAz3DA5547VLJqhJax0xWmV05T8,6949
|
|
100
|
+
celldetective/scripts/segment_cells_thresholds.py,sha256=JanfXVbekgxDosKJDU9SejMcXiLkxnRwFTsA6gyeY8U,5141
|
|
101
|
+
celldetective/scripts/track_cells.py,sha256=GfCqXHsuS8k5jizY4tGye2l6Vwkoenb4_VjBq_dMDyI,8892
|
|
102
|
+
celldetective/scripts/train_segmentation_model.py,sha256=8QXyhQtxBhdYBNleqCbkP3II1AztfrtpyeVyx0Ijy6s,9710
|
|
103
|
+
celldetective/scripts/train_signal_model.py,sha256=D643wKVYg-LWHF2VU9FWKSuazXrpCpQK0YjGqoIimD0,3167
|
|
104
|
+
celldetective-1.4.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
105
|
+
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
|
+
tests/test_events.py,sha256=eLFwwEEJfQAdwhews3-fn1HSvzozcNNFN_Qn0gOvQkE,685
|
|
107
|
+
tests/test_filters.py,sha256=iJksl_HgquqGzPPv46qpNtlD4rkBpZ5eVtIotgZ7LDs,656
|
|
108
|
+
tests/test_io.py,sha256=gk5FmoI7ANEczUtNXYRxc48KzkfYzemwS_eYaLq4_NI,2093
|
|
109
|
+
tests/test_measure.py,sha256=FEUAs1rVHylvIvubCb0bJDNGZLVmkgXNgI3NaGQ1dA8,4542
|
|
110
|
+
tests/test_neighborhood.py,sha256=gk5FmoI7ANEczUtNXYRxc48KzkfYzemwS_eYaLq4_NI,2093
|
|
111
|
+
tests/test_preprocessing.py,sha256=c0rKS9d5h37uDcV7fVOTnn5GMVbEB84b8ZTCTdRmvFs,1422
|
|
112
|
+
tests/test_segmentation.py,sha256=k1b_zIZdlytEdJcHjAUQEO3gTBAHtv5WvrwQN2xD4kc,3470
|
|
113
|
+
tests/test_signals.py,sha256=No4cah6KxplhDcKXnU8RrA7eDla4hWw6ccf7xGnBokU,3599
|
|
114
|
+
tests/test_tracking.py,sha256=8hebWSqEIuttD1ABn-6dKCT7EXKRR7-4RwyFWi1WPFo,8800
|
|
115
|
+
tests/test_utils.py,sha256=NKRCAC1d89aBK5cWjTb7-pInYow901RrT-uBlIdz4KI,3692
|
|
116
|
+
tests/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
|
+
tests/gui/test_new_project.py,sha256=D3166GefxQeOBw3Uc2nC_wzklF6b_86xrPiLC46jbUk,8228
|
|
118
|
+
tests/gui/test_project.py,sha256=scDr50WAZybTkeTPPphGvor1VL9nHQXUIjvScdxmAmI,4146
|
|
119
|
+
celldetective-1.4.1.dist-info/METADATA,sha256=uy2o-Y7v7jvhCq5wYIAHNYj5N-FNkeCbf1Ui_duW1js,10945
|
|
120
|
+
celldetective-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
121
|
+
celldetective-1.4.1.dist-info/entry_points.txt,sha256=2NU6_EOByvPxqBbCvjwxlVlvnQreqZ3BKRCVIKEv3dg,62
|
|
122
|
+
celldetective-1.4.1.dist-info/top_level.txt,sha256=6rsIKKfGMKgud7HPuATcpq6EhdXwcg_yknBVWn9x4C4,20
|
|
123
|
+
celldetective-1.4.1.dist-info/RECORD,,
|
tests/gui/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
from PyQt5 import QtCore
|
|
3
|
+
from PyQt5.QtWidgets import QApplication
|
|
4
|
+
from celldetective.gui.InitWindow import AppInitWindow
|
|
5
|
+
from celldetective.utils import get_software_location
|
|
6
|
+
import os
|
|
7
|
+
from unittest.mock import patch
|
|
8
|
+
import shutil
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
abs_path = os.sep.join([os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]])
|
|
12
|
+
print(abs_path)
|
|
13
|
+
|
|
14
|
+
@pytest.fixture
|
|
15
|
+
def app(qtbot):
|
|
16
|
+
software_location = get_software_location()
|
|
17
|
+
test_app = AppInitWindow(software_location=software_location)
|
|
18
|
+
qtbot.addWidget(test_app)
|
|
19
|
+
return test_app
|
|
20
|
+
|
|
21
|
+
def test_new_project(app, qtbot):
|
|
22
|
+
# app.newExpAction.trigger()
|
|
23
|
+
# qtbot.wait(1000)
|
|
24
|
+
interaction_time = 500
|
|
25
|
+
test_directory = os.path.dirname(os.path.abspath(__file__))
|
|
26
|
+
parent_directory = str(Path(test_directory).parent)
|
|
27
|
+
|
|
28
|
+
# Patch QFileDialog.getExistingDirectory to return test_directory
|
|
29
|
+
with patch('PyQt5.QtWidgets.QFileDialog.getExistingDirectory', return_value=parent_directory):
|
|
30
|
+
|
|
31
|
+
if os.path.exists(os.sep.join([parent_directory, "ExperimentTest"])):
|
|
32
|
+
shutil.rmtree(os.sep.join([parent_directory, "ExperimentTest"]))
|
|
33
|
+
|
|
34
|
+
app.newExpAction.trigger()
|
|
35
|
+
qtbot.wait(interaction_time*3)
|
|
36
|
+
|
|
37
|
+
app.new_exp_window.expName.setText('ExperimentTest')
|
|
38
|
+
qtbot.wait(interaction_time)
|
|
39
|
+
|
|
40
|
+
app.new_exp_window.SliderWells.setValue(10)
|
|
41
|
+
qtbot.wait(interaction_time)
|
|
42
|
+
|
|
43
|
+
app.new_exp_window.SliderPos.setValue(3)
|
|
44
|
+
qtbot.wait(interaction_time)
|
|
45
|
+
|
|
46
|
+
app.new_exp_window.MovieLengthSlider.setValue(1)
|
|
47
|
+
qtbot.wait(interaction_time)
|
|
48
|
+
|
|
49
|
+
app.new_exp_window.PxToUm_field.setText("0,3112")
|
|
50
|
+
qtbot.wait(interaction_time)
|
|
51
|
+
|
|
52
|
+
app.new_exp_window.shape_x_field.setText("660")
|
|
53
|
+
qtbot.wait(interaction_time)
|
|
54
|
+
|
|
55
|
+
app.new_exp_window.shape_y_field.setText('682')
|
|
56
|
+
qtbot.wait(interaction_time)
|
|
57
|
+
|
|
58
|
+
# set first channel
|
|
59
|
+
app.new_exp_window.checkBoxes[0].setChecked(True)
|
|
60
|
+
qtbot.wait(interaction_time)
|
|
61
|
+
|
|
62
|
+
app.new_exp_window.sliders[0].setValue(0)
|
|
63
|
+
qtbot.wait(interaction_time)
|
|
64
|
+
|
|
65
|
+
# set second with channel index of 1
|
|
66
|
+
app.new_exp_window.checkBoxes[1].setChecked(True)
|
|
67
|
+
qtbot.wait(interaction_time)
|
|
68
|
+
|
|
69
|
+
app.new_exp_window.sliders[1].setValue(3)
|
|
70
|
+
qtbot.wait(interaction_time)
|
|
71
|
+
|
|
72
|
+
app.new_exp_window.checkBoxes[2].setChecked(True)
|
|
73
|
+
qtbot.wait(interaction_time)
|
|
74
|
+
|
|
75
|
+
app.new_exp_window.sliders[2].setValue(1)
|
|
76
|
+
qtbot.wait(interaction_time)
|
|
77
|
+
|
|
78
|
+
# add extra custom channel
|
|
79
|
+
qtbot.mouseClick(app.new_exp_window.addChannelBtn, QtCore.Qt.LeftButton)
|
|
80
|
+
qtbot.wait(interaction_time)
|
|
81
|
+
|
|
82
|
+
app.new_exp_window.name_le.setText('empty_channel')
|
|
83
|
+
qtbot.wait(interaction_time)
|
|
84
|
+
|
|
85
|
+
qtbot.mouseClick(app.new_exp_window.createBtn, QtCore.Qt.LeftButton)
|
|
86
|
+
qtbot.wait(interaction_time)
|
|
87
|
+
|
|
88
|
+
app.new_exp_window.checkBoxes[-1].setChecked(True)
|
|
89
|
+
qtbot.wait(interaction_time)
|
|
90
|
+
|
|
91
|
+
app.new_exp_window.sliders[-1].setValue(2)
|
|
92
|
+
qtbot.wait(interaction_time)
|
|
93
|
+
|
|
94
|
+
# Untick populations and create new one
|
|
95
|
+
for box in app.new_exp_window.population_checkboxes:
|
|
96
|
+
if box.text() == 'targets':
|
|
97
|
+
box.setChecked(True)
|
|
98
|
+
else:
|
|
99
|
+
box.setChecked(False)
|
|
100
|
+
|
|
101
|
+
qtbot.mouseClick(app.new_exp_window.addPopBtn, QtCore.Qt.LeftButton)
|
|
102
|
+
qtbot.wait(interaction_time)
|
|
103
|
+
|
|
104
|
+
app.new_exp_window.name_le.setText('more_cells')
|
|
105
|
+
qtbot.wait(interaction_time)
|
|
106
|
+
|
|
107
|
+
qtbot.mouseClick(app.new_exp_window.addPopBtn, QtCore.Qt.LeftButton)
|
|
108
|
+
qtbot.wait(interaction_time)
|
|
109
|
+
|
|
110
|
+
qtbot.mouseClick(app.new_exp_window.validate_button, QtCore.Qt.LeftButton)
|
|
111
|
+
qtbot.wait(interaction_time)
|
|
112
|
+
|
|
113
|
+
qtbot.mouseClick(app.new_exp_window.w.submit_btn, QtCore.Qt.LeftButton)
|
|
114
|
+
qtbot.wait(interaction_time)
|
|
115
|
+
|
|
116
|
+
shutil.copy(os.sep.join([parent_directory, "assets", "sample.tif"]), os.sep.join([parent_directory, "ExperimentTest", "W1", "100", "movie", "sample.tif"]))
|
|
117
|
+
qtbot.wait(interaction_time)
|
|
118
|
+
|
|
119
|
+
qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
120
|
+
qtbot.mouseClick(app.control_panel.view_stack_btn, QtCore.Qt.LeftButton)
|
|
121
|
+
qtbot.wait(interaction_time)
|
|
122
|
+
|
|
123
|
+
app.control_panel.viewer.channels_cb.setCurrentIndex(1)
|
|
124
|
+
qtbot.wait(interaction_time*2)
|
|
125
|
+
|
|
126
|
+
app.control_panel.viewer.contrast_slider.setValue([200,300])
|
|
127
|
+
qtbot.wait(interaction_time*2)
|
|
128
|
+
|
|
129
|
+
# QApplication.closeAllWindows()
|
|
130
|
+
# try:
|
|
131
|
+
# shutil.rmtree(os.sep.join([parent_directory, "ExperimentTest"]))
|
|
132
|
+
# except:
|
|
133
|
+
# pass
|
|
134
|
+
# def test_lauch_app(app, qtbot):
|
|
135
|
+
# app.show()
|
|
136
|
+
# qtbot.wait(1000)
|
|
137
|
+
#
|
|
138
|
+
# def test_open_project(app, qtbot):
|
|
139
|
+
# app.experiment_path_selection.setText(abs_path + os.sep + 'examples/demo')
|
|
140
|
+
# qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
141
|
+
# qtbot.wait(1000)
|
|
142
|
+
#
|
|
143
|
+
# def test_launch_demo(app, qtbot):
|
|
144
|
+
# app.experiment_path_selection.setText(abs_path + os.sep + 'examples/demo')
|
|
145
|
+
# qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
146
|
+
#
|
|
147
|
+
# def test_preprocessing_panel(app, qtbot):
|
|
148
|
+
#
|
|
149
|
+
# app.experiment_path_selection.setText(abs_path + os.sep + 'examples/demo')
|
|
150
|
+
# qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
151
|
+
#
|
|
152
|
+
# qtbot.mouseClick(app.control_panel.PreprocessingPanel.collapse_btn, QtCore.Qt.LeftButton)
|
|
153
|
+
# qtbot.mouseClick(app.control_panel.PreprocessingPanel.fit_correction_layout.add_correction_btn, QtCore.Qt.LeftButton)
|
|
154
|
+
# qtbot.mouseClick(app.control_panel.PreprocessingPanel.collapse_btn, QtCore.Qt.LeftButton)
|
|
155
|
+
#
|
|
156
|
+
# def test_app(app, qtbot):
|
|
157
|
+
#
|
|
158
|
+
# # Set an experiment folder and open
|
|
159
|
+
# app.experiment_path_selection.setText(os.sep.join([abs_path,'examples','demo']))
|
|
160
|
+
# qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
161
|
+
#
|
|
162
|
+
# # Set a position
|
|
163
|
+
# #app.control_panel.position_list.setCurrentIndex(0)
|
|
164
|
+
# #app.control_panel.update_position_options()
|
|
165
|
+
#
|
|
166
|
+
# # View stacl
|
|
167
|
+
# qtbot.mouseClick(app.control_panel.view_stack_btn, QtCore.Qt.LeftButton)
|
|
168
|
+
# #qtbot.wait(1000)
|
|
169
|
+
# app.control_panel.viewer.close()
|
|
170
|
+
#
|
|
171
|
+
# # Expand process block
|
|
172
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].collapse_btn, QtCore.Qt.LeftButton)
|
|
173
|
+
#
|
|
174
|
+
# # Use Threshold Config Wizard
|
|
175
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].upload_model_btn, QtCore.Qt.LeftButton)
|
|
176
|
+
# qtbot.wait(1000)
|
|
177
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].SegModelLoader.threshold_config_button, QtCore.Qt.LeftButton)
|
|
178
|
+
# app.control_panel.ProcessPopulations[0].SegModelLoader.ThreshWizard.close()
|
|
179
|
+
# app.control_panel.ProcessPopulations[0].SegModelLoader.close()
|
|
180
|
+
#
|
|
181
|
+
# # Check segmentation with napari
|
|
182
|
+
# #qtbot.mouseClick(app.control_panel.ProcessEffectors.check_seg_btn, QtCore.Qt.LeftButton)
|
|
183
|
+
# # close napari?
|
|
184
|
+
#
|
|
185
|
+
# # Train model
|
|
186
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].train_btn, QtCore.Qt.LeftButton)
|
|
187
|
+
# qtbot.wait(1000)
|
|
188
|
+
# app.control_panel.ProcessPopulations[0].ConfigSegmentationTrain.close()
|
|
189
|
+
#
|
|
190
|
+
# # Config tracking
|
|
191
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].track_config_btn, QtCore.Qt.LeftButton)
|
|
192
|
+
# qtbot.wait(1000)
|
|
193
|
+
# app.control_panel.ProcessPopulations[0].ConfigTracking.close()
|
|
194
|
+
#
|
|
195
|
+
# # Config measurements
|
|
196
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].measurements_config_btn, QtCore.Qt.LeftButton)
|
|
197
|
+
# qtbot.wait(1000)
|
|
198
|
+
# app.control_panel.ProcessPopulations[0].ConfigMeasurements.close()
|
|
199
|
+
#
|
|
200
|
+
# # Classifier widget
|
|
201
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].classify_btn, QtCore.Qt.LeftButton)
|
|
202
|
+
# qtbot.wait(1000)
|
|
203
|
+
# app.control_panel.ProcessPopulations[0].ClassifierWidget.close()
|
|
204
|
+
#
|
|
205
|
+
# # Config signal annotator
|
|
206
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].config_signal_annotator_btn, QtCore.Qt.LeftButton)
|
|
207
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].ConfigSignalAnnotator.rgb_btn, QtCore.Qt.LeftButton)
|
|
208
|
+
# qtbot.wait(1000)
|
|
209
|
+
# app.control_panel.ProcessPopulations[0].ConfigSignalAnnotator.close()
|
|
210
|
+
#
|
|
211
|
+
# # Signal annotator widget
|
|
212
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].check_signals_btn, QtCore.Qt.LeftButton)
|
|
213
|
+
# qtbot.wait(1000)
|
|
214
|
+
# app.control_panel.ProcessPopulations[0].SignalAnnotator.close()
|
|
215
|
+
#
|
|
216
|
+
# # Table widget
|
|
217
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].view_tab_btn, QtCore.Qt.LeftButton)
|
|
218
|
+
# qtbot.wait(1000)
|
|
219
|
+
# app.control_panel.ProcessPopulations[0].tab_ui.close()
|
|
220
|
+
#
|
|
221
|
+
# #qtbot.mouseClick(app.control_panel.PreprocessingPanel.fit_correction_layout.add_correction_btn, QtCore.Qt.LeftButton)
|
|
222
|
+
# qtbot.mouseClick(app.control_panel.ProcessPopulations[0].collapse_btn, QtCore.Qt.LeftButton)
|
|
223
|
+
#
|
|
224
|
+
#
|
|
225
|
+
#
|
|
226
|
+
# def test_click(app, qtbot):
|
|
227
|
+
# qtbot.mouseClick(app.new_exp_button, QtCore.Qt.LeftButton)
|
|
228
|
+
# qtbot.wait(10000)
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
from PyQt5 import QtCore
|
|
3
|
+
from celldetective.gui.InitWindow import AppInitWindow
|
|
4
|
+
from celldetective.utils import get_software_location
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
software_location = get_software_location()
|
|
8
|
+
|
|
9
|
+
@pytest.fixture
|
|
10
|
+
def app(qtbot):
|
|
11
|
+
test_app = AppInitWindow(software_location=software_location)
|
|
12
|
+
qtbot.addWidget(test_app)
|
|
13
|
+
return test_app
|
|
14
|
+
|
|
15
|
+
def test_open_project(app, qtbot):
|
|
16
|
+
app.experiment_path_selection.setText(software_location + os.sep + 'examples/demo')
|
|
17
|
+
qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
18
|
+
qtbot.wait(10000)
|
|
19
|
+
|
|
20
|
+
def test_launch_demo(app, qtbot):
|
|
21
|
+
app.experiment_path_selection.setText(software_location + os.sep + 'examples/demo')
|
|
22
|
+
qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
23
|
+
|
|
24
|
+
def test_preprocessing_panel(app, qtbot):
|
|
25
|
+
|
|
26
|
+
app.experiment_path_selection.setText(software_location + os.sep + 'examples/demo')
|
|
27
|
+
qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
28
|
+
|
|
29
|
+
qtbot.mouseClick(app.control_panel.PreprocessingPanel.collapse_btn, QtCore.Qt.LeftButton)
|
|
30
|
+
qtbot.mouseClick(app.control_panel.PreprocessingPanel.fit_correction_layout.add_correction_btn, QtCore.Qt.LeftButton)
|
|
31
|
+
qtbot.mouseClick(app.control_panel.PreprocessingPanel.collapse_btn, QtCore.Qt.LeftButton)
|
|
32
|
+
|
|
33
|
+
def test_app(app, qtbot):
|
|
34
|
+
|
|
35
|
+
# Set an experiment folder and open
|
|
36
|
+
app.experiment_path_selection.setText(os.sep.join([software_location,'examples','demo']))
|
|
37
|
+
qtbot.mouseClick(app.validate_button, QtCore.Qt.LeftButton)
|
|
38
|
+
|
|
39
|
+
# Set a position
|
|
40
|
+
#app.control_panel.position_list.setCurrentIndex(0)
|
|
41
|
+
#app.control_panel.update_position_options()
|
|
42
|
+
|
|
43
|
+
# View stacl
|
|
44
|
+
qtbot.mouseClick(app.control_panel.view_stack_btn, QtCore.Qt.LeftButton)
|
|
45
|
+
#qtbot.wait(1000)
|
|
46
|
+
app.control_panel.viewer.close()
|
|
47
|
+
|
|
48
|
+
# Expand process block
|
|
49
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].collapse_btn, QtCore.Qt.LeftButton)
|
|
50
|
+
|
|
51
|
+
# Use Threshold Config Wizard
|
|
52
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].upload_model_btn, QtCore.Qt.LeftButton)
|
|
53
|
+
qtbot.wait(1000)
|
|
54
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].SegModelLoader.threshold_config_button, QtCore.Qt.LeftButton)
|
|
55
|
+
app.control_panel.ProcessPopulations[0].SegModelLoader.ThreshWizard.close()
|
|
56
|
+
app.control_panel.ProcessPopulations[0].SegModelLoader.close()
|
|
57
|
+
|
|
58
|
+
# Check segmentation with napari
|
|
59
|
+
#qtbot.mouseClick(app.control_panel.ProcessEffectors.check_seg_btn, QtCore.Qt.LeftButton)
|
|
60
|
+
# close napari?
|
|
61
|
+
|
|
62
|
+
# Train model
|
|
63
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].train_btn, QtCore.Qt.LeftButton)
|
|
64
|
+
qtbot.wait(1000)
|
|
65
|
+
app.control_panel.ProcessPopulations[0].settings_segmentation_training.close()
|
|
66
|
+
|
|
67
|
+
# Config tracking
|
|
68
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].track_config_btn, QtCore.Qt.LeftButton)
|
|
69
|
+
qtbot.wait(1000)
|
|
70
|
+
app.control_panel.ProcessPopulations[0].settings_tracking.close()
|
|
71
|
+
|
|
72
|
+
# Config measurements
|
|
73
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].measurements_config_btn, QtCore.Qt.LeftButton)
|
|
74
|
+
qtbot.wait(1000)
|
|
75
|
+
app.control_panel.ProcessPopulations[0].settings_measurements.close()
|
|
76
|
+
|
|
77
|
+
# Classifier widget
|
|
78
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].classify_btn, QtCore.Qt.LeftButton)
|
|
79
|
+
qtbot.wait(1000)
|
|
80
|
+
app.control_panel.ProcessPopulations[0].ClassifierWidget.close()
|
|
81
|
+
|
|
82
|
+
# Config signal annotator
|
|
83
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].config_signal_annotator_btn, QtCore.Qt.LeftButton)
|
|
84
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].settings_signal_annotator.rgb_btn, QtCore.Qt.LeftButton)
|
|
85
|
+
qtbot.wait(1000)
|
|
86
|
+
app.control_panel.ProcessPopulations[0].settings_signal_annotator.close()
|
|
87
|
+
|
|
88
|
+
# Signal annotator widget
|
|
89
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].check_signals_btn, QtCore.Qt.LeftButton)
|
|
90
|
+
qtbot.wait(1000)
|
|
91
|
+
app.control_panel.ProcessPopulations[0].event_annotator.close()
|
|
92
|
+
|
|
93
|
+
# Table widget
|
|
94
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].view_tab_btn, QtCore.Qt.LeftButton)
|
|
95
|
+
qtbot.wait(1000)
|
|
96
|
+
app.control_panel.ProcessPopulations[0].tab_ui.close()
|
|
97
|
+
|
|
98
|
+
#qtbot.mouseClick(app.control_panel.PreprocessingPanel.fit_correction_layout.add_correction_btn, QtCore.Qt.LeftButton)
|
|
99
|
+
qtbot.mouseClick(app.control_panel.ProcessPopulations[0].collapse_btn, QtCore.Qt.LeftButton)
|
tests/test_preprocessing.py
CHANGED
|
@@ -20,11 +20,11 @@ class TestFitPlane(unittest.TestCase):
|
|
|
20
20
|
self.assertTrue(np.allclose(self.img, mat))
|
|
21
21
|
|
|
22
22
|
def test_plane_is_well_fit_and_applied_with_division(self):
|
|
23
|
-
result = field_correction(self.img,
|
|
23
|
+
result = field_correction(self.img, threshold=1.0E05, operation='divide', model='plane', clip=False, return_bg=False, activation_protocol=[])
|
|
24
24
|
self.assertTrue(np.allclose(result, np.full((100,100), 1.0)))
|
|
25
25
|
|
|
26
26
|
def test_plane_is_well_fit_and_applied_with_subtraction(self):
|
|
27
|
-
result = field_correction(self.img,
|
|
27
|
+
result = field_correction(self.img, threshold=1.0E05, operation='subtract', model='plane', clip=False, return_bg=False, activation_protocol=[])
|
|
28
28
|
self.assertTrue(np.allclose(result, np.zeros((100,100))))
|
|
29
29
|
|
|
30
30
|
def test_plane_is_well_fit_with_cell(self):
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"channels": [
|
|
3
|
-
"adhesion_channel",
|
|
4
|
-
"brightfield_channel"
|
|
5
|
-
],
|
|
6
|
-
"diameter": 30.0,
|
|
7
|
-
"cellprob_threshold": 0.0,
|
|
8
|
-
"flow_threshold": 0.4,
|
|
9
|
-
"normalization_percentile": [
|
|
10
|
-
false,
|
|
11
|
-
true
|
|
12
|
-
],
|
|
13
|
-
"normalization_clip": [
|
|
14
|
-
true,
|
|
15
|
-
true
|
|
16
|
-
],
|
|
17
|
-
"normalization_values": [
|
|
18
|
-
[
|
|
19
|
-
0.75,
|
|
20
|
-
1.25
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
1.0,
|
|
24
|
-
99.0
|
|
25
|
-
]
|
|
26
|
-
],
|
|
27
|
-
"model_type": "cellpose",
|
|
28
|
-
"spatial_calibration": 0.2,
|
|
29
|
-
"dataset": {
|
|
30
|
-
"train": [
|
|
31
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_404_0066_roi_429_935_159_649.tif",
|
|
32
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_200_0003_roi_457_991_5_488.tif",
|
|
33
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_508_0008.tif",
|
|
34
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_305_0075.tif",
|
|
35
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_302_0063_roi_405_865_462_937.tif",
|
|
36
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_506_0066_roi_473_944_494_953.tif",
|
|
37
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_202_0027_roi_557_998_3_447.tif",
|
|
38
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_208_0027_roi_600_997_5_387.tif",
|
|
39
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_206_0023_roi_251_707_249_666.tif",
|
|
40
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_201_0017_roi_324_961_23_596.tif",
|
|
41
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_102_0053_roi_511_996_4_433.tif",
|
|
42
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_403_0009_roi_554_996_460_994.tif",
|
|
43
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_508_0066.tif",
|
|
44
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_507_0066_roi_492_998_9_474.tif",
|
|
45
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_202_0029_roi_177_746_4_533.tif",
|
|
46
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_203_0060_roi_369_906_119_648.tif",
|
|
47
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_304_0025.tif",
|
|
48
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_207_0030_roi_152_661_531_998.tif",
|
|
49
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_105_0018_roi_510_954_13_422.tif",
|
|
50
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_507_0016_roi_29_585_462_996.tif",
|
|
51
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_504_0066_roi_305_866_382_909.tif",
|
|
52
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_605_0060_roi_6_479_351_847.tif",
|
|
53
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_403_0008.tif",
|
|
54
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_203_0029_roi_3_376_622_1000.tif",
|
|
55
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_102_0094.tif",
|
|
56
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_202_0055_roi_1_514_68_597.tif",
|
|
57
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_206_0000.tif",
|
|
58
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_302_0023_roi_295_768_6_437.tif",
|
|
59
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_805_0081.tif",
|
|
60
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_605_0010_roi_341_847_162_673.tif",
|
|
61
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_205_0002_roi_70_569_6_490.tif",
|
|
62
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_200_0055_roi_99_778_341_986.tif",
|
|
63
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_802_0040.tif",
|
|
64
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_206_0028_roi_2_426_487_995.tif",
|
|
65
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_706_0042_roi_99_515_11_394.tif"
|
|
66
|
-
],
|
|
67
|
-
"validation": [
|
|
68
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_201_0003_roi_501_957_576_1000.tif",
|
|
69
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-11-23-analysis-2024_603_0032.tif",
|
|
70
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_706_0030_roi_323_824_488_995.tif",
|
|
71
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_202_0014_roi_258_711_504_959.tif",
|
|
72
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_207_0007_roi_119_611_5_451.tif",
|
|
73
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_206_0030.tif",
|
|
74
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_207_0055_roi_519_989_6_429.tif",
|
|
75
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-03-03-analysis-2024_506_0053_roi_190_724_13_490.tif",
|
|
76
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects/Marie-20-06-analysis-2024_300_0047_roi_416_985_436_972.tif"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
}
|
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"model_name": "ricm_bf_all_last",
|
|
3
|
-
"model_type": "cellpose",
|
|
4
|
-
"pretrained": null,
|
|
5
|
-
"spatial_calibration": 0.2,
|
|
6
|
-
"channel_option": [
|
|
7
|
-
"adhesion_channel",
|
|
8
|
-
"brightfield_channel"
|
|
9
|
-
],
|
|
10
|
-
"normalization_percentile": [
|
|
11
|
-
false,
|
|
12
|
-
true
|
|
13
|
-
],
|
|
14
|
-
"normalization_clip": [
|
|
15
|
-
true,
|
|
16
|
-
true
|
|
17
|
-
],
|
|
18
|
-
"normalization_values": [
|
|
19
|
-
[
|
|
20
|
-
0.75,
|
|
21
|
-
1.25
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
1.0,
|
|
25
|
-
99.0
|
|
26
|
-
]
|
|
27
|
-
],
|
|
28
|
-
"ds": [
|
|
29
|
-
"/home/limozin/Downloads/dataset-marie-all-objects(1)/dataset-marie-all-objects"
|
|
30
|
-
],
|
|
31
|
-
"augmentation_factor": 3.0,
|
|
32
|
-
"validation_split": 0.2,
|
|
33
|
-
"learning_rate": 0.008,
|
|
34
|
-
"batch_size": 8,
|
|
35
|
-
"epochs": 3000,
|
|
36
|
-
"target_directory": "/home/limozin/Documents/GitHub/celldetective/celldetective/models/segmentation_effectors"
|
|
37
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"channels": [
|
|
3
|
-
"brightfield_channel",
|
|
4
|
-
"None"
|
|
5
|
-
],
|
|
6
|
-
"diameter": 30.0,
|
|
7
|
-
"cellprob_threshold": 0.0,
|
|
8
|
-
"flow_threshold": 0.4,
|
|
9
|
-
"normalization_percentile": [
|
|
10
|
-
true,
|
|
11
|
-
true
|
|
12
|
-
],
|
|
13
|
-
"normalization_clip": [
|
|
14
|
-
true,
|
|
15
|
-
true
|
|
16
|
-
],
|
|
17
|
-
"normalization_values": [
|
|
18
|
-
[
|
|
19
|
-
1.0,
|
|
20
|
-
99.0
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
1.0,
|
|
24
|
-
99.0
|
|
25
|
-
]
|
|
26
|
-
],
|
|
27
|
-
"model_type": "cellpose",
|
|
28
|
-
"spatial_calibration": 0.36666666666666664,
|
|
29
|
-
"dataset": {
|
|
30
|
-
"train": [
|
|
31
|
-
"/home/torro/Documents/Experiments/Marie-03-03-analysis-2024/annotations_effectors/Marie-03-03-analysis-2024_206_0028_roi_2_426_487_995.tif",
|
|
32
|
-
"/home/torro/Documents/Experiments/Marie-03-03-analysis-2024/annotations_effectors/Marie-03-03-analysis-2024_203_0029_roi_3_376_622_1000.tif",
|
|
33
|
-
"/home/torro/Documents/Experiments/Marie-03-03-analysis-2024/annotations_effectors/Marie-03-03-analysis-2024_208_0027_roi_600_997_5_387.tif"
|
|
34
|
-
],
|
|
35
|
-
"validation": [
|
|
36
|
-
"/home/torro/Documents/Experiments/Marie-03-03-analysis-2024/annotations_effectors/Marie-03-03-analysis-2024_206_0023_roi_251_707_249_666.tif"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"channels": ["area"], "model_signal_length": 128, "label": "nucShrink", "normalize": true, "normalization_percentile": [true], "normalization_values": [[0.1, 99.99]], "normalization_clip": [true]}
|