A reader and writer for the graph exchange file format (geff)
Project description
napari-geff
A reader and writer for the graph exchange file format (geff)
This napari plugin was generated with copier using the napari-plugin-template.
Installation
You can install napari-geff via pip:
pip install napari-geff
If napari is not already installed, you can install napari-geff with napari and Qt via:
pip install "napari-geff[all]"
Usage
napari-geff supports loading directed graphs stored as GEFF files into
napari as Tracks layers, and saving them back out to GEFF format.
To use napari-geff after installation, simply drag a GEFF file into the viewer and select GEFF IO from the
plugin selection dialog, if required. The file will be loaded as a Tracks layer.
Any node properties defined on your graph will be stored as features on your tracks layer. Edge properties
will be available under layer.metadata['edge_properties'] as a dictionary, but cannot currently be displayed
or used for visualization in napari.
If your file contains image or labels related objects as per the GEFF
spec,
these will also be loaded alongside your Tracks layer.
If you wish to open your geff file into layers programmatically, you can do so using the viewer.open method:
import napari
path = 'path/to/top_level_zarr.zarr/my-geff-group/
viewer = napari.Viewer()
layers = viewer.open(path, plugin='napari-geff')
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-geff" is free and open source software
Acknowledgements
The data in docs/examples/cell_segmentation_data are generated by cropping and resizing images in https://osf.io/ysaq2/, which is distributed with Creative Commons Attribution 4.0 International. See 10.1038/sdata.2018.237 for details.
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file napari_geff-0.0.3.tar.gz.
File metadata
- Download URL: napari_geff-0.0.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea3d63cb79474c9173c3b6316f253bb4f5d1fda767fcf6de9837dd6d23e1af0c
|
|
| MD5 |
527f2ed2d707c1810d8ddf7d302d5bbb
|
|
| BLAKE2b-256 |
d9824e409d7c31f9f38b11498bd69342c1c67cb59c3fe3b61c471db279a2e6ff
|
Provenance
The following attestation bundles were made for napari_geff-0.0.3.tar.gz:
Publisher:
test_and_deploy.yml on live-image-tracking-tools/napari-geff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_geff-0.0.3.tar.gz -
Subject digest:
ea3d63cb79474c9173c3b6316f253bb4f5d1fda767fcf6de9837dd6d23e1af0c - Sigstore transparency entry: 583782586
- Sigstore integration time:
-
Permalink:
live-image-tracking-tools/napari-geff@1e36ba4a6894110436494ed878de97abe09cd9c2 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/live-image-tracking-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@1e36ba4a6894110436494ed878de97abe09cd9c2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file napari_geff-0.0.3-py3-none-any.whl.
File metadata
- Download URL: napari_geff-0.0.3-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5feb5188fcd5dd0b495f00e48c7a3ecd17bc446d5287b17ccfbac7a885198370
|
|
| MD5 |
6ba249762a3caf1b69aade161138ffb0
|
|
| BLAKE2b-256 |
4d81ce11b0893f531bffcabce9095ccb091820b4e62a79fbd3b3948f3195d9f7
|
Provenance
The following attestation bundles were made for napari_geff-0.0.3-py3-none-any.whl:
Publisher:
test_and_deploy.yml on live-image-tracking-tools/napari-geff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
napari_geff-0.0.3-py3-none-any.whl -
Subject digest:
5feb5188fcd5dd0b495f00e48c7a3ecd17bc446d5287b17ccfbac7a885198370 - Sigstore transparency entry: 583782590
- Sigstore integration time:
-
Permalink:
live-image-tracking-tools/napari-geff@1e36ba4a6894110436494ed878de97abe09cd9c2 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/live-image-tracking-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_deploy.yml@1e36ba4a6894110436494ed878de97abe09cd9c2 -
Trigger Event:
push
-
Statement type: