public void AddMissedCleavages() { if (this.maxMissedCleavages > 0) { var missedList = new List <DigestRangeLocation>(); for (int i = 0; i < this.peptideQue.Count; i++) { DigestRangeLocation loc = this.peptideQue[i]; for (int iMiss = 0; iMiss < this.maxMissedCleavages; iMiss++) { int j = i + 1 + iMiss; if (j == this.peptideQue.Count) { break; } RangeLocation loc2 = this.peptideQue[j]; missedList.Add(new DigestRangeLocation(loc.Min, loc2.Max, iMiss + 1)); } } this.peptideQue.AddRange(missedList); } }
public void TestParse() { RangeLocation expect = new RangeLocation(30, 600); Assert.AreEqual(expect, RangeLocation.Parse("30-600")); Assert.AreEqual(expect, RangeLocation.Parse("30.5, 600.1")); }
public bool Accept(RangeLocation rl) { string peptide = this.sequence.Substring(rl.Min - 1, rl.Max - rl.Min + 1); double mass = this.aminoacids.AveragePeptideMass(peptide); return(mass >= this.minWeight && mass <= this.maxWeight); }
public bool Accept(RangeLocation rl) { string peptide = this.sequence.Substring(rl.Min - 1, rl.Max - rl.Min + 1); if (0 <= peptide.IndexOfAny(this.exceptAminoacids)) { return(false); } return(true); }
public bool Accept(RangeLocation rl) { for (int index = rl.Min - 1; index <= rl.Max - 1; index++) { if (this.isNglycan[index]) { return(true); } } return(false); }
public bool Accept(RangeLocation rl) { foreach (IRangeLocationFilter filter in this.filters) { if (!filter.Accept(rl)) { return(false); } } return(true); }
public RangeLocation(RangeLocation source) { this.min = source.min; this.max = source.max; }
public void TestParseExceptionDouble() { RangeLocation.Parse("3.1.1, 200"); }
public void TestParseExceptionRegex() { RangeLocation.Parse("3"); }
public bool Accept(RangeLocation rl) { return(rl.Max - rl.Min + 1 >= this.minLength); }