Skip to main content

stages CODEX data sets for being registered with ASHLAR in MCMICRO.

Project description

Staging module for Akoya - CODEX to MCMICRO

PyPI PyPI - Python Version PyPI - License PyPI - Downloads main

The codex2mc.py script stages CODEX data sets for being registered with ASHLAR in MCMICRO.

The script takes as main input the path to the cycle folder that cointains the raw tiles generated by the Akoya CODEX platform. codex2mc.py reads these tiles and distributes them into acquisition groups. i.e tiles with common rack, well, ROI and exposure levels will be written into an ome.tiff file with the necessary metadata for registration. To be more precise two such ome.tiff files will be generated per cycle, one corresponds to the background signal and the other to the markers signal.

Installation

We recommend installing codex2mc on a clean environment using Python=3.12 and pip. To install codex2mc run the following command:

pip install codex2mc

Usage

Display help message:

codex2mc -h

Display version:

codex2mc -v

CLI

Required arguments

Argument Long name Type Description Default value
-i string/path --input Absolute path to the the parent folder of the raw tiles, i.e. the cycle folder whose name follows the pattern X_Cycle_N,where N represents the cycle number NA
-o string/path --output Absolute path to the directory in which the outputs will be saved. If the output directory doesn't exist it will be created. NA

Optional arguments

Argument Type Long name Description Default value
-rm string --reference_marker Name of the reference marker for registration 'DAPI'
-od string --output_dir String specifying the name of the subfolder in which the staged images will be saved. 'raw'
-ic boolean flag --illumination_correction Give this flag to apply illumination correction to all tiles, the illumination profiles are calculated with basicpy FALSE
-he boolean flag --hi_exposure_only Give this flag to extract only the set of images with the highest exposure time FALSE

Container usage

download container:

  • Docker
docker pull ghcr.io/schapirolabor/multiplex_codex:v1.1.0
  • Singularity
singularity pull docker://ghcr.io/schapirolabor/multiplex_codex:v1.1.0

Script execution

  • Singularity
singularity exec --bind $path_to_your_local_cycle_folder:/mnt,$path_to_your_local_output_folder:/media --no-home $path_to_container python staging/codex2mc/codex2mc.py -i /mnt/$path_to_your_local_cycle_folder -o /media/$path_to_your_local_output_folder

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex2mc-0.0.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex2mc-0.0.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file codex2mc-0.0.1.tar.gz.

File metadata

  • Download URL: codex2mc-0.0.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for codex2mc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7c5ab200e4ecf172e5bf98129515d43943ff780e94bac0c0468314efccc036bd
MD5 f3b40368cd043ddc55ff88b8f80b29a2
BLAKE2b-256 194f0caf52e33d659a039b04b78e38a96d2ab0c7354d297c98c7e06211ea4e4b

See more details on using hashes here.

File details

Details for the file codex2mc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: codex2mc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for codex2mc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 defe5f2c71e4853d3ab9be3cf776131d3c67e91a25be11fa1b9c2be8c558d1e4
MD5 3fcf3a854f18b379815b71df9dcb2b6a
BLAKE2b-256 c7c7ae12b100f27495a23f4aacf4bd6edfba50cc80e6fbb5a54f453eaf84ae0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page