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

#include <utils.h>

Static Public Member Functions

static QString getVersion ()
 
static QString enumToString (PeakQualityCategory peak_category)
 Convenience function to return a string describing the specglob alingment type.
 
static QString enumToString (Enums::XicExtractMethod extract_method)
 
static QString enumToString (Enums::PrecisionUnit precision_unit)
 

Detailed Description

Todo
write docs

Definition at line 43 of file utils.h.

Member Function Documentation

◆ enumToString() [1/3]

QString pappso::masschroq::Utils::enumToString ( Enums::PrecisionUnit precision_unit)
static

Definition at line 113 of file utils.cpp.

114{
115 switch(precision_unit)
116 {
118 return "ppm";
119 break;
121 return "dalton";
122 break;
123 default:
124 break;
125 }
126 return "";
127}

References pappso::Enums::dalton, and pappso::Enums::ppm.

◆ enumToString() [2/3]

QString pappso::masschroq::Utils::enumToString ( Enums::XicExtractMethod extract_method)
static

Definition at line 95 of file utils.cpp.

96{
97
98 switch(extract_method)
99 {
101 return "sum";
102 break;
104 return "max";
105 break;
106 default:
107 break;
108 }
109 return "";
110}
@ sum
sum of intensities
Definition types.h:279
@ max
maximum of intensities
Definition types.h:280

References pappso::Enums::max, and pappso::Enums::sum.

◆ enumToString() [3/3]

QString pappso::masschroq::Utils::enumToString ( PeakQualityCategory peak_category)
static

Convenience function to return a string describing the specglob alingment type.

Returns
QString

Definition at line 44 of file utils.cpp.

45{
46
47 switch(peak_category)
48 {
50 return "a";
51 break;
53 return "aa";
54 break;
56 return "ab";
57 break;
59 return "za";
60 break;
62 return "zaa";
63 break;
65 return "zab";
66 break;
68 return "b";
69 break;
71 return "c";
72 break;
74 return "d";
75 break;
77 return "missed";
78 break;
80 return "nomatch";
81 break;
83 return "pm";
84 break;
86 throw pappso::PappsoException(QObject::tr("no QString for PeakQualityCategory::last"));
87 break;
88 }
89
90 return "";
91}
@ a
peak detected using a single direct MS2 observation
Definition types.h:46
@ missed
no peak found at all
Definition types.h:60
@ aa
best possible : more than one direct MS2 fragmentation in same MSRUN
Definition types.h:45

References pappso::masschroq::a, pappso::masschroq::aa, pappso::masschroq::ab, pappso::masschroq::b, pappso::masschroq::c, pappso::masschroq::d, pappso::masschroq::last, pappso::masschroq::missed, pappso::masschroq::nomatch, pappso::masschroq::post_matching, pappso::masschroq::za, pappso::masschroq::zaa, and pappso::masschroq::zab.

Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), pappso::masschroq::QuantificationMethod::getProjectParameters(), and pappso::masschroq::CborOutputStream::writeMeasurement().

◆ getVersion()

QString pappso::masschroq::Utils::getVersion ( )
static

Definition at line 37 of file utils.cpp.

38{
39 QString version(MASSCHROQ_VERSION);
40 return version;
41}
#define MASSCHROQ_VERSION
Definition config.h:7

References MASSCHROQ_VERSION.

Referenced by pappso::masschroq::JsonInput::action(), and pappso::masschroq::CborOutputStream::writeActionBegin().


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