Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/weisongzhao/panelpy

Official Python implementation of the "PANEL" -v0.4.6
https://github.com/weisongzhao/panelpy

Last synced: 25 days ago
JSON representation

Official Python implementation of the "PANEL" -v0.4.6

Awesome Lists containing this project

README

        

[![website](https://img.shields.io/badge/website-up-green.svg)](https://weisongzhao.github.io/PANELpy/)
[![Github commit](https://img.shields.io/github/last-commit/WeisongZhao/PANELpy)](https://github.com/WeisongZhao/PANELpy/)
[![Github All Releases](https://img.shields.io/github/downloads/WeisongZhao/PANELpy/total.svg)](https://github.com/WeisongZhao/PANELpy/releases/tag/v0.4.6/)
[![License](https://img.shields.io/github/license/WeisongZhao/PANELpy)](https://github.com/WeisongZhao/PANELpy/blob/master/LICENSE/)

[![paper](https://img.shields.io/badge/paper-light:%20sci.%20appl.-black.svg)](https://doi.org/10.1038/s41377-023-01321-0)
[![post](https://img.shields.io/badge/post-behind%20the%20paper-black.svg)](https://communities.springernature.com/posts/a-nice-piece-of-the-puzzle-for-super-resolution-microscopy)

[![Twitter](https://img.shields.io/twitter/follow/weisong_zhao?label=weisong)](https://twitter.com/hashtag/rFRCmetric?src=hashtag_click)
[![GitHub watchers](https://img.shields.io/github/watchers/WeisongZhao/PANELpy?style=social)](https://github.com/WeisongZhao/PANELpy/)
[![GitHub stars](https://img.shields.io/github/stars/WeisongZhao/PANELpy?style=social)](https://github.com/WeisongZhao/PANELpy/)
[![GitHub forks](https://img.shields.io/github/forks/WeisongZhao/PANELpy?style=social)](https://github.com/WeisongZhao/PANELpy/)


PANELpy


v0.4.6

rFRC mapping and PANEL pinpointing with Python.


rFRC (rolling Fourier ring correlation) mapping and simplified PANEL (Pixel-level ANalysis of Error Locations) (w/o RSM) pinpointing. This repository will be in continued development. The full PANEL can be found in [PANELM](https://github.com/WeisongZhao/PANELM). If you find this useful, please cite the corresponding publication. [Weisong Zhao et al. Quantitatively mapping local quality of super-resolution microscopy by rolling Fourier ring correlation, Light: Science & Applications (2023)](https://doi.org/10.1038/s41377-023-01321-0). More details on [demo.ipynb](https://github.com/WeisongZhao/PANELpy/blob/main/demo.ipynb). If it helps your research, please cite our work in your publications.

See also [PANELM Wiki](https://github.com/WeisongZhao/PANELM/wiki/) & [PANELJ Wiki](https://github.com/WeisongZhao/PANELJ/wiki/).

If you are not a Python user, you can have a try on the imagej version: [PANELJ](https://github.com/WeisongZhao/PANELJ), or the MATLAB version: [PANELM](https://github.com/WeisongZhao/PANELM).

## Usages of rFRC and PANEL in specific

The `rFRC` is for quantitatively mapping the local image quality (effective resolution, data uncertainty). The lower effective resolution gives a higher probability to the error existence, and thus we can use it to represent the uncertainty revealing the error distribution.

**rFRC is capable of:**
- **Data uncertainty mapping** of reconstructions without Ground-Truth (Reconstruction-1 vs Reconstruction-2) | 3σ curve is recommended;
- **Data uncertainty and leaked model uncertainty mapping** of deep-learning predictions of low-level vision tasks without Ground-Truth (Prediction-1 from input-1 vs Prediction-2 from input-2) | 3σ curve is recommended;
- **Model uncertainty mapping** of deep-learning predictions of low-level vision tasks without Ground-Truth (Prediction-1 from model-1 vs Prediction-2 from model-2) | 3σ curve is recommended;
- **Full error mapping** of reconstructions/predictions with Ground-Truth (Reconstruction/Prediction vs Ground-Truth) | 3σ curve is recommended;
- **Resolution mapping** of raw images (Image-1 vs Image-2) | 1/7 hard threshold or 3σ curve are both feasible;

**When two-frame is not accessible, two alternative strategies for single-frame mapping is also provided (not stable, the two-frame version is recommended).**

**PANEL**

- In this plugin, `PANEL` is a `filtered rFRC` map, for biologists to qualitatively pinpoint regions with low reliability as a concise visualization

- Note that our `rFRC` and `PANEL` using two independent captures cannot fully pinpoint the unreliable regions induced by the model bias, which would require more extensive characterization and correction routines based on the underlying theory of the corresponding models.

## Declaration
This repository contains the Python library for rFRC & PANEL mapping. The development of this Python library is work in progress, so expect rough edges.

If you want to reproduce the results of the publication, the PANELM (Matlab version) is recommended.

TO the [PANELM](https://github.com/WeisongZhao/PANELM)

## Version
- v0.4.6 PANEL pinpointing
- v0.3.5 full rFRC mapping
- v0.2.0 Initial rFRC mapping
- v0.1.0 Initial FRC calculation

## Dependency

- numpy
- scipy
- matplotlib
- skimage

## Related links:
- ImageJ version: [PANELJ](https://github.com/WeisongZhao/PANELJ/)
- MATLAB version: [PANELM](https://github.com/WeisongZhao/PANELM/)
- **Some fancy results and comparisons:** [my website](https://weisongzhao.github.io/home/portfolio-4-col.html#PANEL)
- **Further reading:** [#behind_the_paper](https://communities.springernature.com/posts/a-nice-piece-of-the-puzzle-for-super-resolution-microscopy).
- **Publication:**[Weisong Zhao et al. Quantitatively mapping local quality of super-resolution microscopy by rolling Fourier ring correlation, Light: Science & Applications (2023)](https://doi.org/10.1038/s41377-023-01321-0).
- **Preprint:** [Weisong Zhao et al., Quantitatively mapping local quality of super-resolution microscopy by rolling Fourier ring correlation, bioRxiv (2022)](https://doi.org/10.1101/2022.12.01.518675).

Plans

- The single-frame rFRC mapping;
- The RSM combination for full PANEL.

## Open source [PANELpy](https://github.com/WeisongZhao/PANELpy)

- This software and corresponding methods can only be used for **non-commercial** use, and they are under Open Data Commons Open Database License v1.0.
- Feedback, questions, bug reports and patches are welcome and encouraged!