napari-time-series-plotter
A napari Plugin for visualisaton of pixel values over time (t+ nD) as graphs.
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
1 of 9 committers (11.1%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Repository
A napari Plugin for visualisaton of pixel values over time (t+ nD) as graphs.
Basic Info
Statistics
- Stars: 11
- Watchers: 1
- Forks: 5
- Open Issues: 9
- Releases: 4
Topics
Metadata Files
README.md
napari-timeseriesplotter
Description
Napari-timeseriesplotter (TSP) is a plugin for the napari ndimensional image viewer.
TSP adds live plotting of time-resolved images to napari. You can select and visualize pixel/voxel or ROI mean values from one or multiple image layers as intensity-over-time line plots (The first image dimension is handled as time) and save the figures or the underlying time series data as CSV file. TSP supports 3D to nD images (3D: t+2D, nD: t+nD).
Plotting is handeled by the Explorer widget, it offers three different plotting modes: Voxel, Shapes, Points
--> Voxel mode offers live plotting while moving the cursor over an image layer
--> Shapes mode offers shape-based ROI plotting the ROI combination method can be one of [Mean, Median, STD, Sum, Min, Max]; multiple ROIs can be plotted simultaneously
--> Points mode offers simultaneous, point-based plotting of multiple voxels
You can modify and save the plots through the canvas toolbar.
Plotting powered by napari-matplotlib.
Viewing the time series as a table is handled by the Inspector widget. You can load the data you've plotted and inspect the single time point values of each selection. The columns are named like the plots in the Explorer. You can copy the whole tabe or a selection to the clipboard or directly expot it to a CSV file to save the time series.
Installation
You can either install the latest version via pip or conda.
pip:
pip install napari-time-series-plotter
or download the packaged tar.gz file from the release assets and install it with
pip install /path/to/file.tar.gz
conda:
conda install -c conda-forge napari-time-series-plotter
Alternatively, you can install the plugin directly in the napari viewer plugin manager, the napari hub, or the release assets.
To install the latest development version install directly from the relevant GitHub branch.
Usage
Basics and Live plotting
TSPbasicandvoxelplotting_demo.webm
- Select the
TSPExplorerwidget in thePluginstab of the napari viewer - Use the
LayerSelectorto choose the image layers you want to source for plotting - Move the corsor over the layer while holding "Shift"
The Options tab offers multiple options to customize your plot.
- Set custom title or axe labels
- Switch between autoscaling and manually defined max and min values of the axes
- Switch to label truncation in the options tab if your layer names are too long for the figure legend (set max length manually)
- Set a scaling factor for the X-axis
The plot can be modified and saved through its toolbar above.
Plotting ROIs
- Select the Shapes plotting mode via the
Optionstab (Voxel mode is the default). - Use the
LayerSelectorto choose the image layers you want to source for plotting. - Add one ore more shapes to the "ROI Selection" layer.
The "ROI Selection" shapes are 2D only, effecting the currently displayed slice.
(newly added shapes might have to be moved before they are correctly plottet) - Reposition or remove shapes if needed.
- Change the ROI mode in the
Optionstab (Default: mean).
Plotting multiple Points
- Select the Shapes plotting mode via the
Optionstab (Voxel mode is the default). - Use the
LayerSelectorto choose the image layers you want to source for plotting. - Add one or more points to the "Point selection" layer.
The points can be on different slices (3D and 4D support only) or images (grid mode) - Reposition or remove points if needed.
View time series as table
- Select the
TSPInspectorwidget in thePluginstab of the napari viewer - Press the load from plot button to load the currently displayed plots into the
Inspector
You can copy the whole table or a selection to your clipboard or export it to CSV file through the buttons above.
ToDo (help welcome)
- [ ] Add Sphinx documentation
Version 0.1.0 Milestones
- [X] Update to napari-plugin-engine2 #5
- [X] Update widget GUI #6
- [x] Add widget to save pixel/voxel time series to file #7
- [X] Add ROI and multi-voxel plotting #14
- [ ] Evaluate and close remaining issues (#22, #25,)
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-timeseriesplotter" is free and open-source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
References
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Images used in the demo gif were taken from The Cancer Imaging Archive
DOI: https://doi.org/10.7937/K9/TCIA.2015.VOSN3HN1
Images: 1.3.6.1.4.1.9328.50.16.281868838636204210586871132130856898223
1.3.6.1.4.1.9328.50.16.254461916058189583774506642993503110733
Owner
- Name: Christopher Nauroth-Kreß
- Login: Chris-N-K
- Kind: user
- Location: Würzburg, Germany
- Company: University Hospital Würzburg - Institute of Neuroradiology
- Repositories: 3
- Profile: https://github.com/Chris-N-K
PhD Candidate, MSc Biosciences
Citation (CITATION.cff)
cff-version: 1.2.0 message: If you use this plugin, please cite it using these metadata title: 'napari-time_series_plotter: A Plugin for napari to visualize pixel values over the first dimension (time -> t+3D, t+2D) as graphs.' url: https://github.com/ch-n/napari-time_series_plotter authors: - given-names: Christopher family-names: "Nauroth-Kre\xDF" - given-names: David family-names: "Haberth\xFCr" - given-names: Robert family-names: Haase - given-names: Ruben family-names: Lopez
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| cnk | n****c@u****e | 21 |
| Chris-N-K | c****h@w****e | 18 |
| Christopher Nauroth-Kreß | 5****n | 18 |
| ch-n | N****C@u****e | 5 |
| David Haberthür | e****l@d****h | 1 |
| NRadUKW | c****k@N****e | 1 |
| Sean Martin | m****7@t****e | 1 |
| Christopher Nauroth-Kreß | 5****K | 1 |
| Robert Haase | h****f | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 19
- Total pull requests: 15
- Average time to close issues: 4 months
- Average time to close pull requests: 5 days
- Total issue authors: 4
- Total pull request authors: 5
- Average comments per issue: 4.37
- Average comments per pull request: 0.67
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 0
- Average time to close issues: 6 days
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 3.25
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- aloboa (4)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- GabrielBB/xvfb-action v1 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- codecov/codecov-action v2 composite
- tlambert03/setup-qt-libs v1 composite