public void TestRead() { MaxQuantPeptideTextReader reader = new MaxQuantPeptideTextReader(); var spectra = reader.ReadFromFile(TestContext.CurrentContext.TestDirectory + "/../../../data/maxquant_sites.txt"); Assert.AreEqual(162, spectra.Count); Assert.AreEqual("LQR_SCS_Nu_CA_SAX_Online_071226_06", spectra[0].Query.FileScan.Experimental); Assert.AreEqual(12044, spectra[0].Query.FileScan.FirstScan); Assert.AreEqual(0.000888, spectra[0].ExpectValue, 0.000001); Assert.AreEqual(21.4, spectra[0].Score, 0.0001); Assert.AreEqual("ASEDES*DLEDEEEKSQEDTEQK", spectra[0].Sequence); Assert.AreEqual("#S*GEDEQQEQTIAEDLVVTK", spectra[15].Sequence); Assert.AreEqual("*", reader.ModificationMap["(ph)"]); Assert.AreEqual("#", reader.ModificationMap["(ac)"]); Assert.AreEqual("@", reader.ModificationMap["(ox)"]); }