OpenMS
Loading...
Searching...
No Matches
PeptideMass.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: Chris Bielow $
6// $Authors: Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/QC/QCBase.h>
12
13namespace OpenMS
14{
15 class FeatureMap;
16
24 class PeptideMass : public QCBase
25 {
26 public:
28 PeptideMass() = default;
29
31 virtual ~PeptideMass() = default;
32
38 void compute(FeatureMap& features);
39
40
41 const std::string& getName() const override;
42
43 Status requirements() const override;
44 };
45
46} // namespace OpenMS
A container for features.
Definition FeatureMap.h:78
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition FlagSet.h:28
QC metric annotating the OBSERVED neutral mass of a peptide from the precursor m/z (precursor_mz - pr...
Definition PeptideMass.h:25
const std::string & getName() const override
Returns the name of the metric.
Definition PeptideMass.cpp:28
Status requirements() const override
Returns the input data requirements of the compute(...) function.
Definition PeptideMass.cpp:34
void compute(FeatureMap &features)
Sets the 'mass' metavalue on the first PeptideHit of each ID to the observed neutral mass from the pr...
Definition PeptideMass.cpp:14
PeptideMass()=default
Constructor.
virtual ~PeptideMass()=default
Destructor.
This class serves as an abstract base class for all QC classes.
Definition QCBase.h:29
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19