libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::specpeptidoms::AminoAcidModel Struct Reference

#include <peptidemodel.h>

Public Member Functions

QString toProForma () const
QString toInterpretation () const

Public Attributes

pappso::Aa m_aminoAcid = pappso::Aa('A')
double m_massDifference = 0
bool m_skipped = false

Detailed Description

Definition at line 43 of file peptidemodel.h.

Member Function Documentation

◆ toInterpretation()

QString pappso::specpeptidoms::AminoAcidModel::toInterpretation ( ) const

Definition at line 54 of file peptidemodel.cpp.

55{
56 if(m_massDifference != 0)
57 {
58 if(m_skipped)
59 {
60 return QString("[%1][%2]")
61 .arg(m_aminoAcid.toString())
62 .arg(QString::number(m_massDifference));
63 }
64 else
65 {
66 return QString("%1[%2]")
67 .arg(m_aminoAcid.toString())
68 .arg(QString::number(m_massDifference));
69 }
70 }
71 else if(m_skipped)
72 {
73 return QString("[%1]").arg(m_aminoAcid.toString());
74 }
75 else
76 {
77 return m_aminoAcid.toString();
78 }
79}

References m_aminoAcid, m_massDifference, and m_skipped.

◆ toProForma()

QString pappso::specpeptidoms::AminoAcidModel::toProForma ( ) const

Definition at line 39 of file peptidemodel.cpp.

40{
41 if(m_massDifference != 0)
42 {
43 return QString("%1[%2]")
44 .arg(m_aminoAcid.toProForma())
46 }
47 else
48 {
49 return m_aminoAcid.toProForma();
50 }
51}
static QString toProFormaMass(double mass)

References m_aminoAcid, m_massDifference, and pappso::specpeptidoms::PeptideModel::toProFormaMass().

Member Data Documentation

◆ m_aminoAcid

pappso::Aa pappso::specpeptidoms::AminoAcidModel::m_aminoAcid = pappso::Aa('A')

◆ m_massDifference

double pappso::specpeptidoms::AminoAcidModel::m_massDifference = 0

◆ m_skipped

bool pappso::specpeptidoms::AminoAcidModel::m_skipped = false

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