OpenMS
Loading...
Searching...
No Matches
MS1LabeledRatioQuantifier.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
16
17#include <map>
18#include <string>
19#include <vector>
20
21namespace OpenMS
22{
76 {
77 public:
80 {
82 unsigned fraction_group = 0;
84 unsigned channel = 0;
86 double ratio = 0.0;
88 double normalized_ratio = 0.0;
91 };
92
94
102 void run(ConsensusMap& consensus, const ExperimentalDesign& design, ProteinIdentification& proteins);
103
105 const std::map<AASequence, std::vector<ChannelRatio>>& getPeptideRatios() const;
106
108 const std::map<std::string, std::vector<ChannelRatio>>& getProteinGroupRatios() const;
109
110 protected:
112 static double median_(std::vector<double>& values);
113
114 std::map<AASequence, std::vector<ChannelRatio>> peptide_ratios_;
115 std::map<std::string, std::vector<ChannelRatio>> protein_group_ratios_;
116 };
117} // namespace OpenMS
A container for consensus elements.
Definition ConsensusMap.h:67
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Representation of an experimental design in OpenMS. Instances can be loaded with the ExperimentalDesi...
Definition ExperimentalDesign.h:449
Channel ratios of MS1-labeled (SILAC, Dimethyl, ...) data, aggregated as medians of ratios.
Definition MS1LabeledRatioQuantifier.h:76
void run(ConsensusMap &consensus, const ExperimentalDesign &design, ProteinIdentification &proteins)
Compute the ratios of consensus and annotate features and protein groups with them.
Definition MS1LabeledRatioQuantifier.cpp:61
unsigned fraction_group
Fraction group the ratio was measured in (1-based)
Definition MS1LabeledRatioQuantifier.h:82
MS1LabeledRatioQuantifier()
Definition MS1LabeledRatioQuantifier.cpp:27
const std::map< std::string, std::vector< ChannelRatio > > & getProteinGroupRatios() const
Protein group ratios of the last run(), by the group's leading accession.
Definition MS1LabeledRatioQuantifier.cpp:56
double normalized_ratio
ratio divided by the median peptide ratio of this (fraction group, channel)
Definition MS1LabeledRatioQuantifier.h:88
double ratio
Median of the contributing ratios.
Definition MS1LabeledRatioQuantifier.h:86
Size count
Number of contributing ratios (evidences for a peptide, peptides for a protein group)
Definition MS1LabeledRatioQuantifier.h:90
unsigned channel
Channel in the numerator (1-based label of the experimental design; the denominator is the reference ...
Definition MS1LabeledRatioQuantifier.h:84
static double median_(std::vector< double > &values)
Median of values (which is sorted in the process); NaN if empty.
Definition MS1LabeledRatioQuantifier.cpp:39
std::map< std::string, std::vector< ChannelRatio > > protein_group_ratios_
Definition MS1LabeledRatioQuantifier.h:115
std::map< AASequence, std::vector< ChannelRatio > > peptide_ratios_
Definition MS1LabeledRatioQuantifier.h:114
const std::map< AASequence, std::vector< ChannelRatio > > & getPeptideRatios() const
Peptide ratios of the last run(), by peptide identity.
Definition MS1LabeledRatioQuantifier.cpp:51
One channel ratio of one peptide or protein group, at (fraction group, channel) grain.
Definition MS1LabeledRatioQuantifier.h:80
Representation of a protein identification run.
Definition ProteinIdentification.h:55
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19