예제 #1
0
        public bool CheckRecalculatePeaks(PeptideAnalysisData savedData)
        {
            if (Equals(this, savedData))
            {
                return(false);
            }
            if (!Equals(MinCharge, savedData.MinCharge) ||
                !Equals(MaxCharge, savedData.MaxCharge) ||
                !Equals(ExcludedMasses, savedData.ExcludedMasses) ||
                !Equals(MassAccuracy, savedData.MassAccuracy))
            {
                return(true);
            }
            if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys))
            {
                return(true);
            }

            for (int i = 0; i < FileAnalyses.Count; i++)
            {
                if (FileAnalyses.Values[i].CheckRecalculatePeaks(savedData.FileAnalyses.Values[i]))
                {
                    return(true);
                }
            }
            return(false);
        }
예제 #2
0
 public PeptideAnalysisData(PeptideAnalysisData peptideAnalysisData)
 {
     Name = peptideAnalysisData.Name;
     PeptideId = peptideAnalysisData.PeptideId;
     MinCharge = peptideAnalysisData.MinCharge;
     MaxCharge = peptideAnalysisData.MaxCharge;
     ExcludedMasses = peptideAnalysisData.ExcludedMasses;
     MassAccuracy = peptideAnalysisData.MassAccuracy;
     FileAnalyses = peptideAnalysisData.FileAnalyses;
     ChromatogramsWereLoaded = peptideAnalysisData.ChromatogramsWereLoaded;
 }
예제 #3
0
 public PeptideAnalysisData(PeptideAnalysisData peptideAnalysisData)
 {
     Name                    = peptideAnalysisData.Name;
     PeptideId               = peptideAnalysisData.PeptideId;
     MinCharge               = peptideAnalysisData.MinCharge;
     MaxCharge               = peptideAnalysisData.MaxCharge;
     ExcludedMasses          = peptideAnalysisData.ExcludedMasses;
     MassAccuracy            = peptideAnalysisData.MassAccuracy;
     FileAnalyses            = peptideAnalysisData.FileAnalyses;
     ChromatogramsWereLoaded = peptideAnalysisData.ChromatogramsWereLoaded;
 }
예제 #4
0
 protected bool Equals(PeptideAnalysisData other)
 {
     return(string.Equals(Name, other.Name) &&
            PeptideId == other.PeptideId &&
            MinCharge == other.MinCharge &&
            Equals(ExcludedMasses, other.ExcludedMasses) &&
            MaxCharge == other.MaxCharge &&
            MassAccuracy.Equals(other.MassAccuracy) &&
            Equals(FileAnalyses, other.FileAnalyses) &&
            Equals(ChromatogramsWereLoaded, other.ChromatogramsWereLoaded));
 }
예제 #5
0
 public bool CheckDirty(PeptideAnalysisData savedData)
 {
     if (!string.Equals(Name, savedData.Name) ||
         PeptideId != savedData.PeptideId ||
         MinCharge != savedData.MinCharge ||
         MaxCharge != savedData.MaxCharge ||
         !Equals(ExcludedMasses, savedData.ExcludedMasses) ||
         !MassAccuracy.Equals(savedData.MassAccuracy))
     {
         return(true);
     }
     if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys))
     {
         return(true);
     }
     for (int i = 0; i < FileAnalyses.Count; i++)
     {
         if (FileAnalyses.Values[i].CheckDirty(savedData.FileAnalyses.Values[i]))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #6
0
 protected bool Equals(PeptideAnalysisData other)
 {
     return string.Equals(Name, other.Name)
         && PeptideId == other.PeptideId
         && MinCharge == other.MinCharge
         && Equals(ExcludedMasses, other.ExcludedMasses)
         && MaxCharge == other.MaxCharge
         && MassAccuracy.Equals(other.MassAccuracy)
         && Equals(FileAnalyses, other.FileAnalyses)
         && Equals(ChromatogramsWereLoaded, other.ChromatogramsWereLoaded);
 }
예제 #7
0
        public bool CheckRecalculatePeaks(PeptideAnalysisData savedData)
        {
            if (Equals(this, savedData))
            {
                return false;
            }
            if (!Equals(MinCharge, savedData.MinCharge)
                || !Equals(MaxCharge, savedData.MaxCharge)
                || !Equals(ExcludedMasses, savedData.ExcludedMasses)
                || !Equals(MassAccuracy, savedData.MassAccuracy))
            {
                return true;
            }
            if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys))
            {
                return true;
            }

            for (int i = 0; i < FileAnalyses.Count; i++)
            {
                if (FileAnalyses.Values[i].CheckRecalculatePeaks(savedData.FileAnalyses.Values[i]))
                {
                    return true;
                }
            }
            return false;
        }
예제 #8
0
 public bool CheckDirty(PeptideAnalysisData savedData)
 {
     if (!string.Equals(Name, savedData.Name)
         || PeptideId != savedData.PeptideId
         || MinCharge != savedData.MinCharge
         || MaxCharge != savedData.MaxCharge
         || !Equals(ExcludedMasses, savedData.ExcludedMasses)
         || !MassAccuracy.Equals(savedData.MassAccuracy))
     {
         return true;
     }
     if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys))
     {
         return true;
     }
     for (int i = 0; i < FileAnalyses.Count; i++)
     {
         if (FileAnalyses.Values[i].CheckDirty(savedData.FileAnalyses.Values[i]))
         {
             return true;
         }
     }
     return false;
 }