From afa06946c02fa61796883d74f72a55f87aff5d1c Mon Sep 17 00:00:00 2001
From: Olivier Langella <olivier.langella@u-psud.fr>
Date: Wed, 3 Oct 2018 22:22:53 +0200
Subject: [PATCH] grab retention time from msgf+ mzidentml files

---
 src/input/identificationpwizreader.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/input/identificationpwizreader.cpp b/src/input/identificationpwizreader.cpp
index f8ef38fa..8dc3d464 100644
--- a/src/input/identificationpwizreader.cpp
+++ b/src/input/identificationpwizreader.cpp
@@ -478,8 +478,14 @@ IdentificationPwizReader::read(
                 {
                   // throw pappso::PappsoException(QObject::tr("Scan number not
                   // found"));
+                  //<cvParam cvRef="PSI-MS" accession="MS:1000016" name="scan
+                  //start time" value="4075.63" unitAccession="UO:0000010"
+                  //unitName="second" unitCvRef="UO"/>
+                  rt = getQVariantDoubleParam(spectrum_ptr.get(),
+                                              pwiz::cv::MS_scan_start_time);
                 }
 
+
               //<SpectrumIdentificationItem passThreshold="true" rank="1"
               // experimentalMassToCharge="388.2189331" id="sii2"
               // chargeState="2" calculatedMassToCharge="388.2161235">
-- 
GitLab