Skip to main content

phenoimager2mc

Formatting PhenoImager .tif output files to be compatible with the MCMCIRO pipeline and ASHLAR.

Description

Raw data: The PhenoImager software outputs one float32 .tif file per tile and cycle containing all channels. The metadata is unstandardized. Goal: For analysing the data within MCMCIRO (initial registration with ASHLAR), one stacked ome-tif file per channel containing all tiles and cycles is required. Steps in this module:

  • Extraction of metadata from unstandardized tif files
  • Creation of stacked and correct ome-tiff files readable for ASHLAR
  • Conversion from float32 to uint16
  • Normalization to max or 99th percentile (user's choice)

Usage

CLI

Input

The CLI script scripts/phenoimager2mc.py requires 3 inputs

  • The path to the folder containing all .tif files from one cycle with -i or --input
  • The number of markers that was used in this cycle with -m or --num_markers
  • The normalization method that the intensities per cycle should be normalized with. Either 99th or max with -n or --normalization

Output

  • Output .tif file containing all tiles and channels of one cycle with -o or --output

Docker usage

If you want to run the module directly from a pre-configured container with all the required packages, you can either build the docker container yourself or pull it from the Github container registry.

To build the container run:

git clone https://github.com/SchapiroLabor/phenoimager2mc.git
docker build -t phenoimager2mc:latest .
docker run phenoimager2mc:latest python phenoimager2mc.py

To pull the container from the Github container registry (ghcr.io):

## Login to ghcr.io
docker login ghcr.io

## Pull container
docker pull ghcr.io/schapirolabor/phenoimager2mc:latest

Installation

Option 1: Install from PyPI

pip install phenoimager2mc
phenoimager2mc --help

Option 2: Docker

Pull the image:

docker pull ghcr.io/schapirolabor/phenoimager2mc:latest

and run the tool directly, mounting your input and output directories:

docker run --rm -v $(pwd):/data ghcr.io/schapirolabor/phenoimager2mc:latest \
    phenoimager2mc \
    -i /data/input_dir \
    -o /data/output.ome.tif \
    -n 6 \
    -m 99th

Option 3: Development/Conda environment

For development or reproducible research setups:

git clone https://github.com/SchapiroLabor/phenoimager2mc.git
cd Background_subtraction
conda env create -f environment.yml
conda activate phenoimager2mc_env

pip install -e .

run

phenoimager2mc --help

Metadata

Release files for phenoimager2mc 0.3.2

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

Source distribution (sdist)

Source distribution for phenoimager2mc 0.3.2
File Size Uploaded Provenance Actions
phenoimager2mc-0.3.2.tar.gz 43.2 kB With provenance Details for phenoimager2mc-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 74.2 kB

Release files / phenoimager2mc-0.3.2.tar.gz

Download URL phenoimager2mc-0.3.2.tar.gz
Size 43.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0726705a5ac204ed13845f294a8d1da471b1e42e4771f68bb158e8c0e7deb3b4
BLAKE2b-256 checksum
How to use checksums
ae61112566116ba929603b1692fa4c46eace7f1c314dbe96774f1dc9d9589145
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 Apr 8, 2026.

Transparency log

Release files / phenoimager2mc-0.3.2-py3-none-any.whl

Download URL phenoimager2mc-0.3.2-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97771e21bf824fc23209d19524aaad1ba1e6cc297a2be7bf1896e7e296474953
BLAKE2b-256 checksum
How to use checksums
cee23576d5d2979edf7bcbf891181a42939a564a8a83d20f0704c0fcca3195ad
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 Apr 8, 2026.

Transparency log

Security for phenoimager2mc 0.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for phenoimager2mc-0.3.2.tar.gz

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 Apr 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files Full provenance

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