spacr 0.3.1__tar.gz → 0.3.2__tar.gz
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.
- spacr-0.3.2/.readthedocs.yaml +15 -0
- spacr-0.3.2/MANIFEST.in +34 -0
- {spacr-0.3.1/spacr.egg-info → spacr-0.3.2}/PKG-INFO +7 -1
- {spacr-0.3.1 → spacr-0.3.2}/README.rst +1 -0
- spacr-0.3.2/deploy_docs.sh +18 -0
- spacr-0.3.2/docs/requirements.txt +3 -0
- spacr-0.3.2/docs/source/Makefile +20 -0
- spacr-0.3.2/docs/source/_build/doctrees/environment.pickle +0 -0
- spacr-0.3.2/docs/source/_build/html/_modules/index.html +128 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_annotate.html +164 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_classify.html +117 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_make_masks.html +156 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_mask.html +117 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_measure.html +117 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_sequencing.html +117 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/app_umap.html +117 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/core.html +3319 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/deep_spacr.html +909 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/graph_learning.html +503 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/gui.html +271 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/gui_core.html +1065 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/gui_elements.html +3217 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/gui_utils.html +873 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/io.html +2866 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/logger.html +129 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/measure.html +1292 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/plot.html +1904 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/sequencing.html +1976 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/settings.html +1390 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/sim.html +1941 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/timelapse.html +996 -0
- spacr-0.3.2/docs/source/_build/html/_modules/spacr/utils.html +4955 -0
- spacr-0.3.2/docs/source/_build/html/_sources/index.rst.txt +18 -0
- spacr-0.3.2/docs/source/_build/html/_sources/modules.rst.txt +7 -0
- spacr-0.3.2/docs/source/_build/html/_sources/spacr.rst.txt +213 -0
- spacr-0.3.2/docs/source/_build/html/_static/_sphinx_javascript_frameworks_compat.js +123 -0
- spacr-0.3.2/docs/source/_build/html/_static/basic.css +925 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/badge_only.css +1 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/fontawesome-webfont.eot +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/fontawesome-webfont.svg +2671 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/fontawesome-webfont.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-bold-italic.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-bold.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-bold.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-normal-italic.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-normal.woff +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/fonts/lato-normal.woff2 +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/css/theme.css +4 -0
- spacr-0.3.2/docs/source/_build/html/_static/doctools.js +156 -0
- spacr-0.3.2/docs/source/_build/html/_static/documentation_options.js +13 -0
- spacr-0.3.2/docs/source/_build/html/_static/file.png +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/jquery.js +2 -0
- spacr-0.3.2/docs/source/_build/html/_static/js/badge_only.js +1 -0
- spacr-0.3.2/docs/source/_build/html/_static/js/html5shiv-printshiv.min.js +4 -0
- spacr-0.3.2/docs/source/_build/html/_static/js/html5shiv.min.js +4 -0
- spacr-0.3.2/docs/source/_build/html/_static/js/theme.js +1 -0
- spacr-0.3.2/docs/source/_build/html/_static/language_data.js +199 -0
- spacr-0.3.2/docs/source/_build/html/_static/minus.png +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/plus.png +0 -0
- spacr-0.3.2/docs/source/_build/html/_static/pygments.css +75 -0
- spacr-0.3.2/docs/source/_build/html/_static/searchtools.js +619 -0
- spacr-0.3.2/docs/source/_build/html/_static/sphinx_highlight.js +154 -0
- spacr-0.3.2/docs/source/_build/html/genindex.html +1784 -0
- spacr-0.3.2/docs/source/_build/html/index.html +129 -0
- spacr-0.3.2/docs/source/_build/html/modules.html +861 -0
- spacr-0.3.2/docs/source/_build/html/objects.inv +0 -0
- spacr-0.3.2/docs/source/_build/html/py-modindex.html +250 -0
- spacr-0.3.2/docs/source/_build/html/search.html +125 -0
- spacr-0.3.2/docs/source/_build/html/searchindex.js +1 -0
- spacr-0.3.2/docs/source/_build/html/spacr.html +5170 -0
- spacr-0.3.2/docs/source/conf.py +58 -0
- spacr-0.3.2/docs/source/index.rst +18 -0
- spacr-0.3.2/docs/source/make.bat +35 -0
- spacr-0.3.2/docs/source/modules.rst +7 -0
- spacr-0.3.2/docs/source/spacr.rst +213 -0
- spacr-0.3.2/environment.yaml +171 -0
- spacr-0.3.2/fonts/OpenSans-Regular.ttf +30 -0
- spacr-0.3.2/notebooks/deep_learning_spacr.ipynb +141 -0
- spacr-0.3.2/notebooks/spacr_0.1_all_settings_git.ipynb +864 -0
- spacr-0.3.2/notebooks/spacr_0.1_minimal.ipynb +731 -0
- spacr-0.3.1/spacr/resources/MEDIAR_weights/.DS_Store → spacr-0.3.2/path/home/carruthers/datasets/plate1/measurements/measurements.db +0 -0
- spacr-0.3.2/path/home/carruthers/datasets/plate1/settings/measure_crop_settings.csv +61 -0
- spacr-0.3.2/path/settings/preprocess_generate_masks_settings.csv +67 -0
- spacr-0.3.2/requirements.txt +37 -0
- spacr-0.3.2/settings/measure_crop_settings.csv +62 -0
- {spacr-0.3.1 → spacr-0.3.2}/setup.py +8 -3
- spacr-0.3.2/setup_docs.sh +110 -0
- spacr-0.3.2/source/conf.py +22 -0
- spacr-0.3.2/source/index.rst +20 -0
- spacr-0.3.2/source/modules.rst +8 -0
- spacr-0.3.2/source/setup.rst +7 -0
- spacr-0.3.2/source/spacr.rst +189 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/__init__.py +19 -3
- spacr-0.3.2/spacr/cellpose.py +311 -0
- spacr-0.3.2/spacr/core.py +847 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/deep_spacr.py +151 -29
- {spacr-0.3.1 → spacr-0.3.2}/spacr/gui.py +1 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/gui_core.py +74 -63
- {spacr-0.3.1 → spacr-0.3.2}/spacr/gui_elements.py +110 -5
- {spacr-0.3.1 → spacr-0.3.2}/spacr/gui_utils.py +346 -6
- {spacr-0.3.1 → spacr-0.3.2}/spacr/io.py +624 -44
- spacr-0.3.2/spacr/logger.py +39 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/measure.py +107 -95
- {spacr-0.3.1 → spacr-0.3.2}/spacr/mediar.py +0 -3
- spacr-0.3.2/spacr/ml.py +964 -0
- spacr-0.3.2/spacr/openai.py +37 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/plot.py +280 -15
- spacr-0.3.2/spacr/resources/data/lopit.csv +3833 -0
- spacr-0.3.2/spacr/resources/data/toxoplasma_metadata.csv +8843 -0
- spacr-0.3.2/spacr/resources/icons/convert.png +0 -0
- spacr-0.3.1/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model → spacr-0.3.2/spacr/resources/icons/dna_matrix.mp4 +0 -0
- spacr-0.3.2/spacr/sequencing.py +483 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/settings.py +129 -43
- {spacr-0.3.1 → spacr-0.3.2}/spacr/sim.py +0 -2
- spacr-0.3.2/spacr/submodules.py +348 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/timelapse.py +0 -2
- spacr-0.3.2/spacr/toxo.py +233 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/utils.py +271 -171
- {spacr-0.3.1 → spacr-0.3.2/spacr.egg-info}/PKG-INFO +7 -1
- {spacr-0.3.1 → spacr-0.3.2}/spacr.egg-info/SOURCES.txt +106 -7
- {spacr-0.3.1 → spacr-0.3.2}/spacr.egg-info/requires.txt +4 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_gui_sim_app.py +1 -1
- spacr-0.3.1/MANIFEST.in +0 -5
- spacr-0.3.1/spacr/core.py +0 -3200
- spacr-0.3.1/spacr/logger.py +0 -20
- spacr-0.3.1/spacr/resources/MEDIAR/.git +0 -1
- spacr-0.3.1/spacr/resources/icons/.DS_Store +0 -0
- spacr-0.3.1/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model_settings.csv +0 -23
- spacr-0.3.1/spacr/resources/models/cp/toxo_pv_lumen.CP_model +0 -0
- spacr-0.3.1/spacr/sequencing.py +0 -1553
- {spacr-0.3.1 → spacr-0.3.2}/LICENSE +0 -0
- /spacr-0.3.1/spacr/sim_app.py → /spacr-0.3.2/empty.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/setup.cfg +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/__main__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_annotate.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_classify.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_make_masks.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_mask.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_measure.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_sequencing.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/app_umap.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/.gitignore +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/LICENSE +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/README.md +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/SetupDict.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/baseline.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/mediar_example.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/pred/pred_mediar.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step1_pretraining/phase1.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step1_pretraining/phase2.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step2_finetuning/finetuning1.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step2_finetuning/finetuning2.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step3_prediction/base_prediction.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/config/step3_prediction/ensemble_tta.json +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/BasePredictor.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/BaseTrainer.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/Baseline/Predictor.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/Baseline/Trainer.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/Baseline/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/Baseline/utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/MEDIAR/EnsemblePredictor.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/MEDIAR/Predictor.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/MEDIAR/Trainer.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/MEDIAR/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/MEDIAR/utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/core/utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/evaluate.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/generate_mapping.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/examples/img1.tiff +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/examples/img2.tif +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/failure_cases.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/mediar_framework.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/mediar_model.PNG +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/image/mediar_results.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/main.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/predict.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/requirements.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/custom/CellAware.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/custom/LoadImage.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/custom/NormalizeImage.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/custom/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/custom/modalities.pkl +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/datasetter.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/transforms.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/data_utils/utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/measures.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/models/MEDIARFormer.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/models/__init__.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/MEDIAR/train_tools/utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/OFL.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/OpenSans-Italic-VariableFont_wdth,wght.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/OpenSans-VariableFont_wdth,wght.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/README.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-Bold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-BoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-ExtraBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-ExtraBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-Italic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-Light.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-LightItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-Medium.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-MediumItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-Regular.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-SemiBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans-SemiBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-Bold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-BoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-ExtraBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-ExtraBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-Italic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-Light.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-LightItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-Medium.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-MediumItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-Regular.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-SemiBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_Condensed-SemiBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Bold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-BoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-ExtraBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-ExtraBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Italic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Light.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-LightItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Medium.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-MediumItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Regular.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-SemiBold.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-SemiBoldItalic.ttf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/abort.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/annotate.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/cellpose_all.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/cellpose_masks.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/classify.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/default.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/download.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/logo.pdf +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/logo_spacr.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/logo_spacr_1.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/make_masks.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/map_barcodes.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/mask.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/measure.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/ml_analyze.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/plaque.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/recruitment.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/regression.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/run.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/sequencing.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/settings.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/train_cellpose.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/icons/umap.png +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/images/plate1_E01_T0001F001L01A01Z01C02.tif +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/images/plate1_E01_T0001F001L01A02Z01C01.tif +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/resources/images/plate1_E01_T0001F001L01A03Z01C03.tif +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr/version.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr.egg-info/dependency_links.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr.egg-info/entry_points.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/spacr.egg-info/top_level.txt +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_annotate_app.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_core.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_gui_classify_app.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_gui_mask_app.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_gui_measure_app.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_gui_utils.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_io.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_mask_app.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_measure.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_plot.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_sim.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_timelapse.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_train.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_umap.py +0 -0
- {spacr-0.3.1 → spacr-0.3.2}/tests/test_utils.py +0 -0
spacr-0.3.2/MANIFEST.in
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
recursive-include spacr/resources/models/cp *
|
2
|
+
recursive-include spacr/resources/icons *
|
3
|
+
recursive-include spacr/resources/font *
|
4
|
+
recursive-include spacr/resources/MEDIAR *
|
5
|
+
recursive-include spacr/resources/MEDIAR_weights *
|
6
|
+
|
7
|
+
# Include essential files
|
8
|
+
include *.py
|
9
|
+
include *.sh
|
10
|
+
include *.txt
|
11
|
+
include *.yaml
|
12
|
+
include requirements.txt
|
13
|
+
|
14
|
+
# Recursively include specific folders and file types
|
15
|
+
recursive-include docs *.rst *.py *.html *.css *.js *.inv *.pickle *.png *.svg *.ttf *.woff *.woff2 *.eot *.txt *.bat Makefile
|
16
|
+
recursive-include notebooks *.ipynb
|
17
|
+
recursive-include path *.csv *.db
|
18
|
+
recursive-include settings *.csv
|
19
|
+
recursive-include source *.py *.rst
|
20
|
+
|
21
|
+
# Recursively include fonts
|
22
|
+
recursive-include fonts *.ttf
|
23
|
+
|
24
|
+
# Exclude unnecessary files
|
25
|
+
global-exclude *.pyc
|
26
|
+
global-exclude *.pyo
|
27
|
+
global-exclude __pycache__/
|
28
|
+
global-exclude .DS_Store
|
29
|
+
global-exclude .git
|
30
|
+
global-exclude .gitmodules
|
31
|
+
global-exclude docs-env/
|
32
|
+
|
33
|
+
# Exclude model files from distribution
|
34
|
+
exclude spacr/resources/models/cp/*
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: spacr
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.2
|
4
4
|
Summary: Spatial phenotype analysis of crisp screens (SpaCr)
|
5
5
|
Home-page: https://github.com/EinarOlafsson/spacr
|
6
6
|
Author: Einar Birnir Olafsson
|
@@ -8,6 +8,7 @@ Author-email: olafsson@med.umich.com
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
|
+
Description-Content-Type: text/x-rst
|
11
12
|
License-File: LICENSE
|
12
13
|
Requires-Dist: torch<3.0,>=2.0
|
13
14
|
Requires-Dist: torchvision<1.0,>=0.1
|
@@ -58,6 +59,10 @@ Requires-Dist: segmentation_models_pytorch>=0.3.3
|
|
58
59
|
Requires-Dist: tifffile>=2023.4.12
|
59
60
|
Requires-Dist: tqdm>=4.65.0
|
60
61
|
Requires-Dist: wandb>=0.16.2
|
62
|
+
Requires-Dist: openai<2.0,>=1.50.2
|
63
|
+
Requires-Dist: nd2reader<4.0,>=3.3.0
|
64
|
+
Requires-Dist: czifile
|
65
|
+
Requires-Dist: adjustText<2.0,>=1.2.0
|
61
66
|
Requires-Dist: huggingface-hub<0.25,>=0.24.0
|
62
67
|
Provides-Extra: dev
|
63
68
|
Requires-Dist: pytest<3.11,>=3.9; extra == "dev"
|
@@ -115,6 +120,7 @@ If using Windows, switch to Linux—it's free, open-source, and better.
|
|
115
120
|
Before installing SpaCr on OSX ensure OpenMP is installed::
|
116
121
|
|
117
122
|
brew install libomp
|
123
|
+
brew install hdf5
|
118
124
|
|
119
125
|
SpaCr GUI requires Tkinter. On Linux, ensure Tkinter is installed. (Tkinter is included with the standard Python installation on macOS and Windows)::
|
120
126
|
|
@@ -47,6 +47,7 @@ If using Windows, switch to Linux—it's free, open-source, and better.
|
|
47
47
|
Before installing SpaCr on OSX ensure OpenMP is installed::
|
48
48
|
|
49
49
|
brew install libomp
|
50
|
+
brew install hdf5
|
50
51
|
|
51
52
|
SpaCr GUI requires Tkinter. On Linux, ensure Tkinter is installed. (Tkinter is included with the standard Python installation on macOS and Windows)::
|
52
53
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Exit if any subcommand fails
|
4
|
+
set -e
|
5
|
+
|
6
|
+
# Build the documentation
|
7
|
+
cd docs
|
8
|
+
make clean
|
9
|
+
make html
|
10
|
+
|
11
|
+
# Copy the generated files to the root of the docs directory
|
12
|
+
cp -r build/html/* .
|
13
|
+
|
14
|
+
# Add and commit the changes
|
15
|
+
git add .
|
16
|
+
git commit -m "Update documentation"
|
17
|
+
git push origin main
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
2
|
+
#
|
3
|
+
|
4
|
+
# You can set these variables from the command line, and also
|
5
|
+
# from the environment for the first two.
|
6
|
+
SPHINXOPTS ?=
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
8
|
+
SOURCEDIR = .
|
9
|
+
BUILDDIR = _build
|
10
|
+
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
12
|
+
help:
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
14
|
+
|
15
|
+
.PHONY: help Makefile
|
16
|
+
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
19
|
+
%: Makefile
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
Binary file
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="writer-html5" lang="en" data-content_root="../">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6
|
+
<title>Overview: module code — spacr 0.2.65 documentation</title>
|
7
|
+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
|
9
|
+
|
10
|
+
|
11
|
+
<!--[if lt IE 9]>
|
12
|
+
<script src="../_static/js/html5shiv.min.js"></script>
|
13
|
+
<![endif]-->
|
14
|
+
|
15
|
+
<script src="../_static/jquery.js?v=5d32c60e"></script>
|
16
|
+
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
17
|
+
<script src="../_static/documentation_options.js?v=30a7333d"></script>
|
18
|
+
<script src="../_static/doctools.js?v=9a2dae69"></script>
|
19
|
+
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
|
20
|
+
<script src="../_static/js/theme.js"></script>
|
21
|
+
<link rel="index" title="Index" href="../genindex.html" />
|
22
|
+
<link rel="search" title="Search" href="../search.html" />
|
23
|
+
</head>
|
24
|
+
|
25
|
+
<body class="wy-body-for-nav">
|
26
|
+
<div class="wy-grid-for-nav">
|
27
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
28
|
+
<div class="wy-side-scroll">
|
29
|
+
<div class="wy-side-nav-search" >
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<a href="../index.html" class="icon icon-home">
|
34
|
+
spacr
|
35
|
+
</a>
|
36
|
+
<div class="version">
|
37
|
+
0.2.65
|
38
|
+
</div>
|
39
|
+
<div role="search">
|
40
|
+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
41
|
+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
|
42
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
43
|
+
<input type="hidden" name="area" value="default" />
|
44
|
+
</form>
|
45
|
+
</div>
|
46
|
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
47
|
+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
48
|
+
<ul>
|
49
|
+
<li class="toctree-l1"><a class="reference internal" href="../modules.html">spacr</a></li>
|
50
|
+
</ul>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
57
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
58
|
+
<a href="../index.html">spacr</a>
|
59
|
+
</nav>
|
60
|
+
|
61
|
+
<div class="wy-nav-content">
|
62
|
+
<div class="rst-content">
|
63
|
+
<div role="navigation" aria-label="Page navigation">
|
64
|
+
<ul class="wy-breadcrumbs">
|
65
|
+
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
|
66
|
+
<li class="breadcrumb-item active">Overview: module code</li>
|
67
|
+
<li class="wy-breadcrumbs-aside">
|
68
|
+
</li>
|
69
|
+
</ul>
|
70
|
+
<hr/>
|
71
|
+
</div>
|
72
|
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
73
|
+
<div itemprop="articleBody">
|
74
|
+
|
75
|
+
<h1>All modules for which code is available</h1>
|
76
|
+
<ul><li><a href="spacr/app_annotate.html">spacr.app_annotate</a></li>
|
77
|
+
<li><a href="spacr/app_classify.html">spacr.app_classify</a></li>
|
78
|
+
<li><a href="spacr/app_make_masks.html">spacr.app_make_masks</a></li>
|
79
|
+
<li><a href="spacr/app_mask.html">spacr.app_mask</a></li>
|
80
|
+
<li><a href="spacr/app_measure.html">spacr.app_measure</a></li>
|
81
|
+
<li><a href="spacr/app_sequencing.html">spacr.app_sequencing</a></li>
|
82
|
+
<li><a href="spacr/app_umap.html">spacr.app_umap</a></li>
|
83
|
+
<li><a href="spacr/core.html">spacr.core</a></li>
|
84
|
+
<li><a href="spacr/deep_spacr.html">spacr.deep_spacr</a></li>
|
85
|
+
<li><a href="spacr/graph_learning.html">spacr.graph_learning</a></li>
|
86
|
+
<li><a href="spacr/gui.html">spacr.gui</a></li>
|
87
|
+
<li><a href="spacr/gui_core.html">spacr.gui_core</a></li>
|
88
|
+
<li><a href="spacr/gui_elements.html">spacr.gui_elements</a></li>
|
89
|
+
<li><a href="spacr/gui_utils.html">spacr.gui_utils</a></li>
|
90
|
+
<li><a href="spacr/io.html">spacr.io</a></li>
|
91
|
+
<li><a href="spacr/logger.html">spacr.logger</a></li>
|
92
|
+
<li><a href="spacr/measure.html">spacr.measure</a></li>
|
93
|
+
<li><a href="spacr/plot.html">spacr.plot</a></li>
|
94
|
+
<li><a href="spacr/sequencing.html">spacr.sequencing</a></li>
|
95
|
+
<li><a href="spacr/settings.html">spacr.settings</a></li>
|
96
|
+
<li><a href="spacr/sim.html">spacr.sim</a></li>
|
97
|
+
<li><a href="spacr/timelapse.html">spacr.timelapse</a></li>
|
98
|
+
<li><a href="spacr/utils.html">spacr.utils</a></li>
|
99
|
+
</ul>
|
100
|
+
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
<footer>
|
104
|
+
|
105
|
+
<hr/>
|
106
|
+
|
107
|
+
<div role="contentinfo">
|
108
|
+
<p>© Copyright 2024, Your Name.</p>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
112
|
+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
113
|
+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
114
|
+
|
115
|
+
|
116
|
+
</footer>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
</section>
|
120
|
+
</div>
|
121
|
+
<script>
|
122
|
+
jQuery(function () {
|
123
|
+
SphinxRtdTheme.Navigation.enable(true);
|
124
|
+
});
|
125
|
+
</script>
|
126
|
+
|
127
|
+
</body>
|
128
|
+
</html>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="writer-html5" lang="en" data-content_root="../../">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6
|
+
<title>spacr.app_annotate — spacr 0.2.65 documentation</title>
|
7
|
+
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
|
9
|
+
|
10
|
+
|
11
|
+
<!--[if lt IE 9]>
|
12
|
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
13
|
+
<![endif]-->
|
14
|
+
|
15
|
+
<script src="../../_static/jquery.js?v=5d32c60e"></script>
|
16
|
+
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
17
|
+
<script src="../../_static/documentation_options.js?v=30a7333d"></script>
|
18
|
+
<script src="../../_static/doctools.js?v=9a2dae69"></script>
|
19
|
+
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
|
20
|
+
<script src="../../_static/js/theme.js"></script>
|
21
|
+
<link rel="index" title="Index" href="../../genindex.html" />
|
22
|
+
<link rel="search" title="Search" href="../../search.html" />
|
23
|
+
</head>
|
24
|
+
|
25
|
+
<body class="wy-body-for-nav">
|
26
|
+
<div class="wy-grid-for-nav">
|
27
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
28
|
+
<div class="wy-side-scroll">
|
29
|
+
<div class="wy-side-nav-search" >
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<a href="../../index.html" class="icon icon-home">
|
34
|
+
spacr
|
35
|
+
</a>
|
36
|
+
<div class="version">
|
37
|
+
0.2.65
|
38
|
+
</div>
|
39
|
+
<div role="search">
|
40
|
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
41
|
+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
|
42
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
43
|
+
<input type="hidden" name="area" value="default" />
|
44
|
+
</form>
|
45
|
+
</div>
|
46
|
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
47
|
+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
48
|
+
<ul>
|
49
|
+
<li class="toctree-l1"><a class="reference internal" href="../../modules.html">spacr</a></li>
|
50
|
+
</ul>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
57
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
58
|
+
<a href="../../index.html">spacr</a>
|
59
|
+
</nav>
|
60
|
+
|
61
|
+
<div class="wy-nav-content">
|
62
|
+
<div class="rst-content">
|
63
|
+
<div role="navigation" aria-label="Page navigation">
|
64
|
+
<ul class="wy-breadcrumbs">
|
65
|
+
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
|
66
|
+
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
|
67
|
+
<li class="breadcrumb-item active">spacr.app_annotate</li>
|
68
|
+
<li class="wy-breadcrumbs-aside">
|
69
|
+
</li>
|
70
|
+
</ul>
|
71
|
+
<hr/>
|
72
|
+
</div>
|
73
|
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
74
|
+
<div itemprop="articleBody">
|
75
|
+
|
76
|
+
<h1>Source code for spacr.app_annotate</h1><div class="highlight"><pre>
|
77
|
+
<span></span><span class="kn">import</span> <span class="nn">tkinter</span> <span class="k">as</span> <span class="nn">tk</span>
|
78
|
+
<span class="kn">from</span> <span class="nn">tkinter</span> <span class="kn">import</span> <span class="n">ttk</span>
|
79
|
+
<span class="kn">from</span> <span class="nn">.gui</span> <span class="kn">import</span> <span class="n">MainApp</span>
|
80
|
+
<span class="kn">from</span> <span class="nn">.gui_elements</span> <span class="kn">import</span> <span class="n">set_dark_style</span><span class="p">,</span> <span class="n">spacrButton</span>
|
81
|
+
|
82
|
+
<div class="viewcode-block" id="initiate_annotation_app">
|
83
|
+
<a class="viewcode-back" href="../../spacr.html#spacr.app_annotate.initiate_annotation_app">[docs]</a>
|
84
|
+
<span class="k">def</span> <span class="nf">initiate_annotation_app</span><span class="p">(</span><span class="n">parent_frame</span><span class="p">):</span>
|
85
|
+
<span class="kn">from</span> <span class="nn">.gui_utils</span> <span class="kn">import</span> <span class="n">generate_annotate_fields</span><span class="p">,</span> <span class="n">annotate_app</span>
|
86
|
+
<span class="c1"># Set up the settings window</span>
|
87
|
+
<span class="n">settings_window</span> <span class="o">=</span> <span class="n">tk</span><span class="o">.</span><span class="n">Toplevel</span><span class="p">(</span><span class="n">parent_frame</span><span class="p">)</span>
|
88
|
+
<span class="n">settings_window</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s2">"Annotation Settings"</span><span class="p">)</span>
|
89
|
+
<span class="n">style_out</span> <span class="o">=</span> <span class="n">set_dark_style</span><span class="p">(</span><span class="n">ttk</span><span class="o">.</span><span class="n">Style</span><span class="p">())</span>
|
90
|
+
<span class="n">settings_window</span><span class="o">.</span><span class="n">configure</span><span class="p">(</span><span class="n">bg</span><span class="o">=</span><span class="n">style_out</span><span class="p">[</span><span class="s1">'bg_color'</span><span class="p">])</span>
|
91
|
+
<span class="n">settings_frame</span> <span class="o">=</span> <span class="n">tk</span><span class="o">.</span><span class="n">Frame</span><span class="p">(</span><span class="n">settings_window</span><span class="p">,</span> <span class="n">bg</span><span class="o">=</span><span class="n">style_out</span><span class="p">[</span><span class="s1">'bg_color'</span><span class="p">])</span>
|
92
|
+
<span class="n">settings_frame</span><span class="o">.</span><span class="n">pack</span><span class="p">(</span><span class="n">fill</span><span class="o">=</span><span class="n">tk</span><span class="o">.</span><span class="n">BOTH</span><span class="p">,</span> <span class="n">expand</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
|
93
|
+
<span class="n">vars_dict</span> <span class="o">=</span> <span class="n">generate_annotate_fields</span><span class="p">(</span><span class="n">settings_frame</span><span class="p">)</span>
|
94
|
+
|
95
|
+
<span class="k">def</span> <span class="nf">start_annotation_app</span><span class="p">():</span>
|
96
|
+
<span class="n">settings</span> <span class="o">=</span> <span class="p">{</span><span class="n">key</span><span class="p">:</span> <span class="n">data</span><span class="p">[</span><span class="s1">'entry'</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">()</span> <span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">data</span> <span class="ow">in</span> <span class="n">vars_dict</span><span class="o">.</span><span class="n">items</span><span class="p">()}</span>
|
97
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'channels'</span><span class="p">]</span> <span class="o">=</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'channels'</span><span class="p">]</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">','</span><span class="p">)</span>
|
98
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'img_size'</span><span class="p">]</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">map</span><span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'img_size'</span><span class="p">]</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">','</span><span class="p">)))</span> <span class="c1"># Convert string to list of integers</span>
|
99
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'percentiles'</span><span class="p">]</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">map</span><span class="p">(</span><span class="nb">int</span><span class="p">,</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'percentiles'</span><span class="p">]</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">','</span><span class="p">)))</span> <span class="c1"># Convert string to list of integers</span>
|
100
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'normalize'</span><span class="p">]</span> <span class="o">=</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'normalize'</span><span class="p">]</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="s1">'true'</span>
|
101
|
+
|
102
|
+
<span class="k">try</span><span class="p">:</span>
|
103
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'measurement'</span><span class="p">]</span> <span class="o">=</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'measurement'</span><span class="p">]</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">','</span><span class="p">)</span> <span class="k">if</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'measurement'</span><span class="p">]</span> <span class="k">else</span> <span class="kc">None</span>
|
104
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'threshold'</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span> <span class="k">if</span> <span class="n">settings</span><span class="p">[</span><span class="s1">'threshold'</span><span class="p">]</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="s1">'none'</span> <span class="k">else</span> <span class="nb">int</span><span class="p">(</span><span class="n">settings</span><span class="p">[</span><span class="s1">'threshold'</span><span class="p">])</span>
|
105
|
+
<span class="k">except</span><span class="p">:</span>
|
106
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'measurement'</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
|
107
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'threshold'</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
|
108
|
+
|
109
|
+
<span class="n">settings</span><span class="p">[</span><span class="s1">'db'</span><span class="p">]</span> <span class="o">=</span> <span class="n">settings</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">'db'</span><span class="p">,</span> <span class="s1">'default.db'</span><span class="p">)</span>
|
110
|
+
|
111
|
+
<span class="c1"># Convert empty strings to None</span>
|
112
|
+
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">settings</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
113
|
+
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="nb">list</span><span class="p">):</span>
|
114
|
+
<span class="n">settings</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="n">v</span> <span class="k">if</span> <span class="n">v</span> <span class="o">!=</span> <span class="s1">''</span> <span class="k">else</span> <span class="kc">None</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">value</span><span class="p">]</span>
|
115
|
+
<span class="k">elif</span> <span class="n">value</span> <span class="o">==</span> <span class="s1">''</span><span class="p">:</span>
|
116
|
+
<span class="n">settings</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
|
117
|
+
|
118
|
+
<span class="n">settings_window</span><span class="o">.</span><span class="n">destroy</span><span class="p">()</span>
|
119
|
+
|
120
|
+
<span class="n">annotate_app</span><span class="p">(</span><span class="n">parent_frame</span><span class="p">,</span> <span class="n">settings</span><span class="p">)</span>
|
121
|
+
|
122
|
+
<span class="n">start_button</span> <span class="o">=</span> <span class="n">spacrButton</span><span class="p">(</span><span class="n">settings_window</span><span class="p">,</span> <span class="n">text</span><span class="o">=</span><span class="s2">"annotate"</span><span class="p">,</span> <span class="n">command</span><span class="o">=</span><span class="n">start_annotation_app</span><span class="p">,</span> <span class="n">show_text</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
|
123
|
+
<span class="n">start_button</span><span class="o">.</span><span class="n">pack</span><span class="p">(</span><span class="n">pady</span><span class="o">=</span><span class="mi">10</span><span class="p">)</span></div>
|
124
|
+
|
125
|
+
|
126
|
+
<div class="viewcode-block" id="start_annotate_app">
|
127
|
+
<a class="viewcode-back" href="../../spacr.html#spacr.app_annotate.start_annotate_app">[docs]</a>
|
128
|
+
<span class="k">def</span> <span class="nf">start_annotate_app</span><span class="p">():</span>
|
129
|
+
<span class="n">app</span> <span class="o">=</span> <span class="n">MainApp</span><span class="p">(</span><span class="n">default_app</span><span class="o">=</span><span class="s2">"Annotate"</span><span class="p">)</span>
|
130
|
+
<span class="n">app</span><span class="o">.</span><span class="n">mainloop</span><span class="p">()</span></div>
|
131
|
+
|
132
|
+
|
133
|
+
<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">"__main__"</span><span class="p">:</span>
|
134
|
+
<span class="n">start_annotate_app</span><span class="p">()</span>
|
135
|
+
</pre></div>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
<footer>
|
140
|
+
|
141
|
+
<hr/>
|
142
|
+
|
143
|
+
<div role="contentinfo">
|
144
|
+
<p>© Copyright 2024, Your Name.</p>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
148
|
+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
149
|
+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
150
|
+
|
151
|
+
|
152
|
+
</footer>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
</section>
|
156
|
+
</div>
|
157
|
+
<script>
|
158
|
+
jQuery(function () {
|
159
|
+
SphinxRtdTheme.Navigation.enable(true);
|
160
|
+
});
|
161
|
+
</script>
|
162
|
+
|
163
|
+
</body>
|
164
|
+
</html>
|
@@ -0,0 +1,117 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="writer-html5" lang="en" data-content_root="../../">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
6
|
+
<title>spacr.app_classify — spacr 0.2.65 documentation</title>
|
7
|
+
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
|
9
|
+
|
10
|
+
|
11
|
+
<!--[if lt IE 9]>
|
12
|
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
13
|
+
<![endif]-->
|
14
|
+
|
15
|
+
<script src="../../_static/jquery.js?v=5d32c60e"></script>
|
16
|
+
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
17
|
+
<script src="../../_static/documentation_options.js?v=30a7333d"></script>
|
18
|
+
<script src="../../_static/doctools.js?v=9a2dae69"></script>
|
19
|
+
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
|
20
|
+
<script src="../../_static/js/theme.js"></script>
|
21
|
+
<link rel="index" title="Index" href="../../genindex.html" />
|
22
|
+
<link rel="search" title="Search" href="../../search.html" />
|
23
|
+
</head>
|
24
|
+
|
25
|
+
<body class="wy-body-for-nav">
|
26
|
+
<div class="wy-grid-for-nav">
|
27
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
28
|
+
<div class="wy-side-scroll">
|
29
|
+
<div class="wy-side-nav-search" >
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<a href="../../index.html" class="icon icon-home">
|
34
|
+
spacr
|
35
|
+
</a>
|
36
|
+
<div class="version">
|
37
|
+
0.2.65
|
38
|
+
</div>
|
39
|
+
<div role="search">
|
40
|
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
41
|
+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
|
42
|
+
<input type="hidden" name="check_keywords" value="yes" />
|
43
|
+
<input type="hidden" name="area" value="default" />
|
44
|
+
</form>
|
45
|
+
</div>
|
46
|
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
47
|
+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
48
|
+
<ul>
|
49
|
+
<li class="toctree-l1"><a class="reference internal" href="../../modules.html">spacr</a></li>
|
50
|
+
</ul>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
57
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
58
|
+
<a href="../../index.html">spacr</a>
|
59
|
+
</nav>
|
60
|
+
|
61
|
+
<div class="wy-nav-content">
|
62
|
+
<div class="rst-content">
|
63
|
+
<div role="navigation" aria-label="Page navigation">
|
64
|
+
<ul class="wy-breadcrumbs">
|
65
|
+
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
|
66
|
+
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
|
67
|
+
<li class="breadcrumb-item active">spacr.app_classify</li>
|
68
|
+
<li class="wy-breadcrumbs-aside">
|
69
|
+
</li>
|
70
|
+
</ul>
|
71
|
+
<hr/>
|
72
|
+
</div>
|
73
|
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
74
|
+
<div itemprop="articleBody">
|
75
|
+
|
76
|
+
<h1>Source code for spacr.app_classify</h1><div class="highlight"><pre>
|
77
|
+
<span></span><span class="kn">from</span> <span class="nn">.gui</span> <span class="kn">import</span> <span class="n">MainApp</span>
|
78
|
+
|
79
|
+
<div class="viewcode-block" id="start_classify_app">
|
80
|
+
<a class="viewcode-back" href="../../spacr.html#spacr.app_classify.start_classify_app">[docs]</a>
|
81
|
+
<span class="k">def</span> <span class="nf">start_classify_app</span><span class="p">():</span>
|
82
|
+
<span class="n">app</span> <span class="o">=</span> <span class="n">MainApp</span><span class="p">(</span><span class="n">default_app</span><span class="o">=</span><span class="s2">"Classify"</span><span class="p">)</span>
|
83
|
+
<span class="n">app</span><span class="o">.</span><span class="n">mainloop</span><span class="p">()</span></div>
|
84
|
+
|
85
|
+
|
86
|
+
<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">"__main__"</span><span class="p">:</span>
|
87
|
+
<span class="n">start_classify_app</span><span class="p">()</span>
|
88
|
+
</pre></div>
|
89
|
+
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
<footer>
|
93
|
+
|
94
|
+
<hr/>
|
95
|
+
|
96
|
+
<div role="contentinfo">
|
97
|
+
<p>© Copyright 2024, Your Name.</p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
|
101
|
+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
102
|
+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
103
|
+
|
104
|
+
|
105
|
+
</footer>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
</section>
|
109
|
+
</div>
|
110
|
+
<script>
|
111
|
+
jQuery(function () {
|
112
|
+
SphinxRtdTheme.Navigation.enable(true);
|
113
|
+
});
|
114
|
+
</script>
|
115
|
+
|
116
|
+
</body>
|
117
|
+
</html>
|