public List <string> Generate(string sequence) { List <string> peptideList = new List <string>(); foreach (string s in generator.Generate(sequence)) { if (FindPTMPosition.ContainsNGlycanSite(s)) { peptideList.Add(s); } } return(peptideList); }
public List <IPeptide> Create(IProtein protein) { List <string> pepList = new List <string>(); foreach (string sequence in creator.GeneratePeptideSequences(protein)) { if (FindPTMPosition.ContainsNGlycanSite(sequence)) { pepList.Add(sequence); } } List <IPeptide> peptideList = creator.CreateNewPeptides(protein.GetID(), pepList); protein.SetPeptides(peptideList); return(peptideList); }