Python Module to do Hypespectral Imaging Analysis using the Phasor Transform
Project description
hsipy: Is a Python module to perform phasor analysis and visualization.
Hyperspectral imaging (HSI) have become paramount in biomedical science. The power of the combination between traditional imaging and spectroscopy opens the possibility to address information inaccessible before. For bioimaging analysis of these data, the Phasor Plots are tools that help the field because of their straightforward approach. Thus it is becoming a key player in democratizing access to HSI, and improve open source software for bioimaging communities.
hsipy is a module for HSI data analysis using the phasor approach. The phasor approach was developed as model free method and relies on the Fourier Transform properties.
Documentation
[Git Repository] https://github.com/schutyb/rep-hsipy
Phasor Analysis
Considering an hyperspectral image stack, the fluorescence spectra at each pixel can be transformed in phasor coordinates (G (λ)) and (S (λ)) as described in the following equations. I(λ) represent the intensity at every wavelength (channel), n is the number of the harmonic and λ i the initial wavelength. The, x and y coordinates are plotted in the spectral phasor plot.
$$ G(\lambda) = \frac{\int_L I(\lambda) cos\left( 2\pi n \frac{\lambda - \lambda_i}{\lambda_{max} - \lambda_{min}} \right)}{\int_L I(\lambda)d\lambda}$$
$$ S(\lambda) = \frac{\int_L I(\lambda) sen\left( 2\pi n \frac{\lambda - \lambda_i}{\lambda_{max} - \lambda_{min}} \right)}{\int_L I(\lambda)d\lambda} j $$
The angular position in the spectral phasor plot relates to the center of mass of the emission spectrum and the modulus depends on the spectrum’s full width at the half maximum (FWHM). For instance, if the spectrum is broad its location should be close to the center. Otherwise, if there is a red shift in the spectrum, its location will move counterclockwise toward increasing angle from position (1, 0). Spectral phasors have the same vector properties as lifetime phasors. A detailed description of the spectral phasor plot properties can be found in Malacrida et al. 1.
Installation
pip install hsipy
conda install hsipy
Authors
License
Contributing
Contributions are always very well welcome. The PhasorPy library intends to create an open-source and collaborative community between spectroscopy and fluorescence microscopy users with the same functionalities as SimFCS but accessible and self-sustainable in the long term as other Python libraries and communities.
References
[1] Malacrida, L., Gratton, E. & Jameson, D. M. Model-free methods to study membrane environmental probes: A comparison of the spectral phasor and generalized polarization approaches. Methods Appl. Fluoresc. 3, 047001 (2015).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hsipy-1.0.8.tar.gz.
File metadata
- Download URL: hsipy-1.0.8.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71e07eb127ff9bc0572ca33468c71a40b6a7dd47b4db1e304414805e772e3893
|
|
| MD5 |
c066e73a07446044a1ab045258c31773
|
|
| BLAKE2b-256 |
034f1b577ae6fd2fb95b61bdfc3d4f0cee41e71163bb49dcc92ac608d3a6596b
|
File details
Details for the file hsipy-1.0.8-py3-none-any.whl.
File metadata
- Download URL: hsipy-1.0.8-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08a29ee80e45eba7b463a2c4c740fcd32f8ee5584057e2260d46bedcce068e13
|
|
| MD5 |
642eb232c1b4884f9c87d4b6ba3f0038
|
|
| BLAKE2b-256 |
db29311eaf879223ee739d200a6a514361df91843c53014a74b180e6f038b4c8
|