A package for MCD file conversion and stitching to OME-TIFFs
Project description
MCD STITCHER
MCD Stitcher is a high-performance Python package designed to streamline the processing of Imaging Mass Cytometry (IMC) data. It simplifies the conversion of .mcd files into standards-compliant OME-TIFFs, handles ROI stitching, and provides tools for channel subsetting, pyramid generation and OME-TIFF compression.
Key Features
- Convert: Fast transformation of MCD files to OME-TIFF.
- Stitch: Automatic whole-slide reconstruction from ROIs.
- Optimize: Channel filtering and pyramidal OME-TIFF generation for smooth viewing in QuPath, Napari, and ImageJ.
Installation
MCD Stitcher requires Python 3.11 or higher.
To install the package, use the following command:
pip install mcd_stitcher
⚡ Workflow Commands
▶️ MCD_STITCH
Description: Converts all ROIs from MCD files into whole-slide stitched OME-TIFFs.
Command:
mcd_stitch <input_path> [<output_path>] [OPTIONS]
Arguments:
- input_path: Path to an MCD file or a folder containing
.mcdfiles. - output_path: (Optional) Output folder for stitched OME-TIFFs. Defaults to:
<input_path>/TIFF_stitched
Options:
- -d, --output_type [uint16 | float32]: Output pixel data type. Default:
uint16 - -c, --compression [None | LZW | zstd]: Compression method for the output OME-TIFFs. Default:
zstd - -r, --roi: Interactively select which ROIs to stitch.
Example:
-
Stitch with default output folder and options
mcd_stitch "/path/to/MCD_folder" -
Stitch with custom output folder and options
mcd_stitch "/path/to/MCD_folder" "/path/to/TIFF_stitched" -d float32 -c None
▶️ MCD_CONVERT
Description: Converts all ROIs from input MCD files into individual OME-TIFFs.
Command:
mcd_convert <input_path> [<output_path>] [OPTIONS]
Arguments:
- input_path: Path to an MCD file or a folder containing
.mcdfiles. - output_path: (Optional) Output folder for stitched OME-TIFFs. Defaults to:
<input_path>/TIFF_Converted
Options:
- -d, --output_type [uint16 | float32]: Output pixel data type. Default:
uint16 - -c, --compression [None | LZW | zstd]: Compression method for the output OME-TIFFs. Default:
zstd
Example:
-
Convert with default output folder and options
mcd_convert "/path/to/MCD_folder" -
Convert with custom output folder and options
mcd_convert "/path/to/MCD_folder" "/path/to/TIFF_Converted" -d float32 -c LZW
▶️ TIFF_SUBSET
Description: Subsets channels from OME-TIFF files, with options to list channels, filter specific channels, and generate pyramidal OME-TIFF outputs.
Command:
tiff_subset <input_path> [OPTIONS]
Arguments:
- input_path: Path to an OME-TIFF file or a directory containing OME-TIFF files.
Options:
- -d, --output_type [uint16 | float32]: Output pixel data type. Default:
uint16 - -c, --compression [None | LZW | zstd]: Compression method for the output OME-TIFFs. Default:
zstd - -l, --list-channels: List all channels in the input OME-TIFF.
- -f, --filter "CHANNELS": Subset channels using a range or list (e.g.
"0-5,7,10"). - -p, --pyramid: Create a pyramidal (tiled) OME-TIFF output.
Examples:
-
List all channels in an OME-TIFF file:
tiff_subset "path/to/file.ome.tiff" -l -
Subset channels 12 to 46 in an individual OME-TIFF:
tiff_subset "path/to/file.ome.tiff" -f "12-46"Note: Other possible combinations: "1,6,20" or "5,6-10,55,60"
-
Subset channels in all OME-TIFFs in a directory 12 to 46
tiff_subset "path/to/directory" -f "12-46"Note: The output files will have
_filtered.ome.tiffappended to the original filename. -
Convert an OME-TIFF file into pyramid OME-TIFF
tiff_subset "path/to/file.ome.tiff" -pNote: The output files will have
_pyramid.ome.tiffappended to the original filename. -
Subset channels and generate pyramid OME-TIFF:
tiff_subset "path/to/file.ome.tiff" -p -f "12-46"Note: The output files will have
_filtered_pyramid.ome.tiffappended to the original filename.
Issues
If you encounter any issues, please open a ticket on the issue tracker.
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 mcd_stitcher-2.2.0rc1.tar.gz.
File metadata
- Download URL: mcd_stitcher-2.2.0rc1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c95a36a404ee02647bb146e581c43414d4d1738a9f83f55a1ebb659ed90009db
|
|
| MD5 |
e9e27ae78e59f4e34e8303f0c58c64ef
|
|
| BLAKE2b-256 |
96b65b74fc1ae42a387a53eb179f2adaf1bfbd6c970268d3f03daba3c7494c7e
|
File details
Details for the file mcd_stitcher-2.2.0rc1-py3-none-any.whl.
File metadata
- Download URL: mcd_stitcher-2.2.0rc1-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d40503e39f987b2d6007c88efe391802552c272681696d020fcc3ba396569f61
|
|
| MD5 |
b3b4f61bcc1fe1f81da77669e241595a
|
|
| BLAKE2b-256 |
4e8ca51a26169086508f40f052fc245e6a236f523ca8f2cec69b2b8d05e43bfc
|