コード例 #1
0
 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());
 }
コード例 #2
0
        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());
        }
コード例 #3
0
        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);
            }
        }