public List <string> Generate(string sequence) { List <string> peptideList = new List <string>(); foreach (string s in generator.Generate(sequence)) { if (FindPTMPosition.ContainsOGlycanSite(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.ContainsOGlycanSite(sequence)) { pepList.Add(sequence); } } List <IPeptide> peptideList = creator.CreateNewPeptides(protein.GetID(), pepList); protein.SetPeptides(peptideList); return(peptideList); }