AMS-BP 0.4.0__tar.gz → 0.4.3__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.
- {ams_bp-0.4.0 → ams_bp-0.4.3}/PKG-INFO +12 -30
- {ams_bp-0.4.0 → ams_bp-0.4.3}/README.md +11 -29
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/index.md +73 -57
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/__init__.py +1 -1
- ams_bp-0.4.3/src/AMS_BP/gui/README.md +81 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/configuration_window.py +71 -77
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/main.py +32 -1
- ams_bp-0.4.3/src/AMS_BP/gui/themes/dark_theme.qss +86 -0
- ams_bp-0.4.3/src/AMS_BP/gui/themes/light_theme.qss +85 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/camera_config_widget.py +11 -4
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/cell_config_widget.py +10 -4
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/channel_config_widget.py +10 -4
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/condensate_config_widget.py +20 -11
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/experiment_config_widget.py +19 -6
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/flurophore_config_widget.py +5 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/global_config_widget.py +11 -4
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/laser_config_widget.py +10 -4
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/molecule_config_widget.py +14 -8
- ams_bp-0.4.3/src/AMS_BP/gui/widgets/utility_widgets/toggleswitch_widget.py +60 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/uv.lock +531 -496
- ams_bp-0.4.0/src/AMS_BP/gui/README.md +0 -77
- {ams_bp-0.4.0 → ams_bp-0.4.3}/.github/workflows/lint.yml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/.github/workflows/pages.yml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/.github/workflows/publish_pypi.yml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/.gitignore +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/LICENSE +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/configio/configmodels.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/configio/convertconfig.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/configio/experiments.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/configio/saving.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/groundtruth_generators/nuclearporecomplexes.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/main_cli.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/metadata/metadata.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/motion/condensate_movement.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/motion/movement/boundary_conditions.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/motion/movement/fbm_BP.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/motion/track_gen.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/camera/detectors.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/camera/quantum_eff.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/filters/channels/channelschema.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/filters/filters.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/lasers/laser_profiles.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/optics/psf/psf_engine.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/photophysics/photon_physics.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/photophysics/state_kinetics.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/probabilityfuncs/markov_chain.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/probabilityfuncs/probability_functions.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/sample/flurophore/flurophore_schema.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/sample/sim_sampleplane.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/sim_config.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/sim_microscopy.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/utils/constants.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/utils/errors.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/API_Documentation/utils/util_functions.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/buttons/ButtonFigure_FRAP.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/buttons/ButtonFigure_fPALM_NPC.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/buttons/ButtonFigure_sptPALM_mmaple.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/buttons/ButtonFigure_zstack_twocolor_confocal.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/buttons/ButtonFigure_zstack_twocolor_widefield.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/figures/Fig1_Schema.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/icons/Cells-actin-like-a-tree-Jamie-Whitelaw-1.png +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/icons/drawing.pdf +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/icons/drawing.png +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/docs/assets/icons/drawing.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_base_[[0. 0.]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_base_[[0.04 0.04]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_base_[[0.1 0.1]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_base_[[0.4 0.4]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_data_[[0. 0.]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_data_[[0.04 0.04]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_data_[[0.1 0.1]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_data_[[0.4 0.4]].txt +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/MotionModels/groundtruth_boundedfbm.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/PALM/fPALM/export_full2_0039_039.csv +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/PALM/fPALM/npc_palm.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/PALM/sptPALM/motionmodels_sptmmaple.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/TwoColor/Confocal/confocal_twocolor.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/QuantitativeExperiments/TwoColor/Widefield/widefield_twocolor.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/VisualizingIndividualModules/laser_modulation.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/examples/VisualizingIndividualModules/modules_explained.ipynb +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/mkdocs.yml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/pyproject.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/pytest.ini +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/cells/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/cells/budding_yeast_cell.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/cells/cell_factory.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/configio/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/configio/configmodels.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/configio/convertconfig.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/configio/experiments.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/configio/saving.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/groundtruth_generators/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/groundtruth_generators/nuclearporecomplexes.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/assets/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/assets/drawing.svg +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/cell_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/channels_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/condensate_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/detector_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/experiment_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/fluorophore_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/general_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/global_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/laser_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/molecule_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/output_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_docs/psf_help.md +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/help_window.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/logging_window.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/sim_worker.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/template_window_selection.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/general_config_widget.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/output_config_widget.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/psf_config_widget.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/utility_widgets/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/utility_widgets/scinotation_widget.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/gui/widgets/utility_widgets/spectrum_widget.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/logging/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/logging/logutil.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/logging/setup_run_directory.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/main_cli.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/metadata/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/metadata/metadata.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/motion/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/motion/condensate_movement.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/motion/movement/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/motion/movement/boundary_conditions.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/motion/track_gen.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/camera/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/camera/detectors.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/camera/quantum_eff.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/filters/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/filters/channels/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/filters/channels/channelschema.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/filters/filters.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/lasers/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/lasers/laser_profiles.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/lasers/scanning_patterns.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/psf/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/optics/psf/psf_engine.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/photophysics/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/photophysics/photon_physics.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/photophysics/state_kinetics.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/probabilityfuncs/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/probabilityfuncs/markov_chain.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/probabilityfuncs/probability_functions.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/resources/template_configs/metadata_configs.json +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/resources/template_configs/sim_config.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/resources/template_configs/twocolor_widefield_timeseries_live.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/resources/template_configs/twocolor_widefield_zstack_fixed.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/resources/template_configs/twocolor_widefield_zstack_live.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/run_sim_util.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sample/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sample/flurophores/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sample/flurophores/flurophore_schema.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sample/sim_sampleplane.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sim_config.toml +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/sim_microscopy.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/__init__.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/constants.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/decorators.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/errors.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/maskMaker.py +0 -0
- {ams_bp-0.4.0 → ams_bp-0.4.3}/src/AMS_BP/utils/util_functions.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: AMS_BP
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.3
|
4
4
|
Summary: Advanced Microscopy Simulations developed for the Weber Lab by Baljyot Singh Parmar
|
5
5
|
Project-URL: Documentation, https://joemans3.github.io/AMS_BP/
|
6
6
|
Project-URL: Source code, https://github.com/joemans3/AMS_BP
|
@@ -46,7 +46,7 @@ Find detailed API references for the library at: [joemans3/github.io/AMS_BP](htt
|
|
46
46
|
|
47
47
|
> !!ATTENTION!! - Please note that you NEED to install the developmental dependencies to run the examples in full. This is mainly for installing the Jupyter notebook extensions, matplotlib and other visualization packages.
|
48
48
|
|
49
|
-
[<img src="./docs/assets/buttons/ButtonFigure_FRAP.svg" width="300" height="120"/>](./examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_fPALM_NPC.svg" width="300"/>](./examples/QuantitativeExperiments/
|
49
|
+
[<img src="./docs/assets/buttons/ButtonFigure_FRAP.svg" width="300" height="120"/>](./examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_fPALM_NPC.svg" width="300"/>](./examples/QuantitativeExperiments/PALM/fPALM/npc_palm.ipynb)
|
50
50
|
|
51
51
|
[<img src="./docs/assets/buttons/ButtonFigure_zstack_twocolor_widefield.svg" width="300"/>](./examples/QuantitativeExperiments/TwoColor/Widefield/widefield_twocolor.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_zstack_twocolor_confocal.svg" width="300"/>](./examples/QuantitativeExperiments/TwoColor/Confocal/confocal_twocolor.ipynb)
|
52
52
|
|
@@ -63,31 +63,29 @@ Find detailed API references for the library at: [joemans3/github.io/AMS_BP](htt
|
|
63
63
|
|
64
64
|
|
65
65
|
### ***Installing the CLI tool using UV***
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
66
|
1. [Install UV](https://docs.astral.sh/uv/getting-started/installation/).
|
71
67
|
2. Run the command:
|
72
68
|
```bash
|
73
69
|
uv tool install AMS_BP
|
74
70
|
```
|
75
|
-
3. You will have access to
|
71
|
+
3. You will have access to three CLI commands (using the uv interface):
|
76
72
|
- `run_AMS_BP runsim` : This is the main entry point for the simulation. (see `run_AMS_BP runsim --help` for more details)
|
77
73
|
- `run_AMS_BP config` : This is a helper tool to generate a template config file for the simulation. (see `run_AMS_BP config --help` for more details)
|
74
|
+
- `run_AMS_BP gui` : to start the GUI. See [GUI Documentation](./src/AMS_BP/gui/README.md)
|
78
75
|
- Note: using `run_AMS_BP --help` will show you all the available commands.
|
79
76
|
4. You can now use these tools (they are isolated in their own env created by uv, which is cool).
|
80
77
|
|
81
78
|
### ***PyPi***
|
82
79
|
|
83
|
-
1.
|
80
|
+
1. If using pip, make sure the environment is python >= 3.12
|
81
|
+
2. Run:
|
84
82
|
```bash
|
85
83
|
pip install AMS_BP
|
86
84
|
```
|
87
85
|
|
88
86
|
## Command Line Interface
|
89
87
|
|
90
|
-
AMS-BP provides a command-line interface with
|
88
|
+
AMS-BP provides a command-line interface with three main commands:
|
91
89
|
|
92
90
|
```bash
|
93
91
|
# Generate a default configuration file
|
@@ -111,10 +109,10 @@ In addition to the CLI and programmatic API, AMS-BP comes with a graphical inter
|
|
111
109
|
### Main GUI Features
|
112
110
|
The GUI provides the following tools from a single interface:
|
113
111
|
|
114
|
-
**Create Configuration File** — Launches the visual configuration builder
|
115
|
-
**Run Simulation from Config** — Select a .toml file and run the simulation with logging and progress tracking
|
116
|
-
**Visualize Microscopy Data (Napari)** — Open TIFF, PNG, ND2, or Zarr image files and view with the Napari viewer
|
117
|
-
**Package Logs for Sharing** — Package run directories (e.g., run_2024_04_20_001) into a .zip file for archival or collaboration
|
112
|
+
- **Create Configuration File** — Launches the visual configuration builder
|
113
|
+
- **Run Simulation from Config** — Select a .toml file and run the simulation with logging and progress tracking
|
114
|
+
- **Visualize Microscopy Data (Napari)** — Open TIFF, PNG, ND2, or Zarr image files and view with the Napari viewer
|
115
|
+
- **Package Logs for Sharing** — Package run directories (e.g., run_2024_04_20_001) into a .zip file for archival or collaboration
|
118
116
|
|
119
117
|
### Launch the GUI
|
120
118
|
To start the GUI, run:
|
@@ -123,23 +121,7 @@ To start the GUI, run:
|
|
123
121
|
|
124
122
|
run_AMS_BP gui
|
125
123
|
```
|
126
|
-
|
127
|
-
Clicking "Create Configuration File" opens a template selector where you can choose a preconfigured simulation (with preview images), and then visually edit all configuration options through dedicated tabs.
|
128
|
-
|
129
|
-
Each section of the configuration is editable via structured UI forms, with contextual help and validation. Tabs include:
|
130
|
-
|
131
|
-
- Global/Cell/Molecule/Condensate/Fluorophore parameters
|
132
|
-
- Laser and optical configuration
|
133
|
-
- Camera and channel settings
|
134
|
-
- Experiment setup (e.g., z-stack vs time-series)
|
135
|
-
Once ready, click "Preview Configuration TOML" to inspect the final file, and "Save" to export.
|
136
|
-
|
137
|
-
#### Running Simulations from GUI
|
138
|
-
Clicking "Run Simulation from Config" lets you select any .toml configuration file. A real-time log viewer shows progress, and outputs are saved in a structured AMS_runs/run_*/ directory.
|
139
|
-
|
140
|
-
#### Sharing Logs
|
141
|
-
Run into an issue? Use the packge logs button to select the logs corresponding to the simulation you just ran, save them and send them over to us! It will help you diagnose the issue!
|
142
|
-
|
124
|
+
For detailed walkthrough see the [GUI Documentation](./src/AMS_BP/gui/README.md).
|
143
125
|
## Configuration File
|
144
126
|
|
145
127
|
The configuration file (sim_config.toml) is divided into several key sections:
|
@@ -20,7 +20,7 @@ Find detailed API references for the library at: [joemans3/github.io/AMS_BP](htt
|
|
20
20
|
|
21
21
|
> !!ATTENTION!! - Please note that you NEED to install the developmental dependencies to run the examples in full. This is mainly for installing the Jupyter notebook extensions, matplotlib and other visualization packages.
|
22
22
|
|
23
|
-
[<img src="./docs/assets/buttons/ButtonFigure_FRAP.svg" width="300" height="120"/>](./examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_fPALM_NPC.svg" width="300"/>](./examples/QuantitativeExperiments/
|
23
|
+
[<img src="./docs/assets/buttons/ButtonFigure_FRAP.svg" width="300" height="120"/>](./examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_fPALM_NPC.svg" width="300"/>](./examples/QuantitativeExperiments/PALM/fPALM/npc_palm.ipynb)
|
24
24
|
|
25
25
|
[<img src="./docs/assets/buttons/ButtonFigure_zstack_twocolor_widefield.svg" width="300"/>](./examples/QuantitativeExperiments/TwoColor/Widefield/widefield_twocolor.ipynb) [<img src="./docs/assets/buttons/ButtonFigure_zstack_twocolor_confocal.svg" width="300"/>](./examples/QuantitativeExperiments/TwoColor/Confocal/confocal_twocolor.ipynb)
|
26
26
|
|
@@ -37,31 +37,29 @@ Find detailed API references for the library at: [joemans3/github.io/AMS_BP](htt
|
|
37
37
|
|
38
38
|
|
39
39
|
### ***Installing the CLI tool using UV***
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
40
|
1. [Install UV](https://docs.astral.sh/uv/getting-started/installation/).
|
45
41
|
2. Run the command:
|
46
42
|
```bash
|
47
43
|
uv tool install AMS_BP
|
48
44
|
```
|
49
|
-
3. You will have access to
|
45
|
+
3. You will have access to three CLI commands (using the uv interface):
|
50
46
|
- `run_AMS_BP runsim` : This is the main entry point for the simulation. (see `run_AMS_BP runsim --help` for more details)
|
51
47
|
- `run_AMS_BP config` : This is a helper tool to generate a template config file for the simulation. (see `run_AMS_BP config --help` for more details)
|
48
|
+
- `run_AMS_BP gui` : to start the GUI. See [GUI Documentation](./src/AMS_BP/gui/README.md)
|
52
49
|
- Note: using `run_AMS_BP --help` will show you all the available commands.
|
53
50
|
4. You can now use these tools (they are isolated in their own env created by uv, which is cool).
|
54
51
|
|
55
52
|
### ***PyPi***
|
56
53
|
|
57
|
-
1.
|
54
|
+
1. If using pip, make sure the environment is python >= 3.12
|
55
|
+
2. Run:
|
58
56
|
```bash
|
59
57
|
pip install AMS_BP
|
60
58
|
```
|
61
59
|
|
62
60
|
## Command Line Interface
|
63
61
|
|
64
|
-
AMS-BP provides a command-line interface with
|
62
|
+
AMS-BP provides a command-line interface with three main commands:
|
65
63
|
|
66
64
|
```bash
|
67
65
|
# Generate a default configuration file
|
@@ -85,10 +83,10 @@ In addition to the CLI and programmatic API, AMS-BP comes with a graphical inter
|
|
85
83
|
### Main GUI Features
|
86
84
|
The GUI provides the following tools from a single interface:
|
87
85
|
|
88
|
-
**Create Configuration File** — Launches the visual configuration builder
|
89
|
-
**Run Simulation from Config** — Select a .toml file and run the simulation with logging and progress tracking
|
90
|
-
**Visualize Microscopy Data (Napari)** — Open TIFF, PNG, ND2, or Zarr image files and view with the Napari viewer
|
91
|
-
**Package Logs for Sharing** — Package run directories (e.g., run_2024_04_20_001) into a .zip file for archival or collaboration
|
86
|
+
- **Create Configuration File** — Launches the visual configuration builder
|
87
|
+
- **Run Simulation from Config** — Select a .toml file and run the simulation with logging and progress tracking
|
88
|
+
- **Visualize Microscopy Data (Napari)** — Open TIFF, PNG, ND2, or Zarr image files and view with the Napari viewer
|
89
|
+
- **Package Logs for Sharing** — Package run directories (e.g., run_2024_04_20_001) into a .zip file for archival or collaboration
|
92
90
|
|
93
91
|
### Launch the GUI
|
94
92
|
To start the GUI, run:
|
@@ -97,23 +95,7 @@ To start the GUI, run:
|
|
97
95
|
|
98
96
|
run_AMS_BP gui
|
99
97
|
```
|
100
|
-
|
101
|
-
Clicking "Create Configuration File" opens a template selector where you can choose a preconfigured simulation (with preview images), and then visually edit all configuration options through dedicated tabs.
|
102
|
-
|
103
|
-
Each section of the configuration is editable via structured UI forms, with contextual help and validation. Tabs include:
|
104
|
-
|
105
|
-
- Global/Cell/Molecule/Condensate/Fluorophore parameters
|
106
|
-
- Laser and optical configuration
|
107
|
-
- Camera and channel settings
|
108
|
-
- Experiment setup (e.g., z-stack vs time-series)
|
109
|
-
Once ready, click "Preview Configuration TOML" to inspect the final file, and "Save" to export.
|
110
|
-
|
111
|
-
#### Running Simulations from GUI
|
112
|
-
Clicking "Run Simulation from Config" lets you select any .toml configuration file. A real-time log viewer shows progress, and outputs are saved in a structured AMS_runs/run_*/ directory.
|
113
|
-
|
114
|
-
#### Sharing Logs
|
115
|
-
Run into an issue? Use the packge logs button to select the logs corresponding to the simulation you just ran, save them and send them over to us! It will help you diagnose the issue!
|
116
|
-
|
98
|
+
For detailed walkthrough see the [GUI Documentation](./src/AMS_BP/gui/README.md).
|
117
99
|
## Configuration File
|
118
100
|
|
119
101
|
The configuration file (sim_config.toml) is divided into several key sections:
|
@@ -1,15 +1,34 @@
|
|
1
|
-
# AMS-BP
|
1
|
+
# AMS-BP
|
2
2
|
<p>
|
3
|
-
<img src="assets/icons/drawing.svg" alt="AMS-BP Logo" width="500" height="200">
|
3
|
+
<img src="./assets/icons/drawing.svg" alt="AMS-BP Logo" width="500" height="200">
|
4
4
|
</p>
|
5
|
+
|
5
6
|
## Advanced Fluorescence Microscopy Simulation Tool
|
6
7
|
|
7
8
|
AMS-BP is a powerful simulation tool for advanced fluorescence microscopy experiments. This guide covers both command-line usage and library integration.
|
8
9
|
|
10
|
+
## Overview of Simulation Workflow
|
11
|
+
<img align = "left" src="./assets/figures/Fig1_Schema.svg" width="500"/>
|
12
|
+
|
13
|
+
*A ground truth is created, **a**, with $`f_{n}`$ fluorophore types of $`N_{f_{n}}`$ molecules each. If applicable, the motion of these molecules is modelled using a 3D bounded FBM with fluctuating generalized diffusion coefficients and Hurst parameters. Variations are modelled as a Markov Chain and require rate constants as parameters. Different fluorophores can have different motion models. The resolution of the motion models is $`\Delta t`$ and cannot be smaller than 1 ms (for computational efficiency). Given the microscope parameters specific to the experimental procedure to simulate, at every time $`t_{j}`$, the excitation intensity for each channel (**b**) is calculated at each fluorophore's location, **c**. For $`t_{j} \rightarrow t_{j+\Delta t}`$, the photophysical state trajectory of the fluorophore is simulated using the light intensity at the molecule's location as input for any light-dependent transition rates, **d**. For the duration that the shutter is open and light is emitted from the sample, emission filters for each channel are applied before the convolution with PSF models, **e**. The incident photons on the detector are then converted to photoelectrons and finally to digital units using the detector models provided, **f**.*
|
14
|
+
|
15
|
+
## API Reference and Docs
|
16
|
+
Find detailed API references for the library at: [joemans3/github.io/AMS_BP](https://joemans3.github.io/AMS_BP/)
|
17
|
+
> A more detailed example is provided in the jupyter notebook in the examples. For starters refer to the [VisualizingIndividualModules](../examples/VisualizingIndividualModules/modules_explained.ipynb). Then head over to the [laser modulation module](../examples/VisualizingIndividualModules/laser_modulation.ipynb) which will show how to change the laser power over time in the simulations. Then view an example of a complex experiment setup for [FRAP](../examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) which is possible by the use of compositions of modules in this simulation library.
|
18
|
+
|
19
|
+
## Examples (Click on the image buttons to be taken to the Jupyter notebooks):
|
20
|
+
|
21
|
+
> !!ATTENTION!! - Please note that you NEED to install the developmental dependencies to run the examples in full. This is mainly for installing the Jupyter notebook extensions, matplotlib and other visualization packages.
|
22
|
+
|
23
|
+
[<img src="./assets/buttons/ButtonFigure_FRAP.svg" width="300" height="120"/>](../examples/QuantitativeExperiments/FRAP/FRAP_methods.ipynb) [<img src="./assets/buttons/ButtonFigure_fPALM_NPC.svg" width="300"/>](../examples/QuantitativeExperiments/PALM/fPALM/npc_palm.ipynb)
|
24
|
+
|
25
|
+
[<img src="./assets/buttons/ButtonFigure_zstack_twocolor_widefield.svg" width="300"/>](../examples/QuantitativeExperiments/TwoColor/Widefield/widefield_twocolor.ipynb) [<img src="./assets/buttons/ButtonFigure_zstack_twocolor_confocal.svg" width="300"/>](../examples/QuantitativeExperiments/TwoColor/Confocal/confocal_twocolor.ipynb)
|
9
26
|
|
27
|
+
[<img align="middle" src="./assets/buttons/ButtonFigure_sptPALM_mmaple.svg" width="300"/>](../examples/QuantitativeExperiments/PALM/sptPALM/motionmodels_sptmmaple.ipynb)
|
10
28
|
## Table of Contents
|
11
|
-
- [Installation](#installation)
|
29
|
+
- [Installation](#installation)
|
12
30
|
- [Command Line Interface](#command-line-interface)
|
31
|
+
- [GUI](#gui)
|
13
32
|
- [Configuration File](#configuration-file)
|
14
33
|
- [Running Experiments](#running-experiments)
|
15
34
|
- [Advanced Usage](#advanced-usage)
|
@@ -18,23 +37,29 @@ AMS-BP is a powerful simulation tool for advanced fluorescence microscopy experi
|
|
18
37
|
|
19
38
|
|
20
39
|
### ***Installing the CLI tool using UV***
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
40
|
1. [Install UV](https://docs.astral.sh/uv/getting-started/installation/).
|
26
41
|
2. Run the command:
|
27
42
|
```bash
|
28
43
|
uv tool install AMS_BP
|
29
44
|
```
|
30
|
-
3. You will have access to
|
45
|
+
3. You will have access to three CLI commands (using the uv interface):
|
31
46
|
- `run_AMS_BP runsim` : This is the main entry point for the simulation. (see `run_AMS_BP runsim --help` for more details)
|
32
47
|
- `run_AMS_BP config` : This is a helper tool to generate a template config file for the simulation. (see `run_AMS_BP config --help` for more details)
|
48
|
+
- `run_AMS_BP gui` : to start the GUI. See [GUI Documentation](../src/AMS_BP/gui/README.md)
|
33
49
|
- Note: using `run_AMS_BP --help` will show you all the available commands.
|
34
50
|
4. You can now use these tools (they are isolated in their own env created by uv, which is cool).
|
51
|
+
|
52
|
+
### ***PyPi***
|
53
|
+
|
54
|
+
1. If using pip, make sure the environment is python >= 3.12
|
55
|
+
2. Run:
|
56
|
+
```bash
|
57
|
+
pip install AMS_BP
|
58
|
+
```
|
59
|
+
|
35
60
|
## Command Line Interface
|
36
61
|
|
37
|
-
AMS-BP provides a command-line interface with
|
62
|
+
AMS-BP provides a command-line interface with three main commands:
|
38
63
|
|
39
64
|
```bash
|
40
65
|
# Generate a default configuration file
|
@@ -42,6 +67,9 @@ run_AMS_BP config [OPTIONS]
|
|
42
67
|
|
43
68
|
# Run a simulation using a configuration file
|
44
69
|
run_AMS_BP runsim CONFIG_FILE
|
70
|
+
|
71
|
+
#start the GUI
|
72
|
+
run_AMS_BP gui
|
45
73
|
```
|
46
74
|
|
47
75
|
### Config Command Options
|
@@ -49,17 +77,30 @@ run_AMS_BP runsim CONFIG_FILE
|
|
49
77
|
- `-o, --output_path PATH`: Specify the output directory for the configuration file
|
50
78
|
- `-r, --recursive_o`: Create output directory if it doesn't exist
|
51
79
|
|
80
|
+
## GUI
|
81
|
+
In addition to the CLI and programmatic API, AMS-BP comes with a graphical interface to guide users through the configuration, simulation, and analysis pipeline.
|
52
82
|
|
53
|
-
|
54
|
-
|
55
|
-
|
83
|
+
### Main GUI Features
|
84
|
+
The GUI provides the following tools from a single interface:
|
85
|
+
|
86
|
+
- **Create Configuration File** — Launches the visual configuration builder
|
87
|
+
- **Run Simulation from Config** — Select a .toml file and run the simulation with logging and progress tracking
|
88
|
+
- **Visualize Microscopy Data (Napari)** — Open TIFF, PNG, ND2, or Zarr image files and view with the Napari viewer
|
89
|
+
- **Package Logs for Sharing** — Package run directories (e.g., run_2024_04_20_001) into a .zip file for archival or collaboration
|
56
90
|
|
91
|
+
### Launch the GUI
|
92
|
+
To start the GUI, run:
|
57
93
|
|
94
|
+
```bash
|
95
|
+
|
96
|
+
run_AMS_BP gui
|
97
|
+
```
|
98
|
+
For detailed walkthrough see the [GUI Documentation](../src/AMS_BP/gui/README.md).
|
58
99
|
## Configuration File
|
59
100
|
|
60
101
|
The configuration file (sim_config.toml) is divided into several key sections:
|
61
102
|
|
62
|
-
#### For a detailed description of the configuration file, refer to the [Configuration File Reference](
|
103
|
+
#### For a detailed description of the configuration file, refer to the [Configuration File Reference](https://joemans3.github.io/AMS_BP/API_Documentation/sim_config/).
|
63
104
|
### Basic Units
|
64
105
|
```toml
|
65
106
|
version = "0.1"
|
@@ -99,7 +140,8 @@ diffusion_unit = "um^2/s" # diffusion coefficient units
|
|
99
140
|
|
100
141
|
## Running Experiments
|
101
142
|
|
102
|
-
AMS-BP supports two types of experiments:
|
143
|
+
AMS-BP's CLI currently supports two types of experiments:
|
144
|
+
> (however this can be extended when used as a library)
|
103
145
|
|
104
146
|
### 1. Time Series
|
105
147
|
```toml
|
@@ -120,39 +162,25 @@ laser_names_active = ["red", "blue"]
|
|
120
162
|
laser_powers_active = [0.5, 0.05]
|
121
163
|
laser_positions_active = [[5, 5, 0], [5, 5, 0]]
|
122
164
|
```
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
For programmatic control, you can import and use AMS-BP as a Python library:
|
129
|
-
|
130
|
-
```python
|
131
|
-
from AMS_BP.configio.convertconfig import ConfigLoader
|
132
|
-
|
133
|
-
# Configuration loader intialization
|
134
|
-
config_loader = ConfigLoader(config_path="path/to/config.toml")
|
135
|
-
|
136
|
-
# Setup microscope
|
137
|
-
setup_config = config_loader.setup_microscope()
|
138
|
-
microscope = setup_config["microscope"]
|
139
|
-
config_exp = setup_config["experiment_config"]
|
140
|
-
function_exp = setup_config["experiment_func"]
|
141
|
-
|
142
|
-
# Run simulation
|
143
|
-
frames, metadata = function_exp(microscope=microscope, config=config_exp)
|
144
|
-
|
145
|
-
# Save results
|
146
|
-
from AMS_BP.configio.saving import save_config_frames
|
147
|
-
save_config_frames(metadata, frames, setup_config["base_config"].OutputParameters)
|
165
|
+
To run the default configuration:
|
166
|
+
1. Make sure you followed the uv tool installation.
|
167
|
+
2. Make a copy of the default configuration file using the command:
|
168
|
+
```bash
|
169
|
+
run_AMS_BP config
|
148
170
|
```
|
171
|
+
3. Run the sim:
|
172
|
+
```bash
|
173
|
+
run_AMS_BP runsim sim_config.toml
|
174
|
+
```
|
175
|
+
4. View the results in the newly created folder, whose name is defined in the config file.
|
149
176
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
177
|
+
## High Priority Features
|
178
|
+
~~1. Irregular cell shapes with motion models~~ (supported with release of v0.2.0)
|
179
|
+
2. Stimulated Emission models
|
180
|
+
3. STORM workflow examples
|
181
|
+
4. CTRW motion models
|
182
|
+
5. Simpler configurations
|
183
|
+
> **_NOTE:_** Please note that this application DOES NOT currently model the process of stimulated emission, and as such is not suitable for simulating stimulated emission microscopy ([STED](https://en.wikipedia.org/wiki/STED_microscopy))-type experiments. Work in this area is ongoing.
|
156
184
|
|
157
185
|
### Custom Experiment Types
|
158
186
|
|
@@ -163,18 +191,6 @@ When using AMS-BP as a library, you can create custom experiment types by:
|
|
163
191
|
3. Defining new molecule behaviors
|
164
192
|
4. Creating specialized analysis routines
|
165
193
|
|
166
|
-
## API Reference and Docs
|
167
|
-
Find detailed API references for the library at: [joemans3/github.io/AMS_BP](https://joemans3.github.io/AMS_BP/)
|
168
|
-
> A more detailed example is provided in the jupyter notebook in the examples. For starters refer to the [VisualizingIndividualModules](examples/VisualizingIndividualModules/modules_explained.ipynb). Then head over to the [laser modulation module](examples/VisualizingIndividualModules/laser_modulation.ipynb) which will show how to change the laser power over time in the simulations. Then view an example of a complex experiment setup for [FRAP](examples/QuantitativeExperiments/FRAP_methods.ipynb) which is possible by the use of compositions of modules in this simulation library.
|
169
|
-
|
170
|
-
## High Priority Features
|
171
|
-
1. Irregular cell shapes with motion models
|
172
|
-
2. Stimulated Emission models
|
173
|
-
3. STORM workflow examples
|
174
|
-
4. CTRW motion models
|
175
|
-
5. Simpler configurations
|
176
|
-
|
177
|
-
|
178
194
|
## Tips and Best Practices
|
179
195
|
|
180
196
|
1. **Configuration Management**
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# AMS-BP GUI
|
2
|
+
|
3
|
+
The AMS-BP GUI provides a user-friendly interface for constructing and validating configuration files for the AMS-BP fluorescence microscopy simulation framework. It integrates simulation execution, configuration design, log packaging, and data visualization in one cohesive window.
|
4
|
+
|
5
|
+
## Overview
|
6
|
+
|
7
|
+
This GUI supports:
|
8
|
+
|
9
|
+
- A template-based configuration builder for quick setup.
|
10
|
+
- A visual editor for each simulation parameter block (cells, molecules, fluorophores, lasers, etc.).
|
11
|
+
- Interactive help sections for each tab.
|
12
|
+
- Simulation execution using prebuilt configs.
|
13
|
+
- Napari integration for visualization of resulting microscopy data.
|
14
|
+
- Packaging of simulation logs for easy sharing.
|
15
|
+
|
16
|
+
## Launching the GUI
|
17
|
+
|
18
|
+
```bash
|
19
|
+
run_AMS_BP gui
|
20
|
+
```
|
21
|
+
## GUI Structure
|
22
|
+
|
23
|
+
### Main Window
|
24
|
+
The main window (MainWindow) acts as the launchpad for:
|
25
|
+
|
26
|
+
- Configuration Builder — Launches a template selector and opens a full editor.
|
27
|
+
- Run Simulation from Config — Lets you pick a .toml file and start the simulation.
|
28
|
+
- Visualize Microscopy Data — Opens TIFF and other images in a Napari viewer.
|
29
|
+
- Package Logs for Sharing — Archives a run_* folder into a .zip.
|
30
|
+
|
31
|
+
#### Configuration Editor
|
32
|
+
Once a template is selected, the ConfigEditor is launched. It contains:
|
33
|
+
|
34
|
+
- A dropdown navigation system replacing traditional tabs.
|
35
|
+
- A floating tab counter and preview/save buttons.
|
36
|
+
- A help button per section (reads *.md files from help_docs/).
|
37
|
+
- Live validation using internal config models (convertconfig.py).
|
38
|
+
|
39
|
+
##### Tabs & Widgets
|
40
|
+
Each configuration section is implemented as a modular PyQt widget, including:
|
41
|
+
|
42
|
+
- GlobalConfigWidget
|
43
|
+
- CellConfigWidget
|
44
|
+
- MoleculeConfigWidget
|
45
|
+
- FluorophoreConfigWidget
|
46
|
+
- CondensateConfigWidget
|
47
|
+
- LaserConfigWidget
|
48
|
+
- ExperimentConfigWidget
|
49
|
+
- ...and more
|
50
|
+
|
51
|
+
Each widget supports:
|
52
|
+
|
53
|
+
- get_data() → Extract validated dictionary data
|
54
|
+
- set_data(data: dict) → Load existing config into the UI
|
55
|
+
- validate() → Validate using backend logic
|
56
|
+
- get_help_path() → Load the corresponding markdown help page
|
57
|
+
|
58
|
+
#### Running a Simulation
|
59
|
+
|
60
|
+
Once you've completed the config file setup via the GUI:
|
61
|
+
|
62
|
+
- Click "Preview Configuration TOML" to confirm contents.
|
63
|
+
- Click "Ready to Save Configuration" and choose a .toml path.
|
64
|
+
- Return to the main window, click "Run Simulation from Config".
|
65
|
+
- Simulation will launch in a background thread and print logs to a live window.
|
66
|
+
- Once done, results will be saved in a run_*/ folder.
|
67
|
+
|
68
|
+
#### Viewing Results
|
69
|
+
|
70
|
+
- Click "Visualize Microscopy Data (Napari)"
|
71
|
+
- Select any .tif, .tiff, .nd2, or .zarr file
|
72
|
+
|
73
|
+
The data will be loaded into a new Napari viewer session
|
74
|
+
|
75
|
+
#### Packaging Logs
|
76
|
+
|
77
|
+
To share or archive a completed simulation:
|
78
|
+
|
79
|
+
- Click "Package Logs for Sharing".
|
80
|
+
- Select the run_* folder you want.
|
81
|
+
- Choose a destination for the .zip file.
|