public virtual List <IPeptide> Create(IProtein protein) { List <string> seqList = GeneratePeptideSequences(protein); List <IPeptide> peptideList = CreateNewPeptides(protein.GetID(), seqList); Console.WriteLine(peptideList.Count); protein.SetPeptides(peptideList); return(peptideList); }
public List <IPeptide> Create(IProtein protein) { List <IPeptide> peptideList = new List <IPeptide>(); List <string> sequences = generator.Generate(protein.GetSequence()); foreach (string seq in sequences) { GeneralPeptide peptide = new GeneralPeptide(protein.GetID(), seq); peptideList.Add(peptide); } protein.SetPeptides(peptideList); 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); }