35namespace specpeptidoms
43 return QString(
"%1[%2]")
60 return QString(
"[%1][%2]")
66 return QString(
"%1[%2]")
124 return QString(
"+%1").arg(QString::number(mass,
'f', 4));
128 return QString(
"%1").arg(QString::number(mass,
'f', 4));
137 for(
auto &aa : *
this)
140 mass += aa.m_aminoAcid.getMass() + aa.m_massDifference;
151 QString proforma(
"[");
154 proforma.append(
"+");
156 proforma.append(QString(
"%1]?").arg(QString::number(mass_delta,
'f', 4)));
157 proforma.replace(
"[+0.0000]?",
"");
158 proforma.replace(
"[-0.0000]?",
"");
169 for(
auto &aa : *
this)
171 proforma.append(aa.toProForma());
189 proforma =
'[' + QString::number(
m_nterShift) +
"]";
191 for(
auto &aa : *
this)
193 proforma.append(aa.toInterpretation());
197 proforma =
"[" + QString::number(
m_cterShift) +
']';
const QString toProForma() const
get the amino acid in ProForma notation https://github.com/HUPO-PSI/ProForma/blob/master/README....
const QString toString() const
static QString toProFormaMass(double mass)
void setNterShift(double mass_shift)
void setCterShift(double mass_shift)
QString toProForma() const
double getPrecursorMass() const
QString toInterpretation() const
void setPrecursorMass(double mass)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
const pappso_double MASSH2O((MPROTIUM *2)+MASSOXYGEN)
QString toInterpretation() const
QString toProForma() const