Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.28 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.28 KB

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 scripts/imc2mc.py requires 3 inputs

  • The path to the acquisition .txt file with -i or --input
  • The pixel size in um with -p or --pixel_size
  • The output .tif file with -o or --output. Folder structure will be created if not present.

Optional input:

  • To apply hot pixel filtering, input an integer with -t or --hp_threshold. Based on Steinbock we recommend a threshold of 50.
  • The current version can be accessed with -vor --version