Base analysis

Analysis defines a shared execution contract without fixing the result type. Choose PerUnitAnalysis for independent units or BatchAnalysis for a backend that receives the complete collection.

class ASOkai.Analysis.Analysis[source]

Bases: ABC

Base for analyses that produce results from biological units.

analysis_unit_type: ClassVar[Literal['site', 'therapeutic', 'binding'] | None] = None
abstractmethod run(units, *, n_workers=1)[source]

Analyze the supplied units and collect their results.

Parameters:
  • units (Iterable[Any])

  • n_workers (int)

Return type:

list[Any]