Skip to content

Commit e29b695

Browse files
fixed MS3 precursor scan not found
1 parent 534accb commit e29b695

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.1.6.0")]
36-
[assembly: AssemblyFileVersion("1.1.6.0")]
35+
[assembly: AssemblyVersion("1.1.7.0")]
36+
[assembly: AssemblyFileVersion("1.1.7.0")]
3737

3838
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]

Writer/MzMlSpectrumWriter.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -879,15 +879,12 @@ private SpectrumType ConstructSpectrum(int scanNumber)
879879
var result = Regex.Match(scanEvent.ToString(), FilterStringIsolationMzPattern);
880880
if (result.Success)
881881
{
882-
if (!_precursorMs2ScanNumbers.ContainsKey(result.Groups[1].Value))
882+
if (_precursorMs2ScanNumbers.ContainsKey(result.Groups[1].Value))
883883
{
884-
_precursorMs2ScanNumbers.Add(result.Groups[1].Value, scanNumber);
885-
}
886-
else
887-
{
888-
// update the existing value
889-
_precursorMs2ScanNumbers[result.Groups[1].Value] = scanNumber;
884+
_precursorMs2ScanNumbers.Remove(result.Groups[1].Value);
890885
}
886+
887+
_precursorMs2ScanNumbers.Add(result.Groups[1].Value, scanNumber);
891888
}
892889

893890
// Construct and set the precursor list element of the spectrum

0 commit comments

Comments
 (0)