![]() |
OpenMS
|
OpenSwath inference of peptidoforms (IPF). More...
#include <OpenMS/ANALYSIS/OPENSWATH/OpenSwathPeptidoformInference.h>
Classes | |
| struct | BayesianModelRow |
| Compact Bayesian model row used by the public helper methods. More... | |
| struct | PosteriorRow |
| Posterior probability row returned by applyBM. More... | |
Public Member Functions | |
| std::vector< IPFPrecursorProbabilityRow > | precursorInference (const std::vector< IPFPrecursorRow > &precursor_rows, const PeptidoformInferenceConfig &config) const |
| Perform precursor-layer inference and return precursor peakgroup PEPs. | |
| std::vector< IPFResultRow > | infer (const std::vector< IPFPrecursorRow > &precursor_rows, const std::vector< IPFTransitionRow > &transition_rows, const std::vector< IPFAlignmentRow > &alignment_rows, const PeptidoformInferenceConfig &config) const |
| Perform complete peptidoform inference. | |
Static Public Member Functions | |
| static std::vector< double > | computeModelFDR (const std::vector< double > &pep_values) |
| Compute model FDR/q-values from posterior error probabilities. | |
| static std::vector< BayesianModelRow > | preparePrecursorBM (const std::vector< IPFPrecursorRow > &rows) |
| Build precursor-layer Bayesian model rows. | |
| static std::vector< PosteriorRow > | applyBM (const std::vector< BayesianModelRow > &rows) |
| Apply a compact Bayesian model and return posterior probabilities. | |
OpenSwath inference of peptidoforms (IPF).
This class is file-format agnostic and works only on compact typed rows.
See: Rosenberger, G., Liu, Y., Röst, H. et al. Inference and quantification of peptidoforms in large sample cohorts by SWATH-MS. Nat Biotechnol 35, 781–788 (2017). https://doi.org/10.1038/nbt.3908
|
static |
Apply a compact Bayesian model and return posterior probabilities.
Rows are grouped by feature and hypothesis. Within each group, evidence values are multiplied and the smallest prior in the group is retained, matching the PyProphet implementation being ported.
| rows | Bayesian-model rows |
|
static |
Compute model FDR/q-values from posterior error probabilities.
This reuses OpenMS multiple-testing utilities and follows the PyProphet IPF convention of computing model FDR from sorted PEP values with maximum-rank tie handling.
| pep_values | Posterior error probabilities for one model-FDR family |
| std::vector< IPFResultRow > infer | ( | const std::vector< IPFPrecursorRow > & | precursor_rows, |
| const std::vector< IPFTransitionRow > & | transition_rows, | ||
| const std::vector< IPFAlignmentRow > & | alignment_rows, | ||
| const PeptidoformInferenceConfig & | config | ||
| ) | const |
Perform complete peptidoform inference.
| precursor_rows | Peakgroup/precursor evidence |
| transition_rows | Transition-level evidence |
| alignment_rows | Optional alignment-group memberships for across-run propagation |
| config | IPF configuration |
| std::vector< IPFPrecursorProbabilityRow > precursorInference | ( | const std::vector< IPFPrecursorRow > & | precursor_rows, |
| const PeptidoformInferenceConfig & | config | ||
| ) | const |
Perform precursor-layer inference and return precursor peakgroup PEPs.
This step combines peakgroup evidence with optional MS1/MS2 precursor evidence. The returned precursor peakgroup PEP is then used as the prior for the transition/peptidoform layer.
| precursor_rows | Peakgroup/precursor evidence rows |
| config | IPF configuration |
|
static |
Build precursor-layer Bayesian model rows.
For each feature this emits rows for the true (1) and false (0) precursor hypotheses using the configured MS1/MS2 precursor evidence.
| rows | Peakgroup and optional precursor-evidence rows |