コード例 #1
0
        /*
         * Finds the list of peptides that match the query mass, within the
         * ppmTolerance. If any of these peptides are excluded in the specified time,
         * this function will return true.
         */
        public bool isExcluded(double queryMass)
        {
            List <Peptide> matchedMassesPeptides = BinarySearchUtil.findPeptides(exclusionList, queryMass, ppmTolerance);

            foreach (Peptide p in matchedMassesPeptides)
            {
                if (p.isExcluded(currentTime))
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #2
0
ファイル: Database.cs プロジェクト: lonelu/MealTimeMS
 public List <Peptide> findPeptides(double queryMass, double ppmTolerance)
 {
     return(BinarySearchUtil.findPeptides(peptides, queryMass, ppmTolerance));
 }