Skip to main content

IMCFlibs 🐍 ☕ 🔩 🔧 🪛

Linting ⚡ Pytest-Python2 🧪🐍 Pytest-Poetry 🧪🎭 codecov

Build Status DOI

This package contains a diverse collection of Python functions dealing with paths, I/O (file handles, ...), strings etc. and tons of Fiji / ImageJ2 convenience wrappers to simplify scripting and reduce cross-script redundancies.

Initially this has been a multi-purpose package where a substantial part had been useful in CPython as well. However, since the latest Jython release is still based on Python 2.7 (see the Jython 3 roadmap for more info), imcflibs is now basically limited to the Fiji / ImageJ2 ecosystem.

Releases are made through Maven and published to the SciJava Maven repository. The easiest way to use the lib is by adding the IMCF Uni Basel update site to your ImageJ installation.

The pip installable package is probably only useful for two cases: running pytest (where applicable) and rendering HTML-based API docs using pdoc. Let us know in case you're having another use case 🎪 for it.

Developed and provided by the Imaging Core Facility (IMCF) of the Biozentrum, University of Basel, Switzerland.

Installation Instructions

Two ways of installing the imcflibs package are described here, the "easy" one through the Fiji Update Sites and the "manual" method using packages explicitly downloaded from SciJava Maven.

🧿 Default: Installation via Update Sites

After a fresh install of Fiji, navigate to Help -> Update and in the resulting window, press Manage Update Sites. Here, search for and tick the following necessary update sites for this package.

  • ImageJ
  • Fiji
  • 3D ImageJ-Suite
  • clij2
  • IJPB-plugins
  • IMCF Uni Basel
  • StarDist
  • CALM
  • TrackMate-Cellpose
  • TrackMate-Helper
  • TrackMate-StarDist
  • TrackMate-Weka
  • TrackMate-MorpholibJ

The IMCF Uni Basel update-site will always provide the latest compatible combination of official .jar files to use this package.

Manual Downloads for OMERO

In addition to the update sites, two manual downloads concerning OMERO are necessary:

🏗 Alternative: SciJava Maven Package 👷

💡 IMPORTANT: 💡 same as for the default installation previously described, you will need to enable all Update Sites listed above (and obviously the respective OMERO downloads) in your Fiji as well when using the method described here!

The most up-to-date .jar (or any other published version, including pre-releases) for this package can be always found on the Scijava Maven repository. Navigate to the python-imcflibs folder, pick the desired version (can also be a pre-release) and download the contained .jar file, e.g. python-imcflibs-2.0.0.jar.

Then simply place that file in the jars folder of your Fiji installation, e.g D:\Development\Fiji.app\jars\ or /opt/Fiji.app/jars/, possibly removing other versions of the same package from that folder - then (re-)start Fiji.

If you'd prefer to use the cutting-edge version from GitHub, look into the development instructions for details.

Installation Testing

To check the package's correct installation in Fiji, search for Script Interpreter in the Search bar, and type :lang python, followed by e.g. import imcflibs.imagej.misc. If no errors are shown, the installation was successful. Alternatively, you can scroll in the sidebar of the Interpreter to search for imcflibs.

Example usage

Shading correction / projection

Apply a shading correction model and create a maximum-intensity projection:

from imcflibs.imagej.shading import correct_and_project

model = "/path/to/shading_model.tif"
raw_image = "/path/to/raw_data/image.ome.tif"
out_path = "/path/to/processed_data/"

correct_and_project(raw_image, out_path, model, "Maximum", ".ics")

Split TIFFs by channels and slices

Use status and progress bar updates

Release files for imcflibs 2.0.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 imcflibs 2.0.0
File Size Uploaded
imcflibs-2.0.0.tar.gz 74.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imcflibs 2.0.0
File Interpreter ABI Platform
imcflibs-2.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 157.3 kB

Release files / imcflibs-2.0.0.tar.gz

Download URL imcflibs-2.0.0.tar.gz
Size 74.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5d4a3cd4ef18cbd80d959879cf9061e009bcba309b53db15661bb2704c9d09ee
BLAKE2b-256 checksum
How to use checksums
0648ad226b6fba7e965ce2017315009b1fd30e16dd7cc4c565ade38bc2b9be1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.

Transparency log

Release files / imcflibs-2.0.0-py2.py3-none-any.whl

Download URL imcflibs-2.0.0-py2.py3-none-any.whl
Size 82.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
61c5693a293cf0aaeffa2719ad57678d7cb6a1c4f230c2ca653677ab20bd6aba
BLAKE2b-256 checksum
How to use checksums
324c7f72aed48d43ea70855bbf0a80c51d56e93e6eba9191c312ada7bda458d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.

Transparency log
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