| 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) |
no test coverage detected