proteobench.score.score_base module#

Abstract base class for score calculation modules.

class proteobench.score.score_base.ScoreBase[source]#

Bases: ABC

Abstract base class for computing benchmark scores.

This class defines the interface that all score calculators must implement, allowing for modular and extensible score computation for different benchmarking modules.

abstractmethod generate_intermediate(filtered_df: DataFrame, replicate_to_raw: dict) DataFrame[source]#

Generate intermediate data structure for scores.

Parameters:
  • filtered_df (pd.DataFrame) – DataFrame containing the filtered data.

  • replicate_to_raw (dict) – Dictionary containing the replicate to raw mapping.

Returns:

DataFrame containing the intermediate data structure with computed scores.

Return type:

pd.DataFrame