insitupy.InSituExperiment.from_config

insitupy.InSituExperiment.from_config#

classmethod InSituExperiment.from_config(config_path, mode, collect_warnings_mode=True, **kwargs)#

Create an InSituExperiment object from a configuration file.

Parameters:
  • config_path (Union[str, PathLike, Path]) – The path to the configuration CSV or Excel file.

  • mode (Literal['insitupy', 'xenium']) – The mode to use for loading the datasets. - “insitupy”: Load previously saved InSituPy projects using read(). - “xenium”: Load Xenium data bundles directly using read_xenium().

  • collect_warnings_mode (bool (default: True)) – If True, collect warnings during loading and print a summary at the end. This keeps the progress bar clean while still showing important warnings. Defaults to True.