public void PtmMassFromCodeMsAlignTest() { var parser = new IqCodeParser(); var msalignexample = "A.AENVVHHKLDGMPISEAVEINAGNNLVF(LSGKVPTKKSADAPEGELASYGNTE)[-713.72]EQTINVLEQIKTNLNNLGLDMKDVVKMQVFLVGGEENNGTMDFKGFMNGYSKFYDASKTNQLPARSAFQVA(K)[1.02]LANPAWRVEIEVIAVRPAK."; var Mass = parser.PtmMassFromCode(msalignexample); Assert.AreEqual(-712.7, Mass, 0.0005); }
public void PtmMassFromCodeMsgfTest() { var parser = new IqCodeParser(); var msgfexample = "+144.102PRYRK+144.102RTPVSLY+79.966QK+144.102T+79.966PNGEK+144.102PYEC+57.021GEC+57.021GK+144.102-202"; var Mass = parser.PtmMassFromCode(msgfexample); Assert.AreEqual(792.484, Mass, 0.0005); }