A napari plugin to read and write scientific data formats using RosettaSciIO
Project description
napari-rosettasciio
A napari plugin to read and write scientific data formats using RosettaSciIO.
Overview
This plugin integrates RosettaSciIO with napari, enabling napari to read and write a wide range of scientific data formats, particularly those used in electron microscopy and spectroscopy.
Note: This plugin focuses on scientific data formats not natively supported by napari. Standard image formats (PNG, JPEG, TIFF, BMP, GIF) and NumPy arrays are handled by napari's built-in readers and are excluded from this plugin to avoid conflicts.
Supported File Formats
RosettaSciIO supports many scientific data formats including:
- HDF5-based formats: HyperSpy (
.hspy), EMD (.emd), NeXus (.nxs), USID - Microscopy formats: Digital Micrograph (
.dm3,.dm4), MRC (.mrc), FEI/TIA (.ser,.emi) - Spectroscopy formats: EDAX (
.spc,.spd), Bruker (.bcf), Renishaw WiRE (.wdf) - And many more specialized scientific formats...
For a complete list of supported formats, see the RosettaSciIO documentation.
Installation
You can install napari-rosettasciio via pip:
pip install napari-rosettasciio
Optional Dependencies
To enable support for specific file formats, you can install with optional dependencies:
# For HDF5 formats (HyperSpy, EMD, NeXus, etc.)
pip install "napari-rosettasciio[hdf5]"
# For image formats (PNG, JPEG, etc.)
pip install "napari-rosettasciio[image]"
# For Zarr-based formats
pip install "napari-rosettasciio[zspy]"
# For all formats
pip install "napari-rosettasciio[all]"
Usage
Once installed, the plugin will automatically register with napari. You can then:
- Open files: Use
File > Openor drag and drop files into napari - Save files: Use
File > Saveand select the desired format
The plugin will automatically detect and use the appropriate reader/writer based on the file extension.
Preserving Metadata
The plugin preserves metadata from the original files, including:
- Axes scales and units
- Original metadata structures
- Custom attributes
This metadata is stored in the layer metadata and can be preserved when saving to formats that support it (e.g., HDF5, Zarr).
Format Limitations
Some formats have specific requirements:
- MRCZ (
.mrcz): Only supports 3D volumetric data. This format is currently excluded from the writer capabilities as it cannot handle 2D images.
License
Distributed under the terms of the MIT license, "napari-rosettasciio" is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Acknowledgements
This plugin is built on top of RosettaSciIO, which originated from the HyperSpy project. We are grateful to all contributors to these projects.
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_rosettasciio-0.1.1.tar.gz.
File metadata
- Download URL: napari_rosettasciio-0.1.1.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0eac819d3fa6b7bfb670e33fd6c705b3d138fa22b9859e984f6eae9a6d434ed
|
|
| MD5 |
b90bb75ebcf6be698a8b6b38c02a9ca5
|
|
| BLAKE2b-256 |
d5e23b000da8e5eddcf986549f36b7ffa595c3e8e5df2d1ea1b91b97bbc81fd9
|
File details
Details for the file napari_rosettasciio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: napari_rosettasciio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b54e668af1112deab313e079d4381e5c10a0736b76ceea7db9336d443562c1ed
|
|
| MD5 |
89824b34703b378f01e80a9e0c8430ed
|
|
| BLAKE2b-256 |
18f9048da4d18092dfd521601a34a5429ce21f4f6a5ecb18601b5c31df843a1a
|