Skip to main content

stages MACSima tiles for registration with ASHLAR in MCMICRO.

Project description

Staging module for Miltenyi - MACSIMA to MCMICRO

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

The macsima2mc.py script stages MACSima data sets for being registerd with ASHLAR in MCMICRO.

The script takes as main input the path to the cycle folder that cointains the raw tiles generated by the Miltenyi-MACSima platform. macsima2mc.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.

CLI

You can run macsima2mc by using the following command

macsima2mc -h

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'
-osd string --output_subdir 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
-rr boolean flag --remove_reference_marker mark the removal of the reference marker ,e.g. DAPI, for all cycles except the first one FALSE
-qc boolean flag --qc_metrics measure features of contrast, intensity and sharpness of each tile in the cycle and appends them to a table FALSE
-wt boolean flag --write_table writes a table with the acquisition parameters, metadata and,if enabled, qc metrics of each tile. Table will be saved in --output/cycle_info FALSE

Installation

pip install macsima2mc

Container usage

download container:

  • Docker
docker pull ghcr.io/schapirolabor/macsima2mc:v1.1.1
  • Singularity
singularity pull docker://ghcr.io/schapirolabor/macsima2mc:v1.1.1

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/macsima2mc/macsima2mc.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

macsima2mc-1.2.6.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

macsima2mc-1.2.6-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file macsima2mc-1.2.6.tar.gz.

File metadata

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

File hashes

Hashes for macsima2mc-1.2.6.tar.gz
Algorithm Hash digest
SHA256 fcc61f9ceebc005a2115ea245adbfad9237d969cc27e4c934891aea83635f6df
MD5 c134b0abf6330375cbd412c93c5e335d
BLAKE2b-256 c46ccc94b43c8d01b8762de613e147309a60b3c9ae7f28e9911b8c7505a7fcf8

See more details on using hashes here.

File details

Details for the file macsima2mc-1.2.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for macsima2mc-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7896af83e914044122141ba93b2c2e4e194deb012de4ec42518bd797983376
MD5 571d888ddad83bcabd5ec895daf6a314
BLAKE2b-256 825c3a48e54c999a3e2d1604f72beb31cbffa4564c6de45d821b7eb98e7efdc1

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