PyProphetLearner

class pyprophet.scoring.runner.PyProphetLearner(config: RunnerIOConfig)[source]

Bases: PyProphetRunner

Implements the learning and scoring workflow for PyProphet.

This class extends PyProphetRunner to include functionality for training a classifier and applying it to the input data.

run_algo(part=None)[source]

Runs the learning and scoring algorithm.

Parameters:

part (str, optional) – Specifies the part of the workflow to run (e.g., “peptide”, “glycan”). Specific for glycopeptide workflows.

Returns:

A tuple containing the result, scorer, and weights.

Return type:

tuple