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.