Source code for proteobench.score.quantscoresPYE
"""
Module containing plasma quantification score calculators (PYE - Plasma Year Edition).
"""
from typing import Dict
import pandas as pd
from proteobench.score.quantscoresHYE import QuantScoresHYE
[docs]
class QuantScoresPYE(QuantScoresHYE):
"""
Class for computing quantification scores for plasma benchmarking (PYE module).
This class inherits from QuantScoresHYE and extends it with plasma-specific metrics
and calculations. It follows the same ScoreBase interface pattern but adds custom
logic tailored for plasma quantification benchmarking.
Parameters
----------
precursor_column_name : str
Name of the precursor column.
species_expected_ratio : dict
Dictionary containing the expected ratios for each species.
species_dict : dict
Dictionary containing the species names and their column mappings.
"""
def __init__(self, precursor_column_name: str, species_expected_ratio, species_dict: Dict[str, str]):
"""
Initialize the QuantScoresPYE object.
Parameters
----------
precursor_column_name : str
Name of the precursor.
species_expected_ratio : dict
Dictionary containing the expected ratios for each species.
species_dict : dict
Dictionary containing the species names.
"""
super().__init__(precursor_column_name, species_expected_ratio, species_dict)