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

#include <deepprotenum.h>

Static Public Member Functions

static const QString toString (DeepProtMatchType match_type)
static const QString toString (DeepProtPeptideCandidateStatus status)
static DeepProtPeptideCandidateStatus DeepProtPeptideCandidateStatusFromString (const QString &name)
static DeepProtMatchType DeepProtMatchTypeFromString (const QString &name)

Detailed Description

Definition at line 72 of file deepprotenum.h.

Member Function Documentation

◆ DeepProtMatchTypeFromString()

pappso::DeepProtMatchType pappso::DeepProtEnumStr::DeepProtMatchTypeFromString ( const QString & name)
static

Definition at line 38 of file deepprotenum.cpp.

39{
41 if(name == "delta_position")
42 {
44 }
45 else if(name == "no_delta_position")
46 {
48 }
49 else if(name == "uncategorized")
50 {
52 }
53 else if(name == "zero_mass_delta")
54 {
56 }
57 else if(name == "zero_mass_delta_mc")
58 {
60 }
61 else if(name == "zero_mass_delta_st")
62 {
64 }
65 else
66 {
67 throw pappso::PappsoException(QObject::tr("DeepProtMatchType unknown :\n%1").arg(name));
68 }
69 return match_type;
70}
DeepProtMatchType
definition of different class of PSMs used by DeepProt
@ ZeroMassDeltaMissedCleavage
peptide candidate with missed cleavage is in precursor mz range
@ uncategorized
precursor mass was not compared
@ ZeroMassDelta
peptide candidate is in precursor mz range
@ ZeroMassDeltaSemiTryptic
semi tryptic peptide candidate is in precursor mz range

References pappso::DeltaPosition, pappso::NoDeltaPosition, pappso::uncategorized, pappso::ZeroMassDelta, pappso::ZeroMassDeltaMissedCleavage, and pappso::ZeroMassDeltaSemiTryptic.

◆ DeepProtPeptideCandidateStatusFromString()

pappso::DeepProtPeptideCandidateStatus pappso::DeepProtEnumStr::DeepProtPeptideCandidateStatusFromString ( const QString & name)
static

Definition at line 74 of file deepprotenum.cpp.

75{
76
78 if(name == "cter_removal")
79 {
81 }
82 else if(name == "delta_position")
83 {
85 }
86 else if(name == "missed_cleavage")
87 {
89 }
90 else if(name == "no_delta_position")
91 {
93 }
94 else if(name == "nter_removal")
95 {
97 }
98 else if(name == "zero_mass_delta")
99 {
101 }
102
103 else
104 {
105 throw pappso::PappsoException(
106 QObject::tr("DeepProtPeptideCandidateStatus unknown :\n%1").arg(name));
107 }
108 return status;
109}
DeepProtPeptideCandidateStatus
definition of different status for potential peptide candidates on the same spectrum
@ unmodified
precursor mass was not compared

References pappso::CterRemoval, pappso::DeltaPosition, pappso::MissedCleavage, pappso::NoDeltaPosition, pappso::NterRemoval, pappso::unmodified, and pappso::ZeroMassDelta.

◆ toString() [1/2]

const QString pappso::DeepProtEnumStr::toString ( pappso::DeepProtMatchType match_type)
static

Definition at line 112 of file deepprotenum.cpp.

113{
114
115 QString match_type_str;
116 switch(match_type)
117 {
119 match_type_str = "delta_position";
120 break;
122 match_type_str = "no_delta_position";
123 break;
125 match_type_str = "uncategorized";
126 break;
128 match_type_str = "zero_mass_delta";
129 break;
131 match_type_str = "zero_mass_delta_mc";
132 break;
134 match_type_str = "zero_mass_delta_st";
135 break;
136
137 default:
138 throw pappso::PappsoException(
139 QObject::tr("DeepProtMatchType unknown :\n%1").arg((std::uint8_t)match_type));
140 }
141 return match_type_str;
142}

References pappso::DeltaPosition, pappso::NoDeltaPosition, pappso::uncategorized, pappso::ZeroMassDelta, pappso::ZeroMassDeltaMissedCleavage, and pappso::ZeroMassDeltaSemiTryptic.

Referenced by pappso::MzIdentMlWriter::writeUserParam(), and pappso::MzIdentMlWriter::writeUserParam().

◆ toString() [2/2]

const QString pappso::DeepProtEnumStr::toString ( pappso::DeepProtPeptideCandidateStatus status)
static

Definition at line 145 of file deepprotenum.cpp.

146{
147
148 QString status_str;
149 switch(status)
150 {
152 status_str = "cter_removal";
153 break;
155 status_str = "delta_position";
156 break;
158 status_str = "missed_cleavage";
159 break;
161 status_str = "no_delta_position";
162 break;
164 status_str = "nter_removal";
165 break;
167 status_str = "zero_mass_delta";
168 break;
169
170 default:
171 throw pappso::PappsoException(
172 QObject::tr("DeepProtPeptideCandidateStatus unknown :\n%1").arg((std::uint8_t)status));
173 }
174
175 return status_str;
176}

References pappso::CterRemoval, pappso::DeltaPosition, pappso::MissedCleavage, pappso::NoDeltaPosition, pappso::NterRemoval, and pappso::ZeroMassDelta.


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