Esempio n. 1
0
        /*
         * public List<PeptideSpectrumMatch> GetPSMs(double fdr, double decoyOverTargetRatio = 1, int nbMaxPsm = 1)
         * {
         *  return FDR.PSMs(clusters, fdr, decoyOverTargetRatio, nbMaxPsm);
         * }//*/
        /*
         * public List<PeptideMatch> GetPeptides(double fdr)
         * {
         *  if (peptides != null)
         *      return FDR.Peptides(peptides, fdr);
         *  else
         *      return null;
         * }
         *
         * public List<ProteinGroupMatch> GetProteins(double fdr)
         * {
         *  if (proteins != null)
         *      return FDR.Proteins(proteins, fdr);
         *  else
         *      return null;
         * }//*/

        public static int DescendingProteinScoreComparison(Precursor left, Precursor right)
        {
            PeptideSpectrumMatch psmLeft = left.OptimizedBestPsm();

            if (psmLeft != null)
            {
                PeptideSpectrumMatch psmRight = right.OptimizedBestPsm();
                if (psmRight != null)
                {
                    return(-(psmLeft.ProteinScore.CompareTo(psmRight.ProteinScore)));
                }
                else
                {
                    return(-1);
                }
            }
            else
            {
                return(1);
            }
        }
Esempio n. 2
0
 public static int CompareProteinScore(Precursor left, Precursor right)
 {
     return(-left.OptimizedBestPsm().ProteinScore.CompareTo(right.OptimizedBestPsm().ProteinScore));
 }
Esempio n. 3
0
 public static int CompareMatchingProducts(Precursor left, Precursor right)
 {
     return(-left.OptimizedBestPsm().MatchingProducts.CompareTo(right.OptimizedBestPsm().MatchingProducts));
 }
Esempio n. 4
0
 public static int DescendingIntensityFractionComparison(Precursor left, Precursor right)
 {
     return(-(left.OptimizedBestPsm().MatchingIntensityFraction.CompareTo(right.OptimizedBestPsm().MatchingIntensityFraction)));
 }