loki2.inference.cli

CLI for Loki2 cell inference.

This module provides command-line argument parsers for WSI inference operations, supporting both in-memory and disk-based processing.

Module Contents

loki2.inference.cli.parse_wsi_properties(wsi_properties_str: str) Dict[str, Any]

Parse WSI properties from a JSON string.

Parameters:

wsi_properties_str – JSON string containing WSI metadata (e.g., slide_mpp, magnification).

Returns:

Parsed WSI properties dictionary.

Return type:

Dict[str, Any]

Raises:

argparse.ArgumentTypeError – If the JSON string is invalid.

class loki2.inference.cli.InferenceWSIParser

Parser for in-memory WSI inference calculation.

This parser handles command-line arguments for processing WSI files using in-memory inference, supporting both single file and batch processing.

parser
requiredNamed
group_classifier
subparsers
subparser_wsi
subparser_dataset
group
parse_arguments() dict