peptidestrparser.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/>.
*
* Contributors:
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
*implementation
******************************************************************************/
#pragma once
#include "peptide.h"
namespace pappso
{
class PMSPP_LIB_DECL PeptideStrParser
{
public:
static PeptideSp parseString(const QString &pepstr);
static NoConstPeptideSp parseNoConstString(const QString &pepstr);
private:
static void parseStringToPeptide(const QString &pepstr, Peptide &peptide);
private:
static QRegExp _mod_parser;
static QRegExp _rx_psimod;
static QRegExp _rx_modmass;
// static QMutex _mutex;
};
} // namespace pappso
pappso::PeptideStrParser
Definition: peptidestrparser.h:32
pappso::PeptideStrParser::_mod_parser
static QRegExp _mod_parser
Definition: peptidestrparser.h:41
pappso::PeptideStrParser::_rx_modmass
static QRegExp _rx_modmass
Definition: peptidestrparser.h:43
pappso::PeptideStrParser::_rx_psimod
static QRegExp _rx_psimod
Definition: peptidestrparser.h:42
pappso::Peptide
Definition: peptide.h:93
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 and changes multichar...
Definition: aa.cpp:39
pappso::PeptideSp
std::shared_ptr< const Peptide > PeptideSp
Definition: aamodification.h:47
pappso::NoConstPeptideSp
std::shared_ptr< Peptide > NoConstPeptideSp
Definition: peptide.h:90
peptide.h
peptide model