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.2.tar.gz (15.7 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.2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codex2mc-0.0.2.tar.gz
  • Upload date:
  • Size: 15.7 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.2.tar.gz
Algorithm Hash digest
SHA256 bf9aa21fec67797674087cdea4300f1d7e64889416c2e266d4e5b4d896fd820e
MD5 855a623b5e0bc6cbd8ba5d52bf8da2ae
BLAKE2b-256 c247b20d47cd90aab4790ede35594646d901d26c52e4931eb736b3670e0b623a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codex2mc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40e24ba6d9cdf2312bca70e22303566297b99c0ec7d17972911ee6aa29dfa711
MD5 514012a4d66befa5858312e43f847b66
BLAKE2b-256 05361a49cb299931f7ffb2c298936456130fc02e5d913af3844a0bc8949e4e22

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