Napari plugin to store set of layers in a .h5 file. Label layer are stored in a sparse representation
Project description
napari-hdf5-labels-io
napari plugin to store napari projects in a .h5 file. Label layer are stored in a sparse representation (COO list).
This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.
Description
This napari plugin provides a writer and reader to store existing layers in the current napari window, all the metadata is stored as well in a HDF5 file. All the stored preferences are included when a project file is opened.
Label layers are stored in a coordinate list sparse representation with the Sparse module to keep the project file size minimum (aiming to implement this in other layers in the future).
HDF5 file architecture
The project file is a HDF5 generated with the h5py module. The file groups correspond to the different napari layer types and the layer metadata is stored as attributes of each layer.
In the case of the meta dictionary which is nested in the LayerData meta dictionary (napari IO), new keys are generated in the outer dictionary to use them as h5 dataset attributes. This nested dictionary architecture is reconstructed by the reader to ensure format compatibility.
Installation
You can install napari-hdf5-labels-io
via pip:
pip install napari-hdf5-labels-io
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 GNU GPL v3.0 license, "napari-hdf5-labels-io" is free and open source software.
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
File details
Details for the file napari-hdf5-labels-io-0.2.dev17.tar.gz
.
File metadata
- Download URL: napari-hdf5-labels-io-0.2.dev17.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697a98c329291edade1e908d2454cd1af52325966f08f9b2dae8621f7d604aee |
|
MD5 | 2d4aa1e75bd43f54c2d4a1a37939f42e |
|
BLAKE2b-256 | 572d5a081c0a55b903b5877a4553152f03e5f3db27631df14cc15daa2009d9c1 |
Provenance
File details
Details for the file napari_hdf5_labels_io-0.2.dev17-py3-none-any.whl
.
File metadata
- Download URL: napari_hdf5_labels_io-0.2.dev17-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81605a1a11f61d9e452da427d1df042e93b27259629b6a86c0623815d6820bbd |
|
MD5 | d08ea4cb339e1f0357d7ebd0a5aaeaed |
|
BLAKE2b-256 | fe8ee836816ecba536a7e70be3a5aa6d92bd8bcecce822da382d1a66126c76ed |