OpenMS
Loading...
Searching...
No Matches
MS1LabelState.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
14
15#include <string>
16#include <vector>
17
18namespace OpenMS
19{
43 namespace MS1LabelState
44 {
46 inline const std::string LABELED_SEQUENCE = "MS1Label:labeled_sequence";
48 inline const std::string REMOVED_LABELS = "MS1Label:removed_labels";
50 inline const std::string CHANNEL = "MS1Label:channel";
51
53 OPENMS_DLLAPI const std::vector<std::string>& keys();
54
71
75 OPENMS_DLLAPI bool hasMatchedSequence(const PeptideHit& hit);
77 OPENMS_DLLAPI bool hasMatchedSequence(const PeptideHit& hit, const Keys& keys);
78
89 OPENMS_DLLAPI AASequence matchedSequence(const PeptideHit& hit);
91 OPENMS_DLLAPI AASequence matchedSequence(const PeptideHit& hit, const Keys& keys);
92
94 OPENMS_DLLAPI PeptideHit withMatchedSequence(const PeptideHit& hit);
95 } // namespace MS1LabelState
96} // namespace OpenMS
Definition AASequence.h:96
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition PeptideHit.h:52
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
bool hasMatchedSequence(const PeptideHit &hit)
PeptideHit withMatchedSequence(const PeptideHit &hit)
A copy of hit whose sequence is matchedSequence(); an unchanged copy when no label state is recorded.
const std::string CHANNEL
Meta value key: the 1-based channel the spectrum belongs to (0 = unknown)
Definition MS1LabelState.h:50
const std::string LABELED_SEQUENCE
Meta value key: the peptidoform the spectrum was matched with (see the namespace documentation)
Definition MS1LabelState.h:46
AASequence matchedSequence(const PeptideHit &hit)
The peptidoform hit was matched to the spectrum with.
const std::string REMOVED_LABELS
Meta value key: the labels removed from the matched peptidoform, or "none".
Definition MS1LabelState.h:48
const std::vector< std::string > & keys()
The three keys, in the order they are reported.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
The registry indices of the three keys, resolved once for a loop over many hits.
Definition MS1LabelState.h:65
UInt channel
Definition MS1LabelState.h:69
UInt removed_labels
Definition MS1LabelState.h:68
UInt labeled_sequence
Definition MS1LabelState.h:67