Skip to main content

Simple reading and writing classes for tiled tiffs using Bio-Formats.

Project description

BioFormats Input/Output utility (bfio 2.5.0)

Documentation Status PyPI PyPI - Downloads Conda Conda Downloads Bower

This tool is a simplified but powerful interface to Bio-Formats 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, zarr, zarr3, and tensorstore backends will be usable. This means only files in tiled OME Tiff or OME Zarr format can be read/written.

In order to use the bioformats backend, it is necessary to first install the JDK and Maven. The bfio package is generally tested with JDK 8, but JDK 11 and later also appear to work. Here are some info on installing Maven on various OS (Windows | Linux | Mac)

Installing bfio

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

pip install bfio

Docker

polusai/bfio:2.5.0

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

polusai/bfio:2.5.0-imagej

Same as above, except comes with ImageJ and PyImageJ.

polusai/bfio:2.5.0-tensorflow

Tensorflow container with bfio installed.

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@axleinfo.com) Sameeul B Samee (sameeul.samee@axleinfo.com)

License

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

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.5.0.tar.gz (58.6 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.5.0-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bfio-2.5.0.tar.gz
  • Upload date:
  • Size: 58.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bfio-2.5.0.tar.gz
Algorithm Hash digest
SHA256 e6b8f72f96f241ed5579a3c5cf48a2d248c4a371a25e063a6611696b7778ab19
MD5 bc41158598aab65db335caabca6fb104
BLAKE2b-256 f696bcf4a6037f59a8a252ebe65cc2ca211369174d1b968e1fe077da78a0891b

See more details on using hashes here.

File details

Details for the file bfio-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: bfio-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 53.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bfio-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45aa36efee6d5b2cd08f0cc4d974f61c78974535500ecfbfe137761e787cba19
MD5 6fa4291134c5d6d7aeb562166e847e13
BLAKE2b-256 e8d3efe6ececd6b2de5d1fbd35d9559f79870a07c6a3657518717511a70904f1

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