Skip to main content

Mostly ImageJ/Fiji-related Python helper functions.

Project description

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 redundanciees.

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.

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

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

imcflibs-2.0.0a3.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

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

imcflibs-2.0.0a3-py2.py3-none-any.whl (80.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file imcflibs-2.0.0a3.tar.gz.

File metadata

  • Download URL: imcflibs-2.0.0a3.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imcflibs-2.0.0a3.tar.gz
Algorithm Hash digest
SHA256 fad4e221328015802f05edf78f82618160afa43239afc1d5048ccb01db88516e
MD5 e1490001ace9c1b1d74869e7976e9cc8
BLAKE2b-256 2806048a63a36e06e47ff4c5fe29c143f57b4f5b780a5ebb68e51c3b54f9e7ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for imcflibs-2.0.0a3.tar.gz:

Publisher: build.yml on imcf/python-imcflibs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imcflibs-2.0.0a3-py2.py3-none-any.whl.

File metadata

  • Download URL: imcflibs-2.0.0a3-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for imcflibs-2.0.0a3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b97b3b05e862d665f11a85fbbf14db7a6d0b884d22c760f423953a1707ebe4d4
MD5 caca8942c40b61129667e7473499ba8c
BLAKE2b-256 c3c4656149f9fe4705663e6e95df34991b40c493a2920297d9e386f60c070237

See more details on using hashes here.

Provenance

The following attestation bundles were made for imcflibs-2.0.0a3-py2.py3-none-any.whl:

Publisher: build.yml on imcf/python-imcflibs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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