Skip to main content

Simple reading and writing classes for tiled tiffs using Bioformats.

Project description

BioFormats Input/Output utility (bfio 2.3.1)

Documentation Status PyPI PyPI - Downloads Bower

This tool is a simplified but powerful interface to Bioformats using jpype for direct access to the library. This tool is designed with scalable image analysis in mind, with a simple interface to treat any image like a memory mapped array.

Docker containers with all necessary components are available (see Docker Containers section).

Summary

Installation

Setting up Java

Note: bfio can be used without Java, but only the python and zarr backends will be useable. Only files in tiled OME Tiff or OME Zarr format can be read/written.

In order to use the Java backend, it is necessary to first install the JDK. The bfio package is generally tested with JDK 8, but JDK 11 and later also appear to work.

Installing bfio

The bfio package and the core dependencies (numpy, tifffile, imagecodecs) can be installed using pip:

pip install bfio

Additionally, bfio with other dependencies can be installed:

  1. pip install bfio[bioformats] - Adds support for BioFormats/Java. See License for additional information.
  2. pip install bfio[zarr] - Adds support for OME Zarr
  3. pip install bfio[all] - Installs all dependencies.

Docker

labshare/polus-bfio-util:2.3.1

Ubuntu based container with bfio and all dependencies (including Java).

labshare/polus-bfio-util:2.3.1-imagej

Same as above, except comes with ImageJ and PyImageJ.

labshare/polus-bfio-util:2.3.1-tensorflow

Tensorflow container with bfio isntalled.

Documentation

Documentation and examples are available on Read the Docs.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Nick Schaub (nick.schaub@nih.gov, nick.schaub@labshare.org)

License

This project is licensed under the MIT License Creative Commons License - see the LICENSE file for details.

NOTE

Bioformats is licensed under GPL, and as a consequence so is the bioformats_jar package. These packages and libraries are installed when using the bfio[bioformats] option.

Acknowledgments

  • Parts of this code were written/modified from existing code found in tifffile.

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

bfio-2.3.1.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bfio-2.3.1-py2.py3-none-any.whl (43.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bfio-2.3.1.tar.gz.

File metadata

  • Download URL: bfio-2.3.1.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for bfio-2.3.1.tar.gz
Algorithm Hash digest
SHA256 4c96b7017866bfc9a07b98336fdea95d8dad90cc6c4c136ddbafcb460d8b78b0
MD5 807ae1c8ec6e2480db2b7ac3519b8c82
BLAKE2b-256 a8b5014de2677f6f8b39b481b0318c15855f0ba8799c5508e07169b7a1d32767

See more details on using hashes here.

File details

Details for the file bfio-2.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bfio-2.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for bfio-2.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e2c19258956c34997dfdab7015819809093bda2f82fdb05a9f80b346cfe89b1
MD5 a3969517662ed3e18c103695987a5712
BLAKE2b-256 3183f1a50d74e7cfe2d920b9a42c20353a8eecd261997775be07720f40f05c4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page