Skip to content

Commit f7f6baf

Browse files
addition of no compression CV (issue 107)
1 parent 53a8e7e commit f7f6baf

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

Writer/MzMlSpectrumWriter.cs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,17 @@ private ChromatogramType TraceToChromatogram(ChromatogramSignal trace, string ch
10471047
value = ""
10481048
});
10491049
}
1050+
else
1051+
{
1052+
timesBinaryDataCvParams.Add(
1053+
new CVParamType
1054+
{
1055+
accession = "MS:1000576",
1056+
name = "no compression",
1057+
cvRef = "MS",
1058+
value = ""
1059+
});
1060+
}
10501061

10511062
timesBinaryData.cvParam = timesBinaryDataCvParams.ToArray();
10521063

@@ -1090,6 +1101,17 @@ private ChromatogramType TraceToChromatogram(ChromatogramSignal trace, string ch
10901101
value = ""
10911102
});
10921103
}
1104+
else
1105+
{
1106+
intensitiesBinaryDataCvParams.Add(
1107+
new CVParamType
1108+
{
1109+
accession = "MS:1000576",
1110+
name = "no compression",
1111+
cvRef = "MS",
1112+
value = ""
1113+
});
1114+
}
10931115

10941116
intensitiesBinaryData.cvParam = intensitiesBinaryDataCvParams.ToArray();
10951117

@@ -1479,6 +1501,17 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
14791501
value = ""
14801502
});
14811503
}
1504+
else
1505+
{
1506+
massesBinaryDataCvParams.Add(
1507+
new CVParamType
1508+
{
1509+
accession = "MS:1000576",
1510+
name = "no compression",
1511+
cvRef = "MS",
1512+
value = ""
1513+
});
1514+
}
14821515

14831516
massesBinaryData.cvParam = massesBinaryDataCvParams.ToArray();
14841517

@@ -1527,6 +1560,17 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
15271560
value = ""
15281561
});
15291562
}
1563+
else
1564+
{
1565+
intensitiesBinaryDataCvParams.Add(
1566+
new CVParamType
1567+
{
1568+
accession = "MS:1000576",
1569+
name = "no compression",
1570+
cvRef = "MS",
1571+
value = ""
1572+
});
1573+
}
15301574

15311575
intensitiesBinaryData.cvParam = intensitiesBinaryDataCvParams.ToArray();
15321576

@@ -1698,6 +1742,17 @@ private SpectrumType ConstructPDASpectrum(int scanNumber, int instrumentNumber)
16981742
value = ""
16991743
});
17001744
}
1745+
else
1746+
{
1747+
positionsBinaryDataCvParams.Add(
1748+
new CVParamType
1749+
{
1750+
accession = "MS:1000576",
1751+
name = "no compression",
1752+
cvRef = "MS",
1753+
value = ""
1754+
});
1755+
}
17011756

17021757
positionsBinaryData.cvParam = positionsBinaryDataCvParams.ToArray();
17031758

@@ -1746,6 +1801,17 @@ private SpectrumType ConstructPDASpectrum(int scanNumber, int instrumentNumber)
17461801
value = ""
17471802
});
17481803
}
1804+
else
1805+
{
1806+
intensitiesBinaryDataCvParams.Add(
1807+
new CVParamType
1808+
{
1809+
accession = "MS:1000576",
1810+
name = "no compression",
1811+
cvRef = "MS",
1812+
value = ""
1813+
});
1814+
}
17491815

17501816
intensitiesBinaryData.cvParam = intensitiesBinaryDataCvParams.ToArray();
17511817

0 commit comments

Comments
 (0)