Convert PhenoImager output .tif tiles to a single OME-TIFF with correct metadata
Project description
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
-ior--input - The number of markers that was used in this cycle with
-mor--num_markers - The normalization method that the intensities per cycle should be normalized with. Either 99th or max with
-nor--normalization
Output
- Output .tif file containing all tiles and channels of one cycle with
-oor--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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phenoimager2mc-0.3.2.tar.gz.
File metadata
- Download URL: phenoimager2mc-0.3.2.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0726705a5ac204ed13845f294a8d1da471b1e42e4771f68bb158e8c0e7deb3b4
|
|
| MD5 |
e60bbb101358985b75170efe2d5f5165
|
|
| BLAKE2b-256 |
ae61112566116ba929603b1692fa4c46eace7f1c314dbe96774f1dc9d9589145
|
Provenance
The following attestation bundles were made for phenoimager2mc-0.3.2.tar.gz:
Publisher:
python-publish.yml on SchapiroLabor/phenoimager2mc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phenoimager2mc-0.3.2.tar.gz -
Subject digest:
0726705a5ac204ed13845f294a8d1da471b1e42e4771f68bb158e8c0e7deb3b4 - Sigstore transparency entry: 1252798027
- Sigstore integration time:
-
Permalink:
SchapiroLabor/phenoimager2mc@e8b2931e721806c1ba5916439e51cc4185ed812f -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/SchapiroLabor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8b2931e721806c1ba5916439e51cc4185ed812f -
Trigger Event:
release
-
Statement type:
File details
Details for the file phenoimager2mc-0.3.2-py3-none-any.whl.
File metadata
- Download URL: phenoimager2mc-0.3.2-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97771e21bf824fc23209d19524aaad1ba1e6cc297a2be7bf1896e7e296474953
|
|
| MD5 |
8d25c46b842538f7e3841d7198f58c6d
|
|
| BLAKE2b-256 |
cee23576d5d2979edf7bcbf891181a42939a564a8a83d20f0704c0fcca3195ad
|
Provenance
The following attestation bundles were made for phenoimager2mc-0.3.2-py3-none-any.whl:
Publisher:
python-publish.yml on SchapiroLabor/phenoimager2mc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phenoimager2mc-0.3.2-py3-none-any.whl -
Subject digest:
97771e21bf824fc23209d19524aaad1ba1e6cc297a2be7bf1896e7e296474953 - Sigstore transparency entry: 1252798184
- Sigstore integration time:
-
Permalink:
SchapiroLabor/phenoimager2mc@e8b2931e721806c1ba5916439e51cc4185ed812f -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/SchapiroLabor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8b2931e721806c1ba5916439e51cc4185ed812f -
Trigger Event:
release
-
Statement type: