libpappsomspp
Library for mass spectrometry
obopsimod.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
* Contributors:
20
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
21
*implementation
22
******************************************************************************/
23
24
#pragma once
25
26
#include <QRegExp>
27
#include "../types.h"
28
#include "../exportinmportconfig.h"
29
30
namespace
pappso
31
{
32
33
class
OboPsiMod;
34
35
class
PMSPP_LIB_DECL
OboPsiModTerm
36
{
37
friend
OboPsiMod;
38
39
private
:
40
void
parseLine(
const
QString &line);
41
void
clearTerm();
42
43
static
QRegExp m_firstParse;
44
static
QRegExp m_findExactPsiModLabel;
45
static
QRegExp m_findRelatedPsiMsLabel;
46
47
public
:
48
QString m_accession;
49
QString m_name;
50
QString m_psiModLabel;
51
QString m_psiMsLabel;
52
QString m_diffFormula;
53
QString m_origin;
54
55
pappso_double
m_diffMono;
56
57
bool
58
isValid()
const
59
{
60
return
(!m_accession.isEmpty());
61
};
62
};
63
64
class
OboPsiModHandlerInterface
65
{
66
public
:
67
virtual
void
setOboPsiModTerm
(
const
OboPsiModTerm
&term) = 0;
68
};
69
70
class
PMSPP_LIB_DECL
OboPsiMod
71
{
72
private
:
73
OboPsiModTerm
m_term;
74
OboPsiModHandlerInterface
&m_handler;
75
76
void
parse();
77
78
public
:
79
OboPsiMod
(
OboPsiModHandlerInterface
&handler);
80
~
OboPsiMod
();
81
};
82
}
// namespace pappso
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition:
types.h:69
pappso::OboPsiModTerm
Definition:
obopsimod.h:57
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition:
exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks
Definition:
aa.cpp:39
pappso::OboPsiMod
Definition:
obopsimod.h:92
pappso::OboPsiModHandlerInterface::setOboPsiModTerm
virtual void setOboPsiModTerm(const OboPsiModTerm &term)=0
pappso::OboPsiModHandlerInterface
Definition:
obopsimod.h:86
pappsomspp
obo
obopsimod.h
Generated on Mon Aug 24 2020 17:42:19 for libpappsomspp by
1.8.18