Issue 369: "An item with the same key has already been added" when adding peptides from a library

issues
Status:closed
Assigned To:Guest
Type:Defect
Area:Skyline
Priority:2
Milestone:3.1
Opened:2014-12-01 by Nick Shulman
Changed:2017-06-10 by Brendan MacLean
Resolved:2016-03-09 by Nick Shulman
Resolution:Fixed
Closed:2017-06-10 by Brendan MacLean
2014-12-01 Nick Shulman
Title»"An item with the same key has already been added" when adding peptides from a library
Assigned To»Brendan MacLean
Type»Defect
Area»Skyline
Priority»2
Milestone»3.1
From the exception web:
https://skyline.gs.washington.edu/labkey/announcements/home/issues/exceptions/thread.view?rowId=17554

Steps to reproduce:
1. Download file /net/maccoss/vol6/home/nicksh/data/TransitionGroupGetLibraryInfoBug/1595_CaM_BP_2.sky.zip
2. View|Spectral Libraries
3. Add the peptide "ATESGAQ..." (or you could do "Add All Peptides")
Result:

Stack trace:
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at pwiz.Skyline.Model.TransitionGroup.GetLibraryInfo(SrmSettings settings, ExplicitMods mods, Boolean useFilter, SpectrumHeaderInfo& libInfo, Dictionary`2 transitionRanks) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\TransitionGroup.cs:line 612
   at pwiz.Skyline.Model.TransitionGroupDocNode.ChangeSettings(SrmSettings settingsNew, PeptideDocNode nodePep, ExplicitMods mods, SrmSettingsDiff diff) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\TransitionGroupDocNode.cs:line 689
   at pwiz.Skyline.Model.PeptideDocNode.ChangeSettings(SrmSettings settingsNew, SrmSettingsDiff diff, Boolean recurse) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\PeptideDocNode.cs:line 701
   at pwiz.Skyline.Model.PeptideGroupDocNode.ChangeSettings(SrmSettings settingsNew, SrmSettingsDiff diff) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\PeptideGroupDocNode.cs:line 209
   at pwiz.Skyline.Model.SrmDocument.ChangeSettingsInternal(SrmSettings settingsNew) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\SrmDocument.cs:line 595
   at pwiz.Skyline.Model.SrmDocument.ChangeSettings(SrmSettings settingsNew) in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\Model\SrmDocument.cs:line 549
   at pwiz.Skyline.SettingsUI.ViewLibraryDlg.AddAllPeptides() in C:\proj\skyline_2_6_x64\pwiz_tools\Skyline\SettingsUI\ViewLibraryDlg.cs:line 1461

The bug has something to do with "PredictedMz" and "PredictedMz2" for two different things both being 935.43890297000007

2016-01-06 Brendan MacLean
Assigned ToBrendan MacLean»Nick Shulman
Looks like you figured this one out. So, I'll let you resolve it. Thanks! :-)

2016-03-09 Nick Shulman
resolve as Fixed
Statusopen»resolved

2017-06-10 Brendan MacLean
close
Statusresolved»closed
Assigned ToNick Shulman»Guest