CLI Reference#
PhenoTypic provides a command-line interface for batch processing plate images.
Usage#
python -m phenotypic PIPELINE_JSON INPUT_DIR OUTPUT_DIR [OPTIONS]
Positional Arguments#
PIPELINE_JSONPath to a pipeline configuration file created with
pipeline.to_json().INPUT_DIRDirectory containing plate images to process.
OUTPUT_DIRDirectory where results (overlays, measurements, checkpoints) are saved.
Image Options#
--image-type {Image,GridImage}Image class to use for loading. Default:
Image.--nrows NNumber of grid rows (GridImage only). Default: 8.
--ncols NNumber of grid columns (GridImage only). Default: 12.
--bit-depth {8,16}Force bit depth. Default: auto-detect.
--detect-mode MODEDetection matrix source channel. Default:
gray.--ext EXTFile extension filter (e.g.,
.png,.jpg). Default: all supported formats.
Execution Options#
--n-jobs NNumber of parallel worker processes. Default: all available CPUs.
--force-localRun locally even if SLURM is available.
--dry-runValidate pipeline and list images without processing.
--sample NProcess only N random images (for testing).
--random-seed SEEDRandom seed for
--samplereproducibility.
Resume and Recovery#
--resumeContinue from a previous run. Skips already-processed images.
--retry-failuresRe-process only images that failed. Requires
--resume.--restartClear all state and start fresh. Mutually exclusive with
--resume.--overwriteReprocess all images. Mutually exclusive with
--resume.--checkpoint-interval NSave checkpoint state every N images. Default: 100.
SLURM Options#
--slurm-args KEY=VALUEPass SLURM scheduling parameters (e.g.,
time=04:00:00,partition=gpu).--waitWait for SLURM jobs to complete before returning.
Output Options#
--overlay-alpha FLOATOpacity of detection overlay in saved images. Default: 0.3.
--include-dataset-columnAdd a dataset column to measurement CSV output.
--metadata-csv PATHPath to a CSV file with additional metadata to merge into results.
--skip-validationSkip pipeline validation before processing.