libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::masschroq::AlignmentMethod Class Reference

#include <alignmentmethod.h>

Public Member Functions

 AlignmentMethod (const QString &id)
 
 AlignmentMethod (const AlignmentMethod &other)
 
 ~AlignmentMethod ()
 
const QString & getId () const
 
void setMs2TendencyWindow (std::uint8_t ms2_tendency_window)
 
void setMs2SmoothingWindow (std::uint8_t ms2_smoothing_window)
 
void setMs1SmoothingWindow (std::uint8_t ms1_smoothing_window)
 
void setJsonObject (const QJsonObject &json_object)
 
QJsonObject getJsonObject () const
 
std::uint8_t getMs2TendencyWindow () const
 
std::uint8_t getMs2SmoothingWindow () const
 
std::uint8_t getMs1SmoothingWindow () const
 
pappso::ProjectParameters getProjectParameters () const
 

Private Attributes

const QString m_id
 
quint8 m_ms2TendencyWindow
 
quint8 m_ms2SmoothingWindow
 
quint8 m_ms1SmoothingWindow
 

Detailed Description

Todo
write docs

Definition at line 47 of file alignmentmethod.h.

Constructor & Destructor Documentation

◆ AlignmentMethod() [1/2]

pappso::masschroq::AlignmentMethod::AlignmentMethod ( const QString & id)

◆ AlignmentMethod() [2/2]

pappso::masschroq::AlignmentMethod::AlignmentMethod ( const AlignmentMethod & other)

Definition at line 38 of file alignmentmethod.cpp.

39 : m_id(other.m_id)
40{
41 m_ms1SmoothingWindow = other.m_ms1SmoothingWindow;
42 m_ms2SmoothingWindow = other.m_ms2SmoothingWindow;
43 m_ms2TendencyWindow = other.m_ms2TendencyWindow;
44}

References m_id, m_ms1SmoothingWindow, m_ms2SmoothingWindow, and m_ms2TendencyWindow.

◆ ~AlignmentMethod()

pappso::masschroq::AlignmentMethod::~AlignmentMethod ( )

Destructor

Definition at line 47 of file alignmentmethod.cpp.

48{
49}

Member Function Documentation

◆ getId()

const QString & pappso::masschroq::AlignmentMethod::getId ( ) const

Definition at line 52 of file alignmentmethod.cpp.

53{
54 return m_id;
55}

References m_id.

◆ getJsonObject()

QJsonObject pappso::masschroq::AlignmentMethod::getJsonObject ( ) const

Definition at line 135 of file alignmentmethod.cpp.

136{
137 QJsonObject method;
138
139 method.insert("ms1_smoothing", m_ms1SmoothingWindow);
140
141 method.insert("ms2_smoothing", m_ms2SmoothingWindow);
142
143 method.insert("ms2_tendency", m_ms2TendencyWindow);
144
145
146 return method;
147}

References m_ms1SmoothingWindow, m_ms2SmoothingWindow, and m_ms2TendencyWindow.

◆ getMs1SmoothingWindow()

std::uint8_t pappso::masschroq::AlignmentMethod::getMs1SmoothingWindow ( ) const

◆ getMs2SmoothingWindow()

std::uint8_t pappso::masschroq::AlignmentMethod::getMs2SmoothingWindow ( ) const

◆ getMs2TendencyWindow()

std::uint8_t pappso::masschroq::AlignmentMethod::getMs2TendencyWindow ( ) const

◆ getProjectParameters()

pappso::ProjectParameters pappso::masschroq::AlignmentMethod::getProjectParameters ( ) const

Definition at line 95 of file alignmentmethod.cpp.

96{
97 pappso::ProjectParameters parameters;
98 /*
99 pappso::ProjectParam project_param(
100 {pappso::ProjectParamCategory::quantification, "", QVariant()});
101
102 project_param.name = "mcq_alignment_msrun_reference_for_rt_alignment";
103 QString msrunid = m_qxmlStreamReader.attributes()
104 .value("reference_data_id")
105 .toString();
106 project_param.value.setValue(
107 m_mcqrMetadataSet.getMcqrMetadaByDataId(msrunid).m_msrunFile);
108 m_projectParameters.setProjectParam(project_param);
109 */
110
111 pappso::ProjectParam project_param(
113 project_param.name = "mcq_alignment_ms2_tendency_window";
114 project_param.value.setValue((std::size_t)m_ms2TendencyWindow);
115 parameters.setProjectParam(project_param);
116 project_param.name = "mcq_alignment_ms1_smoothing_window";
117 project_param.value.setValue((std::size_t)m_ms1SmoothingWindow);
118 parameters.setProjectParam(project_param);
119 project_param.name = "mcq_alignment_ms2_smoothing_window";
120 project_param.value.setValue((std::size_t)m_ms2SmoothingWindow);
121 parameters.setProjectParam(project_param);
122
123 return parameters;
124}
void setProjectParam(const ProjectParam &param)

References m_ms1SmoothingWindow, m_ms2SmoothingWindow, m_ms2TendencyWindow, pappso::ProjectParam::name, pappso::quantification, and pappso::ProjectParameters::setProjectParam().

◆ setJsonObject()

void pappso::masschroq::AlignmentMethod::setJsonObject ( const QJsonObject & json_object)

Definition at line 127 of file alignmentmethod.cpp.

128{
129 setMs1SmoothingWindow(align_method.value("ms1_smoothing").toInt());
130 setMs2SmoothingWindow(align_method.value("ms2_smoothing").toInt());
131 setMs2TendencyWindow(align_method.value("ms2_tendency").toInt());
132}
void setMs1SmoothingWindow(std::uint8_t ms1_smoothing_window)
void setMs2TendencyWindow(std::uint8_t ms2_tendency_window)
void setMs2SmoothingWindow(std::uint8_t ms2_smoothing_window)

References setMs1SmoothingWindow(), setMs2SmoothingWindow(), and setMs2TendencyWindow().

◆ setMs1SmoothingWindow()

void pappso::masschroq::AlignmentMethod::setMs1SmoothingWindow ( std::uint8_t ms1_smoothing_window)

Definition at line 58 of file alignmentmethod.cpp.

59{
60 m_ms1SmoothingWindow = ms1_smoothing_window;
61}

References m_ms1SmoothingWindow.

Referenced by setJsonObject().

◆ setMs2SmoothingWindow()

void pappso::masschroq::AlignmentMethod::setMs2SmoothingWindow ( std::uint8_t ms2_smoothing_window)

Definition at line 64 of file alignmentmethod.cpp.

65{
66 m_ms2SmoothingWindow = ms2_smoothing_window;
67}

References m_ms2SmoothingWindow.

Referenced by setJsonObject().

◆ setMs2TendencyWindow()

void pappso::masschroq::AlignmentMethod::setMs2TendencyWindow ( std::uint8_t ms2_tendency_window)

Definition at line 70 of file alignmentmethod.cpp.

71{
72 m_ms2TendencyWindow = ms2_tendency_window;
73}

References m_ms2TendencyWindow.

Referenced by setJsonObject().

Member Data Documentation

◆ m_id

const QString pappso::masschroq::AlignmentMethod::m_id
private

Definition at line 85 of file alignmentmethod.h.

Referenced by AlignmentMethod(), AlignmentMethod(), and getId().

◆ m_ms1SmoothingWindow

quint8 pappso::masschroq::AlignmentMethod::m_ms1SmoothingWindow
private

◆ m_ms2SmoothingWindow

quint8 pappso::masschroq::AlignmentMethod::m_ms2SmoothingWindow
private

◆ m_ms2TendencyWindow

quint8 pappso::masschroq::AlignmentMethod::m_ms2TendencyWindow
private

The documentation for this class was generated from the following files: