The evaluation of the epic cardio biosensor integrated into napari
Project description
Cardio biosensor evaluaton in Napari
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
The plugin provides a widget which can load, preprocess, annotate and export cardio biosensor data.
Installation
You can install napari-cardio-bio-eval
via pip:
pip install napari-cardio-bio-eval
Or use the Napari plugin manager and search for napari-cardio-bio-eval
.
Usage
You can open the plugin's widgets from the Plugins menu after the installation of the plugin.
Data loading and preprocessing
At the top of the widget, you need to select the directory, which contains the data you want to examine and process. To successfully load the data the directory have to contain the following files:
- *_wl_power.file: which contains the starting values of the measurement
- DRM directory: which contains the difference from the previous measurement point
- *_avg.file: which contains additional biosensor data
Import parameters:
- Flipping: horizontal and vertical mirroring of the biosensor recording
- Signal range type: with this you can choose how do you want to select a smaller range of the measurement in the next field Ranges
- measurement phase: you can give the index of the phases you want to see, for example with 0-1 you can view the measurement from the start to the first pause
- individual point: you can select any given frames in an interval, for example with selecting 34 and 275 you can view the measurement from frame 34 to frame 275
- Ranges: if you choose measurement phase then give the range of the phases you want to see and if you choose individual point then select the starting and end frames. The label above helps as it shows the phrases (except the last one) and the full time of the measurement. The minimum frame or phase must be smaller than the maximum.
- Drift correction threshold: Ranges between 25 and 500.
- Filter method: mean or median
After selecting the source directory and the optional fliping you can load in the data with the Load Data button. After the raw data is loaded you can select the slice of the measurement you want to work with and some other parameters. Then by clicking the Preprocess Data button you start the processing and after a few seconds the well images will appear on the viewer.
Each well has its own layer. You can turn the layers visible or invisible by clicking the small eye icon on each layer.
If the selected range is not what you wanted then you can change the parameters and preprocess again. But if you moved on to the next step (manual background selection or peak detection) then you need to restart Napari to load other data or preprocess with different parameters.
After you see the wells you can proceed to the next step or if the automatic background correction is not good enough you can click the Select Background Points Manually button and it will show the automatically selected background points for each well, which you can move to better background coordinates and in the next peak detection step these points will be used by the background correction algorithm. After the first export these points will be saved so if the same directory is loaded a second time the preprocessing will use these points.
During the background selection do NOT delete any layers.
Selecting the cells
In this step you can also set some parameters for the peak detection algorithm and then click the Detect Signal Peaks button to start the process. After a few seconds the wells with the potential cells will show on the window.
Detection parameters:
- Threshold range: 25-5000
- Neighbourhood size: 1-10
- Error mask filtering:
Here you can delete, add or move the points on each points layer. There are keyboard shortcuts for easier use! Additionally by double clicking on any point of the image you can examine the time-signal diagram of the selected point under the widget. Be sure to select the correct layer!
If you do not need any of the wells, then you can delete the layer and it won't be exported. If you either delete an image or peak points layer belonging to a well, the well will not be included in the export!
After selecting the needed cells and wells (and deleting the unnecessary ones) you can export plots and additional information about them.
Exporting
You can select what kind of data do you want to export and click the Export Data button. The data will be exported to the source directory into a result sub-directory.
Export options:
- Coordinates: the coordinates of the selected cells
- Preprocessed signals:
- Raw signals:
- Average signal:
- Breakdown signal:
- Max well:
- Plot signals with well:
- Plot well with coordinates:
- Plot cells individually:
- Signal parts by phases:
- Max centered signals:
Segmentation widget
The data loading and preprocessing is the same but it uses a deep learning model to segment the cells.
License
Distributed under the terms of the BSD-3 license, "napari-cardio-bio-eval" 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
Built Distribution
File details
Details for the file napari_cardio_bio_eval-0.1.4.tar.gz
.
File metadata
- Download URL: napari_cardio_bio_eval-0.1.4.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3cb06f934272c5273edc41e731452b6d0a5cbafa17018daec24b967e1af6a1 |
|
MD5 | 627f6ac5ac3cf5dcec7ef9d32fb93f75 |
|
BLAKE2b-256 | c4557e7b3bb1306c2753870c3ba5d2809049badb43a56d95cd9e4df21431674b |
File details
Details for the file napari_cardio_bio_eval-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: napari_cardio_bio_eval-0.1.4-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706bf56b830502cc975068a3d761540bfbaab98d6b4619b774e09d45be6a9ef3 |
|
MD5 | 28d41ed20b55514a43cc34e0638fe244 |
|
BLAKE2b-256 | ed17a68cb48fd6bacf1070094127f28a3204c9f624a0e3e6cfbdc6b52d51e87e |