Skip to main content

Napari plugin to analyze point spread functions (PSFs).

Project description

napari-psf-analysis

License PyPI Python Version tests codecov napari hub

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.


application_screenshot

A plugin to analyse point spread functions (PSFs) of optical systems.

Usage

Starting Point

To run a PSF analysis open an image of acquired beads. Add a point-layer and indicate the beads you want to measure by adding a point.

Run Analysis

Open the plugin (Plugins > napari-psf-analysis > PSF Analysis) and ensure that your bead image and point layers are select in the Basic tab under Image and Points respectively. In the Advanced tab further information can be provided. Only the filled in fields of the Advanced tab are saved in the output.

After verifying all input fields click Extract PSFs.

Discard and Save Measurement

Once the PSF extraction has finished a new layer (Analyzed Beads) appears, holding a summary image for every selected bead. Individual summaries can be discarded by clicking the Delete Displayed Measurement button.

Results are saved to the selected Save Dir by clicking the Save Measurements button.

Note: Beads for which the bounding box does not fit within the image are automatically excluded from the analysis and no output is generated.

Saved Data

Every image of the Analyzed Beads layer is saved as {source_image_name}_X {bead-centroid-x}_Y{bead-centroid-y}_Z{bead-centroid-z}.png file. Additionally a PSFMeasurement_{source_image_acquisition_date}_ {source_image_name}_{microscope_name}_{magnification}_{NA}.csv file is stored containing the measured values and all filled in fields.


Installation

We recommend installation into a fresh conda environment.

1. Install napari

conda create -y -n psf-analysis -c conda-forge python=3.9

conda activate psf-analysis

conda install -c conda-forge napari pyqt

2. Install napari-aicsimageio and bioformats

Required if you want to open other files than .tif e.g. .stk. .

Note: See napari-aicsimageio for more information about opening images.

conda install -c conda-forge openjdk bioformats_jar "aicsimageio[all]" napari-aicsimageio

conda deactivate
conda activate psf-analysis

3. Install napari-psf-analysis

You can install napari-psf-analysis via pip:

python -m pip install xmlschema
python -m pip install napari-psf-analysis

4. Optional Set Config

You can provide a config yaml file with the available microscope names and a default save directory. This will change the Microscope text field to a drop down menu and change the default save directory.

example_config.yaml

microscopes:
  - TIRF
  - Zeiss Z1
output_path: "D:\\psf_analysis\\measurements"

To use this config navigate to Plugins > napari-psf-analysis > Set Config and select the config file.

Note: The save path is OS specific.

5. Desktop Icon for Windows

Follow these instructions by Robert Haase.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-psf-analysis" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_psf_analysis-1.2.0.tar.gz (7.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_psf_analysis-1.2.0-py3-none-any.whl (72.2 kB view details)

Uploaded Python 3

File details

Details for the file napari_psf_analysis-1.2.0.tar.gz.

File metadata

  • Download URL: napari_psf_analysis-1.2.0.tar.gz
  • Upload date:
  • Size: 7.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_psf_analysis-1.2.0.tar.gz
Algorithm Hash digest
SHA256 afb79e3797dfa2ae4632b9dec1e71ec7feadedc8cd8a0216640b1220a71d50c6
MD5 68aa0ba1bd7563444bddcaafc7c96e86
BLAKE2b-256 cf91f17bb4faca620edc4450982d9f19a3ca6656e5e1233b343c2ec86a9e992e

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_psf_analysis-1.2.0.tar.gz:

Publisher: publish.yml on fmi-faim/napari-psf-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_psf_analysis-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_psf_analysis-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7578c49817c9d4d718825d3d1102b6d12eed311e5bcf08ca696388b4a6b95fd2
MD5 00e8d80ec6ad003d1cce928590b4b745
BLAKE2b-256 e6a8c07c2236906614a966fdd74b5f83ced49afe10a6508a1ae03f3b18a20d31

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_psf_analysis-1.2.0-py3-none-any.whl:

Publisher: publish.yml on fmi-faim/napari-psf-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page