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)); }
public bool HasDigestion(PeptideSettings peptideSettings) { return(DigestionNames.Contains(peptideSettings.Enzyme.Name)); }