Convert Imaging Mass Cytometry (IMC) output .txt files to OME-TIFF
Project description
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
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 imc2mc-0.0.3.tar.gz.
File metadata
- Download URL: imc2mc-0.0.3.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7382e661fef454c18f2a6b454ef712d9658af049e2e4f6a47852a32a601dc6a
|
|
| MD5 |
0837eaa9c3c88645b6b7dc1e0969099c
|
|
| BLAKE2b-256 |
312a369ed013f356f073f9a4be6a5925dcd04f6fbaf5f94781956f75019a859c
|
Provenance
The following attestation bundles were made for imc2mc-0.0.3.tar.gz:
Publisher:
python-publish.yml on SchapiroLabor/imc2mc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imc2mc-0.0.3.tar.gz -
Subject digest:
e7382e661fef454c18f2a6b454ef712d9658af049e2e4f6a47852a32a601dc6a - Sigstore transparency entry: 1205953712
- Sigstore integration time:
-
Permalink:
SchapiroLabor/imc2mc@60d1b98cf1b0ddaec76af62802e1944ea57f4c74 -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/SchapiroLabor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@60d1b98cf1b0ddaec76af62802e1944ea57f4c74 -
Trigger Event:
release
-
Statement type:
File details
Details for the file imc2mc-0.0.3-py3-none-any.whl.
File metadata
- Download URL: imc2mc-0.0.3-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0994d98b574389993430f9786519f59e978600c963f40464d83ae50215e41aa
|
|
| MD5 |
843b90f50db1a1ad178feda462816186
|
|
| BLAKE2b-256 |
0751cc47a8c59867c0cb20fad9682d2c91aa4689fa423b85996433d709db077e
|
Provenance
The following attestation bundles were made for imc2mc-0.0.3-py3-none-any.whl:
Publisher:
python-publish.yml on SchapiroLabor/imc2mc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imc2mc-0.0.3-py3-none-any.whl -
Subject digest:
d0994d98b574389993430f9786519f59e978600c963f40464d83ae50215e41aa - Sigstore transparency entry: 1205953715
- Sigstore integration time:
-
Permalink:
SchapiroLabor/imc2mc@60d1b98cf1b0ddaec76af62802e1944ea57f4c74 -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/SchapiroLabor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@60d1b98cf1b0ddaec76af62802e1944ea57f4c74 -
Trigger Event:
release
-
Statement type: