libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
alignmentmethod.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/masschroq/alignmentmethod.h
3 * \date 25/10/2024
4 * \author Olivier Langella
5 * \brief store parameters related to msrun alignment
6 */
7
8/*******************************************************************************
9 * Copyright (c) 2024 Olivier Langella
10 *<Olivier.Langella@universite-paris-saclay.fr>.
11 *
12 * This file is part of MassChroQ.
13 *
14 * MassChroQ is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * MassChroQ is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with MassChroQ. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#pragma once
30
31#include <memory>
32#include <QString>
34#include <QJsonObject>
36
38{
39
41
42typedef std::shared_ptr<AlignmentMethod> AlignmentMethodSp;
43
44/**
45 * @todo write docs
46 */
48{
49 public:
50 /**
51 * Default constructor
52 */
53 AlignmentMethod(const QString &id);
54
55 AlignmentMethod(const AlignmentMethod &other);
56
57 /**
58 * Destructor
59 */
61
62 const QString &getId() const;
63
64
65 void setMs2TendencyWindow(std::uint8_t ms2_tendency_window);
66
67 void setMs2SmoothingWindow(std::uint8_t ms2_smoothing_window);
68
69 void setMs1SmoothingWindow(std::uint8_t ms1_smoothing_window);
70
71 void setJsonObject(const QJsonObject &json_object);
72
73 QJsonObject getJsonObject() const;
74
75
76 std::uint8_t getMs2TendencyWindow() const;
77
78 std::uint8_t getMs2SmoothingWindow() const;
79
80 std::uint8_t getMs1SmoothingWindow() const;
81
83
84 private:
85 const QString m_id;
86
90};
91} // namespace pappso::masschroq
pappso::ProjectParameters getProjectParameters() const
void setJsonObject(const QJsonObject &json_object)
void setMs1SmoothingWindow(std::uint8_t ms1_smoothing_window)
void setMs2TendencyWindow(std::uint8_t ms2_tendency_window)
std::uint8_t getMs2SmoothingWindow() const
std::uint8_t getMs1SmoothingWindow() const
std::uint8_t getMs2TendencyWindow() const
void setMs2SmoothingWindow(std::uint8_t ms2_smoothing_window)
#define PMSPP_LIB_DECL
std::shared_ptr< AlignmentMethod > AlignmentMethodSp
class PMSPP_LIB_DECL AlignmentMethod