private void RebuildPeptideList() { _pepIdCounter = 0; _peptides.Clear(); foreach (var sil in IdentData.DataCollection.AnalysisData.SpectrumIdentificationList) { foreach (var sir in sil.SpectrumIdentificationResults) { foreach (var sii in sir.SpectrumIdentificationItems) { if (_peptides.Any(item => item.Equals(sii.Peptide))) { continue; } sii.Peptide.Id = "Pep_" + _pepIdCounter; _pepIdCounter++; _peptides.Add(sii.Peptide); } } } foreach (var pepEv in _peptideEvidences) { if (_peptides.Any(item => item.Equals(pepEv.Peptide))) { continue; } pepEv.Peptide.Id = "Pep_" + _pepIdCounter; _pepIdCounter++; _peptides.Add(pepEv.Peptide); } }
private void RebuildSearchDatabaseList() { _searchDbIdCounter = 0; _searchDatabases.Clear(); foreach (var dbSeq in IdentData.SequenceCollection.DBSequences) { if (_searchDatabases.Any(item => item.Equals(dbSeq.SearchDatabase))) { continue; } dbSeq.SearchDatabase.Id = "SearchDB_" + _searchDbIdCounter; _searchDbIdCounter++; _searchDatabases.Add(dbSeq.SearchDatabase); } foreach (var specId in IdentData.AnalysisCollection.SpectrumIdentifications) { foreach (var dbSeq in specId.SearchDatabases) { if (_searchDatabases.Any(item => item.Equals(dbSeq.SearchDatabase))) { continue; } dbSeq.SearchDatabase.Id = "SearchDB_" + _searchDbIdCounter; _searchDbIdCounter++; _searchDatabases.Add(dbSeq.SearchDatabase); } } }
private void RebuildSpectraDataList() { _specDataIdCounter = 0; _spectraDataList.Clear(); foreach (var sil in IdentData.DataCollection.AnalysisData.SpectrumIdentificationList) { foreach (var spectraData in sil.SpectrumIdentificationResults) { if (_spectraDataList.Any(item => item.Equals(spectraData.SpectraData))) { continue; } spectraData.SpectraData.Id = "SID_" + _specDataIdCounter; _specDataIdCounter++; _spectraDataList.Add(spectraData.SpectraData); } } foreach (var specId in IdentData.AnalysisCollection.SpectrumIdentifications) { foreach (var spectraData in specId.InputSpectra) { if (_spectraDataList.Any(item => item.Equals(spectraData.SpectraData))) { continue; } spectraData.SpectraData.Id = "SID_" + _specDataIdCounter; _specDataIdCounter++; _spectraDataList.Add(spectraData.SpectraData); } } }
private void RebuildDbSequenceList() { _dBSeqIdCounter = 0; _dBSequences.Clear(); foreach (var pepEv in _peptideEvidences) { if (_dBSequences.Any(item => item.Equals(pepEv.DBSequence))) { continue; } pepEv.DBSequence.Id = "DBSeq_" + _dBSeqIdCounter; _dBSeqIdCounter++; _dBSequences.Add(pepEv.DBSequence); } }
internal void RebuildSIPList() { _idCounter = 0; _spectrumIdentificationProtocols.Clear(); foreach (var specId in IdentData.AnalysisCollection.SpectrumIdentifications) { if (_spectrumIdentificationProtocols.Any(item => item.Equals(specId.SpectrumIdentificationProtocol))) { continue; } specId.SpectrumIdentificationProtocol.Id = "SpecIdentProtocol_" + _idCounter; _idCounter++; _spectrumIdentificationProtocols.Add(specId.SpectrumIdentificationProtocol); } }