Skip to content

Commit a0379f3

Browse files
committed
MS3 information included, error fixed issue #35
1 parent c856e7f commit a0379f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Writer/MzMlSpectrumWriter.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ private SpectrumType ConstructSpectrum(int scanNumber)
854854
name = "MSn spectrum",
855855
value = ""
856856
});
857-
857+
858858
// Construct and set the precursor list element of the spectrum
859859
var precursorListType = ConstructPrecursorList(scanEvent, charge);
860860
spectrum.precursorList = precursorListType;
@@ -868,6 +868,15 @@ private SpectrumType ConstructSpectrum(int scanNumber)
868868
case MSOrderType.Any:
869869
break;
870870
case MSOrderType.Ms3:
871+
spectrumCvParams.Add(new CVParamType
872+
{
873+
accession = "MS:1000580",
874+
cvRef = "MS",
875+
name = "MSn spectrum",
876+
value = ""
877+
});
878+
precursorListType = ConstructPrecursorList(scanEvent, charge);
879+
spectrum.precursorList = precursorListType;
871880
break;
872881
case MSOrderType.Ms4:
873882
break;

0 commit comments

Comments
 (0)