Skip to main content

Interactive surface analysis in napari for measuring mechanical stresses in biological tissues

Project description

License PyPI Python Version tests codecov pre-commit PyPI - Downloads napari hub DOI

napari-stress

This plugin provides tools for the analysis of surfaces in Napari, such as utilities to determine and refine the surface-representation of objects using a ray-casting approach and calculate the curvature of surfaces. It re-implements code in Napari that was written for Gross et al. (2021): STRESS, an automated geometrical characterization of deformable particles for in vivo measurements of cell and tissue mechanical stresses and has been made open source in this repository.

Usage

Functionality in this repository is divided in two groups: Recipes and plugins.

Recipes

Receipes are workflows for processing images, points and surface data step-by-step.

Recipe Description
Confocal data (.tif), 3D+t: Interactive tutorial on how to extract surfaces from intensity image data
Confocal data (.tif), 3D+t: Interactive tutorial on how to extract curvature from surfaces
Confocal data (.tif), 3D+t: Jupyter notebook for processing single channel data and extracting gaussian curvature.

Plugins

All functions in napari-stress are documented separately for interactive usage from the napari viewer as well as Jupyter notebooks.

Function Links
Fit spherical harmonics: Interactive Code
Surface tracing: Code
Reconstruct surface: Code

Utilities

Data to be used for this plugin is typically of the form [TZYX] (e.g., 3D + time). Napari-stress offers convenient ways to use functions from other repositories (which are often made for 3D data) on timelapse data with the frame_by_frame function and the TimelapseConverter class. Both are described in more detail in this notebook.

Installation

Create a new conda environment with the following command. If you have never used conda before, please read this guide first.

conda create -n napari-stress Python=3.9 napari jupyterlab -c conda-forge
conda activate napari-stress

You can then install napari-stress using pip:

pip install napari-stress

Issues

To report bugs, request new features or get in touch, please open an issue or tag @EL_Pollo_Diablo on image.sc.

See also

There are other napari plugins with similar / overlapping functionality

Contributing

Contributions are very welcome. Tests can be run with pytest, 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-stress" is free and open source software

Acknowledgements

This project was supported by the Deutsche Forschungsgemeinschaft under Germany’s Excellence Strategy – EXC2068 - Cluster of Excellence "Physics of Life" of TU Dresden.

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-stress-0.0.14.tar.gz (94.8 kB view details)

Uploaded Source

Built Distribution

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

napari_stress-0.0.14-py3-none-any.whl (96.4 kB view details)

Uploaded Python 3

File details

Details for the file napari-stress-0.0.14.tar.gz.

File metadata

  • Download URL: napari-stress-0.0.14.tar.gz
  • Upload date:
  • Size: 94.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.6.4 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for napari-stress-0.0.14.tar.gz
Algorithm Hash digest
SHA256 2444dc6d7d1e5532418592351f0533a2a4101753d6eeaa55cc1013d8b9e1e4d3
MD5 f3d43ae64362cdf2cd8f225aab2430dd
BLAKE2b-256 32cf7717753503be5f17bc49918f7b30a01a20d8ef2c712bdb1e26bfba5aeaee

See more details on using hashes here.

File details

Details for the file napari_stress-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: napari_stress-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 96.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.6.4 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for napari_stress-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b7fa83589547375afd0b27ed236903b49aac90f1254b78e9cb569098ef2a5dcf
MD5 5f0b59f80bc98a9afe6e256512b49401
BLAKE2b-256 6357f3a383c9fb58eeaa5ca413a947469538e381fb19780ab7c421b3f1123992

See more details on using hashes here.

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