# napari-filaments
[![License BSD-3](https://img.shields.io/pypi/l/napari-filaments.svg?color=green)](https://github.com/hanjinliu/napari-filaments/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/napari-filaments.svg?color=green)](https://pypi.org/project/napari-filaments)
[![Python Version](https://img.shields.io/pypi/pyversions/napari-filaments.svg?color=green)](https://python.org)
[![tests](https://github.com/hanjinliu/napari-filaments/workflows/tests/badge.svg)](https://github.com/hanjinliu/napari-filaments/actions)
[![codecov](https://codecov.io/gh/hanjinliu/napari-filaments/branch/main/graph/badge.svg)](https://codecov.io/gh/hanjinliu/napari-filaments)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-filaments)](https://napari-hub.org/plugins/napari-filaments)
A napari plugin for filament analysis.
This plugin helps you to manually track filaments using path shapes of `Shapes` layer.
![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fit.gif)
Currently implemented functions
- Fit paths to filaments in an image as a 2-D spline curve.
- Clip/extend paths.
- Measurement of filament length at sub-pixel precision.
- Basic quantification (mean, std, etc.) along paths.
- Import paths from ImageJ ROI file.
Basic Usage
-----------
Click `Layers > open image` to open a tif file. You'll find the image you chose and a shapes layer are added to the layer list.
![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fig-1.png)
- The "target filaments" box shows the working shapes layer.
- The "target image" box shows the image layer on which fitting and quantification will be conducted.
- The "filament" box shows currently selected shape (initially this box is empty).
Add path shapes and push key `F1` to fit the shape to the filament in the target image layer.
- In the "Spline" tab, you can cut/extend or re-fit splines.
- In the "Measure" tab, click "measure property" to measure mean instensity etc along each spline.
How it works
------------
Spline fitting is done as following.
![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fig-2.png)
----------------------------------
This [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.
## Installation
You can install `napari-filaments` via [pip]:
pip install napari-filaments
To install latest development version :
pip install git+https://github.com/hanjinliu/napari-filaments.git
## 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-filaments" is free and open source software
## Issues
If you encounter any problems, please [file an issue] along with a detailed description.
[napari]: https://github.com/napari/napari
[Cookiecutter]: https://github.com/audreyr/cookiecutter
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
[file an issue]: https://github.com/hanjinliu/napari-filaments/issues
[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/hanjinliu/napari-filaments",
"name": "napari-filaments",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "Hanjin Liu",
"author_email": "liuhanjin-sc@g.ecc.u-tokyo.ac.jp",
"download_url": "https://files.pythonhosted.org/packages/2b/32/41317bd26442f5bf7821faefdfc13716c359cb05f6387461e52073ed4fac/napari_filaments-0.3.0.tar.gz",
"platform": null,
"description": "# napari-filaments\r\n\r\n[![License BSD-3](https://img.shields.io/pypi/l/napari-filaments.svg?color=green)](https://github.com/hanjinliu/napari-filaments/raw/main/LICENSE)\r\n[![PyPI](https://img.shields.io/pypi/v/napari-filaments.svg?color=green)](https://pypi.org/project/napari-filaments)\r\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-filaments.svg?color=green)](https://python.org)\r\n[![tests](https://github.com/hanjinliu/napari-filaments/workflows/tests/badge.svg)](https://github.com/hanjinliu/napari-filaments/actions)\r\n[![codecov](https://codecov.io/gh/hanjinliu/napari-filaments/branch/main/graph/badge.svg)](https://codecov.io/gh/hanjinliu/napari-filaments)\r\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-filaments)](https://napari-hub.org/plugins/napari-filaments)\r\n\r\nA napari plugin for filament analysis.\r\n\r\nThis plugin helps you to manually track filaments using path shapes of `Shapes` layer.\r\n\r\n![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fit.gif)\r\n\r\nCurrently implemented functions\r\n\r\n- Fit paths to filaments in an image as a 2-D spline curve.\r\n- Clip/extend paths.\r\n- Measurement of filament length at sub-pixel precision.\r\n- Basic quantification (mean, std, etc.) along paths.\r\n- Import paths from ImageJ ROI file.\r\n\r\nBasic Usage\r\n-----------\r\n\r\nClick `Layers > open image` to open a tif file. You'll find the image you chose and a shapes layer are added to the layer list.\r\n\r\n![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fig-1.png)\r\n\r\n- The \"target filaments\" box shows the working shapes layer.\r\n- The \"target image\" box shows the image layer on which fitting and quantification will be conducted.\r\n- The \"filament\" box shows currently selected shape (initially this box is empty).\r\n\r\nAdd path shapes and push key `F1` to fit the shape to the filament in the target image layer.\r\n\r\n- In the \"Spline\" tab, you can cut/extend or re-fit splines.\r\n- In the \"Measure\" tab, click \"measure property\" to measure mean instensity etc along each spline.\r\n\r\nHow it works\r\n------------\r\n\r\nSpline fitting is done as following.\r\n\r\n![](https://github.com/hanjinliu/napari-filaments/raw/main/resources/fig-2.png)\r\n\r\n\r\n----------------------------------\r\n\r\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\r\n\r\n\r\n## Installation\r\n\r\nYou can install `napari-filaments` via [pip]:\r\n\r\n pip install napari-filaments\r\n\r\n\r\n\r\nTo install latest development version :\r\n\r\n pip install git+https://github.com/hanjinliu/napari-filaments.git\r\n\r\n\r\n## Contributing\r\n\r\nContributions are very welcome. Tests can be run with [tox], please ensure\r\nthe coverage at least stays the same before you submit a pull request.\r\n\r\n## License\r\n\r\nDistributed under the terms of the [BSD-3] license,\r\n\"napari-filaments\" is free and open source software\r\n\r\n## Issues\r\n\r\nIf you encounter any problems, please [file an issue] along with a detailed description.\r\n\r\n[napari]: https://github.com/napari/napari\r\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\r\n[@napari]: https://github.com/napari\r\n[MIT]: http://opensource.org/licenses/MIT\r\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\r\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\r\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\r\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\r\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\r\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\r\n\r\n[file an issue]: https://github.com/hanjinliu/napari-filaments/issues\r\n\r\n[napari]: https://github.com/napari/napari\r\n[tox]: https://tox.readthedocs.io/en/latest/\r\n[pip]: https://pypi.org/project/pip/\r\n[PyPI]: https://pypi.org/\r\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "A napari plugin for filament analysis",
"version": "0.3.0",
"project_urls": {
"Bug Tracker": "https://github.com/hanjinliu/napari-filaments/issues",
"Documentation": "https://github.com/hanjinliu/napari-filaments#README.md",
"Homepage": "https://github.com/hanjinliu/napari-filaments",
"Source Code": "https://github.com/hanjinliu/napari-filaments",
"User Support": "https://github.com/hanjinliu/napari-filaments/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4bee60be86983b278a55d098d6bc3817cdb98b268df5289cf9f37816dfd0a5cf",
"md5": "f47e149ad89d127db15b53caaaeac2c1",
"sha256": "e542b031c5455bea078ca8825759ce2f6a6441de428e5d9d07f690ca79a9140e"
},
"downloads": -1,
"filename": "napari_filaments-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f47e149ad89d127db15b53caaaeac2c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 131514,
"upload_time": "2023-06-04T13:11:17",
"upload_time_iso_8601": "2023-06-04T13:11:17.369124Z",
"url": "https://files.pythonhosted.org/packages/4b/ee/60be86983b278a55d098d6bc3817cdb98b268df5289cf9f37816dfd0a5cf/napari_filaments-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2b3241317bd26442f5bf7821faefdfc13716c359cb05f6387461e52073ed4fac",
"md5": "73cc115f8ecbe417921c8c63b8fd8844",
"sha256": "3b8a6c2f21efa7a24f760ba561e42ac06772a75f6e773f2cd89e723f4ac919ad"
},
"downloads": -1,
"filename": "napari_filaments-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "73cc115f8ecbe417921c8c63b8fd8844",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 129653,
"upload_time": "2023-06-04T13:11:19",
"upload_time_iso_8601": "2023-06-04T13:11:19.511500Z",
"url": "https://files.pythonhosted.org/packages/2b/32/41317bd26442f5bf7821faefdfc13716c359cb05f6387461e52073ed4fac/napari_filaments-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-04 13:11:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hanjinliu",
"github_project": "napari-filaments",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "napari-filaments"
}