Skip to main content

No project description provided

Project description

๐Ÿงช mcmicroprep ๐Ÿš€

A command-line tool for preparing multiplexed imaging datasets (๐Ÿฆ  Olympus, ๐Ÿฉธ RareCyte) for the MCMICRO Nextflow pipeline.

๐Ÿ› ๏ธ Installation

  1. Prerequisites

    • Conda or Miniconda installed ๐Ÿ
    • Python 3.10+ environment ๐ŸŒŸ
    • SLURM & Nextflow (labsyspharm/mcmicro) on your $PATH
  2. Create Conda env

    conda create -n mcmicroprep python=3.12
    conda activate mcmicroprep
    
  3. Install package

    pip install mcmicroprep
    

๐Ÿ“ Expected Dataset Structure

Your dataset root should contain one subdirectory per slide. Structures vary by vendor:

๐Ÿฆ  Olympus

Each slide directory must contain at least one *_frames/ folder โ€”-- this is the minimum required structure. Additional files or folders may be present and do not need to be removed.

.DATASET FOLDER
โ”œโ”€โ”€ slide1/
โ”‚   โ”œโ”€โ”€ image1_frames/
โ”‚   โ”œโ”€โ”€ image2_frames/
โ”œโ”€โ”€ slide2/
โ””โ”€โ”€ slideN/

After running for Olympus: each slide/image folder would be as follows

slide1/
โ”œโ”€โ”€ raw/                   # image1_frames/, image2_frames/
โ”œโ”€โ”€ misc_files/            # JSON, logs
โ”œโ”€โ”€ batch_submission.sh    # pipeline wrapper
โ”œโ”€โ”€ mcmicro_template.sh    # Nextflow template
โ”œโ”€โ”€ base.config
โ”œโ”€โ”€ markers.csv
โ””โ”€โ”€ params.yml            

๐Ÿฉธ RareCyte

Slide dirs may contain *.rcpnl at any depth: โ€”-- this is the minimum required structure. Additional files or folders may be present and do not need to be removed.

/path/to/dataset/
โ”œโ”€โ”€ slide1/
โ”‚   โ”œโ”€โ”€ img001.rcpnl
โ”‚   โ”œโ”€โ”€ subA/img002.rcpnl
โ”‚   โ””โ”€โ”€ other files
โ””โ”€โ”€ slideN/

After running for RareCyte:

slide1/
โ”œโ”€โ”€ raw/                   # all .rcpnl files
โ”‚   โ”œโ”€โ”€ img001.rcpnl
โ”‚   โ””โ”€โ”€ img002.rcpnl
โ”œโ”€โ”€ misc_files/            # CSV, text
โ”œโ”€โ”€ batch_submission.sh
โ”œโ”€โ”€ mcmicro_template.sh
โ”œโ”€โ”€ base.config
โ”œโ”€โ”€ markers.csv
โ””โ”€โ”€ params.yml             

๐Ÿš€ Usage

Note: Configured for the HMS O2 cluster (SLURM). Generalize by editing SLURM directives in templates/common/.

๐Ÿฆ  Olympus

preparemcmicro \
  --microscope olympus \
  --image-root /path/to/dataset

๐Ÿฉธ RareCyte

preparemcmicro \
  --microscope rarecyte \
  --image-root /path/to/dataset

๐Ÿ› ๏ธ Next Steps for Users

  1. โœ๏ธ **Edit **`` in each slide directory to include your experiment-specific cycle-to-marker mappings.
  2. ๐Ÿ“ค Upload the entire processed dataset folder to the O2 cluster if you ran this locally.
  3. ๐Ÿš€ Start the job on O2:
    cd /n/scratch/users/USERNAME/<DATASET FOLDER>
    bash batch_submission.sh --dataset_path /n/scratch/users/USERNAME/<DATASET FOLDER>
    

Happy processing! ๐Ÿ”ฌ

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

mcmicroprep-0.1.7.tar.gz (97.8 kB view details)

Uploaded Source

Built Distribution

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

mcmicroprep-0.1.7-py3-none-any.whl (110.2 kB view details)

Uploaded Python 3

File details

Details for the file mcmicroprep-0.1.7.tar.gz.

File metadata

  • Download URL: mcmicroprep-0.1.7.tar.gz
  • Upload date:
  • Size: 97.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/25.3.0

File hashes

Hashes for mcmicroprep-0.1.7.tar.gz
Algorithm Hash digest
SHA256 187f126ef2be1ca3a895ece69ab47c53a709d3893f8d1d488bace83a49d3d02e
MD5 d0b641502d286b39490fb1a4511f4f03
BLAKE2b-256 3ea0e3c6b38cab9b25b0a9e4ac01fe815c328089aa9070e57a1d6c21a4647d36

See more details on using hashes here.

File details

Details for the file mcmicroprep-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: mcmicroprep-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 110.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/25.3.0

File hashes

Hashes for mcmicroprep-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fc5c55fd91941a2a5ff95a482a3d48f3c794c321616d81d950752eeabf4ae880
MD5 bf752e9b5af46e2938e1ad5169fa7af6
BLAKE2b-256 82ca10d3c6d6478dd5d18efa91adcf0070551551cb2238c9a64db2261a966044

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