private bool isOnFutureExclusionList(ExclusionList exclusionList, Peptide p) { return(exclusionList.retentionTense(p).Equals(ExclusionList.FUTURE)); List <Peptide> list = exclusionList.getFutureExcludedPeptides(); return(containsPeptideSequence(list, p)); }
private void setExclusionList(ExclusionList exclusionList) { int pastSize = exclusionList.getPastExcludedPeptides().Count; int currentSize = exclusionList.getCurrentExcludedPeptides().Count; int futureSize = exclusionList.getFutureExcludedPeptides().Count; int pastObservedSize = exclusionList.getPastObservedPeptides().Count; int currentObservedSize = exclusionList.getCurrentObservedPeptides().Count; int totalExclusionListSize = pastSize + currentSize + futureSize + pastObservedSize + currentObservedSize; ChangeValue(Header.ExclusionListPastSize, pastSize); ChangeValue(Header.ExclusionListCurrentSize, currentSize); ChangeValue(Header.ExclusionListFutureSize, futureSize); ChangeValue(Header.ExclusionListPastObserved, pastObservedSize); ChangeValue(Header.ExclusionListCurrentObserved, currentObservedSize); ChangeValue(Header.ExclusionListFinalTotalSize, totalExclusionListSize); }