imc2mc
Formatting Imaging Mass Cytrometry (IMC) output files to be compatible with the MCMICRO pipeline.
Description
The Hyperion imaging system outputs one .mcd file per slide containing multiple acquisitions as well as one .txt file per acquisition. This script currently uses the .txt files to create a float32 .tif file with corresponding OME-XML metadata per acquisition. To transform the .txt. file to a .tif file we use the readimc package by BodenmillerGroup. Hot pixel filtering is based on the Steinbock pipeline.
Steps in this module:
- create .tif file from .txt file
- add OME-XML metadata to .tif file
Usage
CLI
Input
The CLI script imc2mc requires 3 inputs
- The path to the acquisition .txt file with
-ior--input - The pixel size in um with
-por--pixel_size - The output .tif file with
-oor--output. Folder structure will be created if not present.
Optional input:
- To apply hot pixel filtering, input an integer with
-tor--hp_threshold. Based on Steinbock we recommend a threshold of 50. - The current version can be accessed with
-vor--version
Installation
Option 1: Install from PyPI
pip install imc2mc
imc2mc --help
Option 2: Docker
Pull the image:
docker pull ghcr.io/schapirolabor/imc2mc:latest
and run the tool directly, mounting your input and output directories:
docker run --rm -v $(pwd):/data ghcr.io/schapirolabor/imc2mc:latest \
imc2mc \
-i /data/input_dir \
-o /data/output.ome.tif \
-p 1 \
-t 50
Option 3: Development/Conda environment
For development or reproducible research setups:
git clone https://github.com/SchapiroLabor/imc2mc.git
cd Background_subtraction
conda env create -f environment.yml
conda activate imc2mc_env
pip install -e .
run
imc2mc --help
Metadata
Release files for imc2mc 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imc2mc-0.0.3.tar.gz | 43.3 kB | With provenance | Details for imc2mc-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imc2mc-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for imc2mc-0.0.3-py3-none-any.whl |
Total release size: 74.0 kB
Release files / imc2mc-0.0.3.tar.gz
| Download URL | imc2mc-0.0.3.tar.gz |
|---|---|
| Size | 43.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7382e661fef454c18f2a6b454ef712d9658af049e2e4f6a47852a32a601dc6a
|
|
BLAKE2b-256 checksum How to use checksums |
312a369ed013f356f073f9a4be6a5925dcd04f6fbaf5f94781956f75019a859c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 1, 2026.
Transparency logRelease files / imc2mc-0.0.3-py3-none-any.whl
| Download URL | imc2mc-0.0.3-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0994d98b574389993430f9786519f59e978600c963f40464d83ae50215e41aa
|
|
BLAKE2b-256 checksum How to use checksums |
0751cc47a8c59867c0cb20fad9682d2c91aa4689fa423b85996433d709db077e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 1, 2026.
Transparency logSecurity for imc2mc 0.0.3
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.
Attestation for imc2mc-0.0.3.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 1, 2026.
Transparency logA 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.