libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
obopsimodterm.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
3 *
4 * This file is part of the PAPPSOms++ library.
5 *
6 * PAPPSOms++ is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * PAPPSOms++ is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
18 *
19 ******************************************************************************/
20
21#pragma once
22
23#include <QRegularExpression>
25
26namespace pappso
27{
28
29class OboPsiMod;
30
32{
33 friend OboPsiMod;
34
35 public:
39 OboPsiModTerm &operator=(const OboPsiModTerm &);
40
41 bool isValid() const;
42 /** @brief tells if this term "is_a" another accession
43 * @return bool if true
44 */
45 bool isA(const QString &accession) const;
46
47 public:
48 QString m_accession;
49 QString m_name;
50 QString m_definition;
52 QString m_psiMsLabel;
54 QString m_formula;
55 QString m_origin;
56
57 double m_diffMono;
58 double m_massMono;
59
60 QStringList m_isA;
61
62 private:
63 void parseLine(const QString &line);
64 void clearTerm();
65
66 static QRegularExpression m_firstParse;
67 static QRegularExpression m_findExactPsiModLabel;
68 static QRegularExpression m_findRelatedPsiMsLabel;
69};
70
71} // namespace pappso
72
73
static QRegularExpression m_firstParse
static QRegularExpression m_findRelatedPsiMsLabel
static QRegularExpression m_findExactPsiModLabel
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
int oboPsiModTermMetaTypeId