OpenMS
Loading...
Searching...
No Matches
ProteinRunReferences.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
11#include <OpenMS/config.h>
12
13#include <string>
14#include <vector>
15
16namespace OpenMS
17{
18 class ConsensusMap;
19 class FeatureMap;
20 class PeptideIdentification;
21 class PeptideIdentificationList;
22 class ProteinIdentification;
23
34 class OPENMS_DLLAPI ProteinRunReferences
35 {
36 public:
38 static std::string missingRunMessage(const std::string& identifier);
39
41 static void check(const std::vector<ProteinIdentification>& runs, const std::string& identifier);
42
48 static void check(const std::vector<ProteinIdentification>& runs, const PeptideIdentificationList& peptides);
49
51 static void check(const std::vector<ProteinIdentification>& runs, const std::vector<const PeptideIdentification*>& peptides);
52
54 static void check(const FeatureMap& map);
55
57 static void check(const ConsensusMap& map);
58
67 static void checkProteinAccessions(const FeatureMap& map);
68
70 static void checkProteinAccessions(const ConsensusMap& map);
71 };
72} // namespace OpenMS
A container for consensus elements.
Definition ConsensusMap.h:67
A container for features.
Definition FeatureMap.h:78
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Checks that every peptide identification references an existing protein identification run.
Definition ProteinRunReferences.h:35
static void check(const std::vector< ProteinIdentification > &runs, const std::vector< const PeptideIdentification * > &peptides)
Same as above, for peptide identifications given by pointers.
static void check(const ConsensusMap &map)
Same as above, for the peptide identifications of all consensus features and the unassigned ones.
static void check(const std::vector< ProteinIdentification > &runs, const std::string &identifier)
Throws Exception::InvalidParameter (with missingRunMessage()) if the identifier names none of the run...
static std::string missingRunMessage(const std::string &identifier)
The error message for a peptide identification whose identifier names no protein identification run.
static void checkProteinAccessions(const ConsensusMap &map)
Same as above, for the peptide identifications of all consensus features and the unassigned ones.
static void check(const FeatureMap &map)
Same as above, for the peptide identifications of all features (including subordinates) and the unass...
static void check(const std::vector< ProteinIdentification > &runs, const PeptideIdentificationList &peptides)
Throws Exception::InvalidParameter if a peptide identification names no protein identification run.
static void checkProteinAccessions(const FeatureMap &map)
Throws Exception::ElementNotFound if a peptide evidence names a protein that is no protein hit of its...
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19