Beispiel #1
0
        private void AddPeptideReference(Library library, XmlReader xmlReader)
        {
            string proteinRef = xmlReader.GetAttribute("ref");

            if (!proteinRef.StartsWith("DECOY"))
            {
                Library.Protein correspondingProtein = (Library.Protein)(library.ProteinList[proteinRef]);
                correspondingProtein.AssociatedPeptideIds.Add(lastPeptideRead);
            }
            else
            {
                Library.Protein correspondingProtein = (Library.Protein)(library.ProteinDecoyList[proteinRef]);
                correspondingProtein.AssociatedPeptideIds.Add(lastPeptideRead);
            }
        }
Beispiel #2
0
        private void AddProtein(Library library, XmlReader xmlReader)
        {
            var protein = new Library.Protein();

            protein.Id = xmlReader.GetAttribute("id");
            protein.AssociatedPeptideIds = new List <string>();
            if (protein.Id.StartsWith("DECOY"))
            {
                library.ProteinDecoyList.Add(protein.Id, protein);
            }
            else
            {
                library.ProteinList.Add(protein.Id, protein);
                StoreUniprotIds(library, protein.Id);
            }
        }