proteobench.datapoint.entrapment_datapoint module#
This module provides functionality for handling and processing quantitative datapoints in the ProteoBench framework.
- class proteobench.datapoint.entrapment_datapoint.EntrapmentDatapoint(id: str = None, software_name: str = None, software_version: int = 0, search_engine: str = None, search_engine_version: int = 0, ident_fdr_psm: int = 0, ident_fdr_peptide: int = 0, ident_fdr_protein: int = 0, enable_match_between_runs: bool = False, precursor_mass_tolerance: str = None, fragment_mass_tolerance: str = None, enzyme: str = None, allowed_miscleavages: int = 0, min_peptide_length: int = 0, max_peptide_length: int = 0, is_temporary: bool = True, intermediate_hash: str = '', results: dict = None, nr_id_features: int = 0, lower_bound_FDP: float = nan, combined_FDP: float = nan, category_combined: str = '', category_paired: str = '', paired_FDP: float = nan, reported_fdr_parsed_from_input: float = nan, fdp_curve: dict = None, comments: str = '', proteobench_version: str = '')[source]#
Bases:
DatapointBaseA data structure used to store the results of a entrapment benchmark run.
This class extends DatapointBase to implement entrapment-specific metrics and metadata storage for LFQ benchmarking runs.
- reported_fdr_parsed_from_input#
FDR threshold inferred from the input data (max Q-value).
- Type:
- static generate_datapoint(intermediate: DataFrame, input_format: str, user_input: dict, entrapment_scores: EntrapmentScores) Series[source]#
Generate a Datapoint object containing metadata and results from the benchmark run.
- Parameters:
intermediate (pd.DataFrame) – The intermediate DataFrame containing benchmark results.
input_format (str) – The format of the input data (e.g., file format).
user_input (dict) – User-defined input values for the benchmark.
entrapment_scores (EntrapmentScores) – Configured EntrapmentScores instance used to compute FDP metrics.
- Returns:
A Pandas Series containing the Datapoint’s attributes as key-value pairs.
- Return type:
pd.Series
- generate_id() None[source]#
Generate a unique ID for the benchmark run by combining the software name and a timestamp.
This ID is used to uniquely identify each run of the benchmark. The timestamp carries microseconds because datapoints are also generated in batches – the resubmission script regenerates many in a loop – where whole-second resolution hands several runs the same ID.