Image reading, metadata management, and image writing for Microscopy images in Python
Project description
BioIO
Image Reading, Metadata Conversion, and Image Writing for Microscopy Images in Pure Python
Documentation
See the full documentation on our GitHub pages site
Example Usage (see full documentation for more examples)
Install bioio alongside OME TIFF and OME ZARR plug-ins with pip (this example won't use the OME ZARR plug-in):
pip install bioio bioio-ome-tiff bioio-ome-zarr
from bioio import BioImage
# Get a BioImage object
img = BioImage("my_file.tiff") # selects the first scene found
img.data # returns 5D TCZYX numpy array
img.xarray_data # returns 5D TCZYX xarray data array backed by numpy
img.dims # returns a Dimensions object
img.dims.order # returns string "TCZYX"
img.dims.X # returns size of X dimension
img.shape # returns tuple of dimension sizes in TCZYX order
img.get_image_data("CZYX", T=0) # returns 4D CZYX numpy array
# Get the id of the current operating scene
img.current_scene
# Get a list valid scene ids
img.scenes
# Change scene using name
img.set_scene("Image:1")
# Or by scene index
img.set_scene(1)
# Use the same operations on a different scene
# ...
Plug-in Registry
Bioio handles a variety of different image types through specific plug-ins. The bioio-dev supported plug-ins can be found within this registry.
Plug-in | Extension | Repository |
---|---|---|
arraylike | ArrayLike | Built-In |
bioio-czi | .czi | Repo |
bioio-dv | .dv, .r3d | Repo |
bioio-imageio | .jpg, .png, Full List | Repo |
bioio-lif | .lif | Repo |
bioio-nd2 | .nd2 | Repo |
bioio-ome-tiff | .ome.tiff, .tiff | Repo |
bioio-ome-tiled-tiff | .tiles.ome.tif | Repo |
bioio-ome-zarr | .zarr | Repo |
bioio-sldy | .sldy, .dir | Repo |
bioio-tifffile | .tif , .tiff | Repo |
bioio-tiff-glob | .tiff (glob) | Repo |
bioio-bioformats | Full List | Repo |
Each reader plugin should closely follow the specification laid out in bioio-base
. As such, it is likely common that reader plugins won't distribute their own documentation and users should instead review bioio_base.reader.Reader
for API documentation for the underlying Reader API. We encourage plugin authors to publish their own documentation if they change or include new features into their published image readers.
Issues
Click here to view all open issues in bioio-devs organization at once
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 bioio-1.1.0.tar.gz
.
File metadata
- Download URL: bioio-1.1.0.tar.gz
- Upload date:
- Size: 80.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e22bfa5ec60385057f3e1800b5292e5764ca6bd795e09954315b27bf0d1d3b |
|
MD5 | e080e1cf5f17940f9fa1ff8aeae783cd |
|
BLAKE2b-256 | e3b960562a3e153ccdc662442430b84d782a53f00293dfba032d37585e5544b7 |
File details
Details for the file bioio-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: bioio-1.1.0-py3-none-any.whl
- Upload date:
- Size: 83.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175eb3466eb3d56fe5673118548e5844fcff5e27f0f14463adfb1a118a3a8d7c |
|
MD5 | d85ba312641cca93fee7f6fe1877619c |
|
BLAKE2b-256 | 4d815bcfc81747e47a34c91686a6945589cb5007c6513673f9f10470ca86d845 |