public Precursor BestPrecursor(bool checkMods = false)
        {
            double    score = 0;
            Precursor best  = null;

            foreach (Cluster cluster in clusters)
            {
                Precursor tmp = cluster.OptimizedBestPrecursor(peptide, checkMods);
                if (tmp != null)
                {
                    double tmpScore = tmp.ProbabilityScore(peptide, checkMods);
                    if (tmpScore > score)
                    {
                        score = tmpScore;
                        best  = tmp;
                    }
                }
            }
            return(best);
        }
 public static int OptimizedScoreComparison(Precursor left, Precursor right)
 {
     return(-left.ProbabilityScore().CompareTo(right.ProbabilityScore()));
 }
 public static int CompareProbabilityScore(Precursor left, Precursor right)
 {
     return(-left.ProbabilityScore().CompareTo(right.ProbabilityScore()));
 }
Beispiel #4
0
 public double ScoreFct(Peptide peptide = null)
 {
     return(precursor.ProbabilityScore(peptide));
 }