public void TestConstruction() { string info = "-.MAS*ESETLNPSAR.I(2.6617,0.0182)"; var fc = new FollowCandidate(info); Assert.AreEqual("-.MAS*ESETLNPSAR.I", fc.Sequence); Assert.AreEqual(2.6617, fc.Score, 0.0001); Assert.AreEqual(0.0182, fc.DeltaScore, 0.0001); Assert.AreEqual(info, fc.ToString()); }
public override void SetProperty(T t, string value) { MatchCollection matches = this.peptidePatternRegex.Matches(value); foreach (Match match in matches) { var fc = new FollowCandidate(match.Groups[1].Value, MyConvert.ToDouble(match.Groups[2].Value), MyConvert.ToDouble(match.Groups[3].Value)); t.DiffModificationSiteCandidates.Add(fc); } }