libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
peptideproformaparser.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/peptide/peptideproformaparser.h
3 * \date 27/11/2023
4 * \author Olivier Langella
5 * \brief parse peptide string in ProForma to pappso::Peptide
6 * https://github.com/HUPO-PSI/ProForma/blob/master/README.md
7 */
8
9/*******************************************************************************
10 * Copyright (c) 2023 Olivier Langella
11 *<Olivier.Langella@universite-paris-saclay.fr>.
12 *
13 * This file is part of the PAPPSOms++ library.
14 *
15 * PAPPSOms++ is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * PAPPSOms++ is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
27 *
28 ******************************************************************************/
29
30#pragma once
31#include "peptide.h"
32
33namespace pappso
34{
35/**
36 * @todo write docs
37 */
39{
40 public:
41 static PeptideSp parseString(const QString &pepstr);
42 static NoConstPeptideSp parseNoConstString(const QString &pepstr);
43
44
45 private:
46 static void parseStringToPeptide(const QString &pepstr, Peptide &peptide);
47
48
49 private:
50 // static QRegularExpression _mod_parser;
51 static QRegularExpression _rx_psimod;
52 static QRegularExpression _rx_modmass;
53};
54
55} // namespace pappso
static QRegularExpression _rx_psimod
static QRegularExpression _rx_modmass
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
std::shared_ptr< const Peptide > PeptideSp
std::shared_ptr< Peptide > NoConstPeptideSp
Definition peptide.h:97
peptide model