Esempio n. 1
0
        public override bool Equals(Object other)
        {
            if (other == this)
            {
                return(true);
            }
            if (!base.Equals(other))
            {
                return(false);
            }
            BackgroundProteome that = other as BackgroundProteome;

            if (that == null)
            {
                return(false);
            }
            if (DatabaseInvalid != that.DatabaseInvalid ||
                DatabaseValidated != that.DatabaseValidated)
            {
                return(false);
            }
            return(DigestionNames.SetEquals(that.DigestionNames));
        }
Esempio n. 2
0
 public bool HasDigestion(PeptideSettings peptideSettings)
 {
     return(DigestionNames.Contains(peptideSettings.Enzyme.Name));
 }