Loading...
Searching...
No Matches
obopsimodterm.h
Go to the documentation of this file.
/*******************************************************************************
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include <QRegularExpression>
#include "pappsomspp/export-import-config.h"
namespace pappso
{
class OboPsiMod;
class OboPsiMs;
class OboUnimod;
class PMSPP_LIB_DECL OboPsiModTerm
{
friend OboPsiMod;
friend OboPsiMs;
friend OboUnimod;
public:
OboPsiModTerm();
~OboPsiModTerm();
OboPsiModTerm(const OboPsiModTerm &);
OboPsiModTerm &operator=(const OboPsiModTerm &);
bool isValid() const;
/** @brief tells if this term "is_a" another accession
* @return bool if true
*/
bool isA(const QString &accession) const;
void setAccession(const QString &accession);
const QString &getAccession() const;
bool isUnimod() const;
public:
QString m_name;
QString m_definition;
QString m_psiModLabel;
QString m_psiMsLabel;
QString m_diffFormula;
QString m_formula;
QString m_origin;
double m_diffMono;
double m_massMono;
QStringList m_isA;
private:
void parseLine(const QString &line);
void clearTerm();
static QRegularExpression m_firstParse;
static QRegularExpression m_findExactPsiModLabel;
static QRegularExpression m_findRelatedPsiMsLabel;
static QRegularExpression m_firstParseUnimod;
static QRegularExpression m_parseDefinition;
private:
QString m_accession;
bool m_isUnimod = false;
};
} // namespace pappso
extern int oboPsiModTermMetaTypeId;
CardanoResultCase::line
@ line
Definition cardano.h:42
pappso::OboPsiModTerm::m_firstParseUnimod
static QRegularExpression m_firstParseUnimod
Definition obopsimodterm.h:78
pappso::OboPsiModTerm::clearTerm
void clearTerm()
Definition obopsimodterm.cpp:243
pappso::OboPsiModTerm::m_psiModLabel
QString m_psiModLabel
Definition obopsimodterm.h:60
pappso::OboPsiModTerm::m_isA
QStringList m_isA
Definition obopsimodterm.h:69
pappso::OboPsiModTerm::setAccession
void setAccession(const QString &accession)
Definition obopsimodterm.cpp:267
pappso::OboPsiModTerm::OboPsiModTerm
OboPsiModTerm()
Definition obopsimodterm.cpp:51
pappso::OboPsiModTerm::m_psiMsLabel
QString m_psiMsLabel
Definition obopsimodterm.h:61
pappso::OboPsiModTerm::operator=
OboPsiModTerm & operator=(const OboPsiModTerm &)
Definition obopsimodterm.cpp:76
pappso::OboPsiModTerm::m_diffFormula
QString m_diffFormula
Definition obopsimodterm.h:62
pappso::OboPsiModTerm::OboPsiMs
friend OboPsiMs
Definition obopsimodterm.h:36
pappso::OboPsiModTerm::OboUnimod
friend OboUnimod
Definition obopsimodterm.h:37
pappso::OboPsiModTerm::m_origin
QString m_origin
Definition obopsimodterm.h:64
pappso::OboPsiModTerm::m_definition
QString m_definition
Definition obopsimodterm.h:59
pappso::OboPsiModTerm::isValid
bool isValid() const
Definition obopsimodterm.cpp:96
pappso::OboPsiModTerm::isA
bool isA(const QString &accession) const
tells if this term "is_a" another accession
Definition obopsimodterm.cpp:102
pappso::OboPsiModTerm::m_formula
QString m_formula
Definition obopsimodterm.h:63
pappso::OboPsiModTerm::m_firstParse
static QRegularExpression m_firstParse
Definition obopsimodterm.h:75
pappso::OboPsiModTerm::parseLine
void parseLine(const QString &line)
Definition obopsimodterm.cpp:108
pappso::OboPsiModTerm::getAccession
const QString & getAccession() const
Definition obopsimodterm.cpp:261
pappso::OboPsiModTerm::m_findRelatedPsiMsLabel
static QRegularExpression m_findRelatedPsiMsLabel
Definition obopsimodterm.h:77
pappso::OboPsiModTerm::isUnimod
bool isUnimod() const
Definition obopsimodterm.cpp:277
pappso::OboPsiModTerm::m_findExactPsiModLabel
static QRegularExpression m_findExactPsiModLabel
Definition obopsimodterm.h:76
pappso::OboPsiModTerm::m_massMono
double m_massMono
Definition obopsimodterm.h:67
pappso::OboPsiModTerm::m_parseDefinition
static QRegularExpression m_parseDefinition
Definition obopsimodterm.h:79
pappso::OboPsiModTerm::m_diffMono
double m_diffMono
Definition obopsimodterm.h:66
pappso::OboPsiModTerm::m_isUnimod
bool m_isUnimod
Definition obopsimodterm.h:83
pappso::OboPsiModTerm::m_accession
QString m_accession
Definition obopsimodterm.h:82
pappso::OboPsiModTerm::OboPsiMod
friend OboPsiMod
Definition obopsimodterm.h:35
pappso::OboPsiModTerm::m_name
QString m_name
Definition obopsimodterm.h:58
pappso::OboPsiMod
Definition obopsimod.h:35
pappso::OboPsiMs
Definition obopsims.h:39
pappso::OboUnimod
Definition obounimod.h:39
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition export-import-config.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
oboPsiModTermMetaTypeId
int oboPsiModTermMetaTypeId
Definition obopsimodterm.cpp:29