// Add all the peptides of that protein to the exclusion list public void addProtein(Protein p) { foreach (Peptide pep in p.getPeptides()) { addPeptide(pep); } }