libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
filterobopsimodmap.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/obo/obopsimodmap.h
3 * \date 2/10/2024
4 * \author Olivier Langella
5 * \brief map container for obo psi mod terms
6 **/
7
8/*******************************************************************************
9 * Copyright (c) 2024 Olivier Langella
10 *<Olivier.Langella@universite-paris-saclay.fr>.
11 *
12 * This file is part of the PAPPSOms++ library.
13 *
14 * PAPPSOms++ is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * PAPPSOms++ is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#pragma once
30
31
32#include "obopsimod.h"
33
34namespace pappso
35{
36
38{
39
40 public:
42 /**
43 * Destructor
44 */
45 virtual ~FilterOboPsiModMap();
46
47 virtual void setOboPsiModTerm(const OboPsiModTerm &term) override;
48
49 const OboPsiModTerm &getOboPsiModTermWithAccession(const QString &accession) const;
50
51 /** @brief get the first occurence of term with this name
52 * @warning not reliable, it does not check for unicity
53 */
54 const OboPsiModTerm &getOboPsiModTermWithName(const QString &name) const;
55
56 private:
57 std::map<QString, const OboPsiModTerm> m_mapOboPsiModTerm;
58};
59} // namespace pappso
const OboPsiModTerm & getOboPsiModTermWithAccession(const QString &accession) const
const OboPsiModTerm & getOboPsiModTermWithName(const QString &name) const
get the first occurence of term with this name
std::map< QString, const OboPsiModTerm > m_mapOboPsiModTerm
virtual void setOboPsiModTerm(const OboPsiModTerm &term) override
triggered function on each obo term when parsing obo file
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39