Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public List <Peptide> findPeptides(double queryMass, double ppmTolerance)
 {
     return(BinarySearchUtil.findPeptides(peptides, queryMass, ppmTolerance));
 }