47 unsigned int number_of_neutral_phospho_loss)
54 throw PappsoException(QString(
"Enums::PeptideIon %1 is not an %2 fragment")
107 QString plusstr =
"+";
108 plusstr = plusstr.repeated(charge);
180 throw PappsoException(QString(
"Enums::PeptideIon name not implemented"));
191 return QColor(
"red");
194 return QColor(
"red");
197 return QColor(
"red");
200 return QColor(
"orange");
203 return QColor(
"orange");
206 return QColor(
"blue");
209 return QColor(
"#ff00ff");
212 return QColor(
"green");
215 return QColor(
"green");
218 return QColor(
"green");
221 return QColor(
"blue");
225 return QColor(
"red");
228 return QColor(
"blue");
231 return QColor(
"blue");
304 throw PappsoException(QString(
"Enums::PeptideIon name not implemented"));
375 throw PappsoException(QString(
"Enums::PeptideIon name not implemented"));
439 throw PappsoException(QString(
"Enums::PeptideIon name not implemented"));
509 throw PappsoException(QObject::tr(
"Enums::PeptideIon name not implemented"));
516 qDebug() <<
"PeptideFragmentIon::getNumberOfAtom(Enums::AtomIsotopeSurvey "
517 "atom) NOT IMPLEMENTED";
519 return number + diff;
526 int number =
msp_fragment.get()->getNumberOfIsotope(isotope);
533 return std::make_shared<PeptideFragmentIon>(*
this);
PeptideFragmentIonSp makePeptideFragmentIonSp() const
unsigned int m_neutralPhosphoLossNumber
const Enums::PeptideIon m_ionType
Enums::PeptideIon getPeptideIonType() const
const QString getPeptideIonName() const
virtual int getNumberOfAtom(Enums::AtomIsotopeSurvey atom) const override
get the number of atom C, O, N, H in the molecule
virtual const PeptideFragmentSp & getPeptideFragmentSp() const
PeptideFragmentIon(const PeptideFragmentSp &sp_fragment, Enums::PeptideIon ion_type, unsigned int number_of_neutral_phospho_loss)
const PeptideFragmentSp msp_fragment
const QString getCompletePeptideIonName(unsigned int charge) const
get a complete ion name string
unsigned int getNumberOfNeutralPhosphoLoss() const
virtual const QString getSequence() const override
amino acid sequence without modification
virtual ~PeptideFragmentIon()
virtual unsigned int size() const override
virtual int getNumberOfIsotope(Enums::Isotope isotope) const override
get the number of isotopes C13, H2, O17, O18, N15, S33, S34, S36 in the molecule
pappso_double getMass() const override
static const QColor getPeptideIonColor(Enums::PeptideIon ion_type)
PeptideDirection getPeptideIonDirection() const
virtual bool isPalindrome() const override
tells if the peptide sequence is a palindrome
virtual const QString getName() const override
static const QString getPeptideIonDirectionName(PeptideDirection direction)
static pappso_double getDeltaMass(Enums::PeptideIon ion_type)
PeptideIon
Enums::PeptideIon enum defines all types of ions (Nter or Cter).
@ astar
Nter aldimine ions + NH3 loss.
@ ystar
Cter amino ions + NH3 loss.
@ yo
Cter amino ions + H2O loss.
@ bstar
Nter acylium ions + NH3 loss.
@ bo
Nter acylium ions + H2O loss.
@ ao
Nter aldimine ions + H2O loss.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< const PeptideFragmentIon > PeptideFragmentIonSp
double pappso_double
A type definition for doubles.
PeptideDirection getPeptideIonDirection(Enums::PeptideIon ion_type)
get the direction of a peptide ion
const pappso_double MASSH2O((MPROTIUM *2)+MASSOXYGEN)
const pappso_double MASSPHOSPHORYLATEDR(MPROTIUM+(MASSOXYGEN *3)+MASSPHOSPHORUS)
std::shared_ptr< const PeptideFragment > PeptideFragmentSp