Skip to content

Commit 84e9ee6

Browse files
changed MS:1002481 to MS:1000422 for compatibility with downstream tools
increased version
1 parent da32e08 commit 84e9ee6

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

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.1.0")]
36-
[assembly: AssemblyFileVersion("1.1.1.0")]
35+
[assembly: AssemblyVersion("1.1.2.0")]
36+
[assembly: AssemblyFileVersion("1.1.2.0")]
3737

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

Writer/MzMlSpectrumWriter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class MzMlSpectrumWriter : SpectrumWriter
3737
// Precursor scan number for reference in the precursor element of an MS2 spectrum
3838
private int _precursorScanNumber;
3939

40+
private const string SourceFileId = "RAW1";
4041
private readonly XmlSerializerFactory factory = new XmlSerializerFactory();
4142
private const string Ns = "http://psi.hupo.org/ms/mzml";
4243
private readonly XmlSerializer cvParamSerializer;
@@ -148,7 +149,7 @@ public override void Write(IRawDataPlus rawFile, int firstScanNumber, int lastSc
148149
_writer.WriteAttributeString("count", "1");
149150
// sourceFile
150151
_writer.WriteStartElement("sourceFile");
151-
_writer.WriteAttributeString("id", ParseInput.RawFileName);
152+
_writer.WriteAttributeString("id", SourceFileId);
152153
_writer.WriteAttributeString("name", ParseInput.RawFileNameWithoutExtension);
153154
_writer.WriteAttributeString("location", ParseInput.RawFilePath);
154155
SerializeCvParam(new CVParamType
@@ -252,6 +253,7 @@ public override void Write(IRawDataPlus rawFile, int firstScanNumber, int lastSc
252253
_writer.WriteAttributeString("defaultInstrumentConfigurationRef", "IC1");
253254
_writer.WriteAttributeString("startTimeStamp",
254255
XmlConvert.ToString(_rawFile.CreationDate, XmlDateTimeSerializationMode.Utc));
256+
_writer.WriteAttributeString("defaultSourceFileRef", SourceFileId);
255257
// spectrumList
256258
_writer.WriteStartElement("spectrumList");
257259
_writer.WriteAttributeString("count", _rawFile.RunHeaderEx.SpectraCount.ToString());

Writer/OntologyMapping.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ public static class OntologyMapping
166166
{
167167
ActivationType.HigherEnergyCollisionalDissociation, new CVParamType
168168
{
169-
accession = "MS:1002481",
170-
name = "higher energy beam-type collision-induced dissociation",
169+
accession = "MS:1000422",
170+
name = "beam-type collision-induced dissociation",
171171
cvRef = "MS",
172172
value = ""
173173
}

0 commit comments

Comments
 (0)