OpenMS
Loading...
Searching...
No Matches
LevelContextInference Class Reference

Shared OpenSwath analysis context inference for peptide, protein, and gene rows. More...

#include <OpenMS/ANALYSIS/OPENSWATH/LevelContextInference.h>

Static Public Member Functions

static std::vector< LevelContextResultRowinfer (const std::vector< LevelContextInputRow > &input, const LevelContextInferenceConfig &config)
 Estimate p-values, q-values, and PEPs for the given input rows.
 

Detailed Description

Shared OpenSwath analysis context inference for peptide, protein, and gene rows.

This class is file-format agnostic and operates only on compact typed rows.

This is adapted from PyProphet's context inference methods. See the original publication for details: Rosenberger, G., Bludau, I., Schmitt, U. et al. Statistical control of peptide and protein error rates in large-scale targeted data-independent acquisition analyses. Nat Methods 14, 921–927 (2017). https://doi.org/10.1038/nmeth.4398

Member Function Documentation

◆ infer()

static std::vector< LevelContextResultRow > infer ( const std::vector< LevelContextInputRow > &  input,
const LevelContextInferenceConfig config 
)
static

Estimate p-values, q-values, and PEPs for the given input rows.

The input rows are expected to contain one best-scoring row per entity and context. Their decoy flag defines the target/decoy split used to build score distributions for p-value, q-value, and local-FDR/PEP estimation.

For run-specific inference, target/decoy error statistics are estimated independently per RUN_ID. For global and experiment-wide inference, one shared score distribution is used for all rows in the call.

Internally this wraps OpenMS multiple-testing utilities for:

  • target/decoy-based p-value estimation
  • pi0 estimation
  • q-value estimation
  • local-FDR / posterior error probability estimation
Parameters
inputCompact input rows selected for one inference level
configInference and error-estimation configuration
Returns
Result rows containing the original entity and score plus derived p-value, q-value, and PEP estimates