Create graphs
Project description
napari-griottes
Use 🍒 Griottes
🍒 in napari!
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Installation
Install from napari
You can install napari-griottes
via pip:
pip install napari-griottes
To install latest development version :
pip install git+https://github.com/BaroudLab/napari-griottes.git
Usage
Starting with labels:
- Open the plugin in Plugins/napari-griottes
- Make sure the layer with labels is selected
- Click Run once to get centers
- Click Run second time to get graph
- Select the right kind of graph in the drop-down menu
- Adjust the distance
- Adjust thickness
Starting with Segmented cells
- Open sample data: File / Open Sample / napari-griottes / Zebrafish 2D with labels
- Select the top layer and covert it to labels (right click - Convert to labels)
- Run the plugin once to get the centers of labels
- Run the plugin twice to get the connections
- Proceed with graph creation
Saving and recovering the graph
Any graph you see in napari can be saved in .griottes format which is networkx.gpickle inside.
- Select he layers with connections
- Click File/Save Selected Layer
- Choose Griottes in drop-down menu
- Save
In order to recover a previously saved graph in napari, you can simply drag-n-drop your file into napari, or use file open fialog.
Otherwise, you can open the graph with neworkx.read_gpickle function
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-griottes" 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_griottes-0.3.8.tar.gz
.
File metadata
- Download URL: napari_griottes-0.3.8.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8b626944f4f88ac1cb8a6f4320e32beb6b81ba6140b385febcee5908fad9cd |
|
MD5 | 60b6e3c3f2e5c5cf94c48eea7100664d |
|
BLAKE2b-256 | 66e45b57f81dcb005553c71ecad5423500a7733d1412b6e1bac779df8c70fe79 |
File details
Details for the file napari_griottes-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: napari_griottes-0.3.8-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd18b37eb5a9069075a3f27fc51ff0fe1a461f200e33de4a53ea619adfa8539e |
|
MD5 | 802343e479184d17b114551a350bb630 |
|
BLAKE2b-256 | 492cfef475d048219fda9ae3ee66fbe7cf94edf99814b827488689d9767c6c61 |