proteobench.score.quant.score_base module#
Abstract base class for score calculation modules.
- class proteobench.score.quant.score_base.ScoreBase[source]#
Bases:
ABCAbstract 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