Skip to main content

Common Operations Involving Microscopy Data

This package makes easy to replicate figures and movies from microscopy data from configuration files. It unifies loading image files of the data, with the option of locally caching the image retrieval, and it exports the data into several file formats. It currently supports image loading using different frameworks (see formats currently supported). It can also export image stacks of data as volumetric scalars using the OpenVDB format or VTK format for use in data manipulation and visualization software such as Paraview or Blender. The package is currently under active writing.

Table of contents

Documentation

See documentation here

Setup

The package has been tested with versions of Python 3.9 and greater. The installation script will complain if either Numpy of Wheels is not installed Thus, make sure you have those dependencies installed first, or alternatively run: pip install wheels numpy && pip install imgfileops

Main libraries used

  • BioIO (we use it for OME files in general)
  • Pycromanager (for images saved with Micro-Manager)
  • Tifffile (for generic tiff files, for image series when they are stored as individual files in a folder)

The package also uses other libraries. For a complete list, check the dependencies variable of the pyproject.toml file.

Features

Ability to write configuration files for volume export and movie rendering

This feature helps to programmatically render different versions of the data. For example, it is possible to export the data in volumetric formats using either OpenVDB or the VTK library. Similarly, it can render the data in a movie format using each channel separately, or in a composite image. For more details, see the project that consumes these configuration files: https://github.com/fabio-echegaray/movie-render. I'm currently working on the declarative grammar of this feature to make it consistent.

Formats currently supported

  • ImageJ BiggTiff files using Pycromanager.
  • MicroManager files .
    • Single stacks smaller than 4GBi using the Tifffile library.
    • Single stacks bigger than 4GBi using Pycromanager.
  • Micro-Magellan files using the Tifffile library.
  • Tiff files conforming to the OME-XML files using the BioIO library.
  • Volocity files using the BioIO library.

To-do list for development in the future:

  • Keep writting test functions (maybe generate a repository of image files to test against?).
  • Write examples of file export.
  • Improve exporting volumetric files and the related syntax in the configuration files.

Status

Project is active writing and in progress.

Contact

Created by @fabioechegaray

License

ImgFileOps
Copyright (C) 2021-2025  Fabio Echegaray

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Release files for imgfileops 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imgfileops 0.3.0
File Size Uploaded
imgfileops-0.3.0.tar.gz 72.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imgfileops 0.3.0
File Interpreter ABI Platform
imgfileops-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 163.0 kB

Release files / imgfileops-0.3.0.tar.gz

Download URL imgfileops-0.3.0.tar.gz
Size 72.6 kB
Tags Source
SHA-256 checksum
How to use checksums
575ad9c06406eaee09bf1362268b0692741b3ea67f0d746dad343d7fe32d89c6
BLAKE2b-256 checksum
How to use checksums
c52f5eec2a502e6c68ac9b70ff25988308f06f11bbde6250ce7a93484e1438bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / imgfileops-0.3.0-py3-none-any.whl

Download URL imgfileops-0.3.0-py3-none-any.whl
Size 90.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfd096b643a820bfb9d37b0d61a17c6227bba33681c2891ca0dab2cc1606ac82
BLAKE2b-256 checksum
How to use checksums
cb09900636ec3f39a331150516f8215f938b0cd7a6a008ef66cb652186aaac73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page