MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / annotatePepIDfromSpectrum_

Function annotatePepIDfromSpectrum_

src/openms/source/QC/Ms2SpectrumStats.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void annotatePepIDfromSpectrum_(const MSSpectrum& spectrum, PeptideIdentification& peptide_ID)
59 {
60 if (!spectrum.getAcquisitionInfo().empty() && spectrum.getAcquisitionInfo()[0].metaValueExists("MS:1000927"))
61 {
62 peptide_ID.setMetaValue("ion_injection_time", spectrum.getAcquisitionInfo()[0].getMetaValue("MS:1000927"));
63 }
64 if (!spectrum.getPrecursors().empty() && !spectrum.getPrecursors()[0].getActivationMethods().empty())
65 {
66 peptide_ID.setMetaValue("activation_method", Precursor::NamesOfActivationMethodShort[*spectrum.getPrecursors()[0].getActivationMethods().begin()]);
67 }
68 }
69
70 // marks all seen (unassigned-)PeptideIdentifications in vector ms2_included
71 void Ms2SpectrumStats::setPresenceAndScanEventNumber_(PeptideIdentification& peptide_ID, const MSExperiment& exp, const QCBase::SpectraMap& map_to_spectrum)

Calls 6

metaValueExistsMethod · 0.80
getMetaValueMethod · 0.80
getPrecursorsMethod · 0.80
emptyMethod · 0.45
setMetaValueMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected