@@ -195,6 +195,25 @@ public override void Write(IRawDataPlus rawFile, int firstScanNumber, int lastSc
195195 value = ""
196196 } ) ;
197197 }
198+
199+ // Pressure chromatogram
200+ if ( _rawFile . GetInstrumentCountOfType ( Device . Analog ) > 0 )
201+ {
202+ SerializeCvParam ( new CVParamType
203+ {
204+ accession = "MS:1003019" ,
205+ name = "pressure chromatogram" ,
206+ cvRef = "MS" ,
207+ value = ""
208+ } ) ;
209+ }
210+
211+ // MSAnalog chromatogram
212+ if ( _rawFile . GetInstrumentCountOfType ( Device . MSAnalog ) > 0 )
213+ {
214+ // TODO Write MSAnalog fileContent
215+ // e.g. Front FID or Back FID
216+ }
198217 }
199218
200219 _writer . WriteEndElement ( ) ; // fileContent
@@ -893,7 +912,7 @@ private List<ChromatogramType> ConstructChromatograms()
893912 }
894913 }
895914
896- // Chromatograms from other devices: UV, PDA
915+ // Chromatograms from other devices: UV, PDA, Analog, MSAnalog
897916 if ( ParseInput . AllDetectors )
898917 {
899918 for ( int nrI = 1 ; nrI < _rawFile . GetInstrumentCountOfType ( Device . Pda ) + 1 ; nrI ++ )
@@ -1006,7 +1025,7 @@ private List<ChromatogramType> ConstructChromatograms()
10061025
10071026 for ( var i = 0 ; i < trace . Length ; i ++ )
10081027 {
1009- // CV Data for Absorbance Chromatogram
1028+ // CV Data for Pressure Chromatogram
10101029 var chroType = new CVParamType
10111030 {
10121031 accession = "MS:1003019" ,
@@ -1069,7 +1088,7 @@ private List<ChromatogramType> ConstructChromatograms()
10691088 } ;
10701089
10711090 var chromatogram = TraceToChromatogram ( trace [ i ] ,
1072- String . Format ( "AD #{0}_{1}_{2}" , nrI , channelName . Replace ( " " , "_" ) , i ) ,
1091+ String . Format ( "MSAD #{0}_{1}_{2}" , nrI , channelName . Replace ( " " , "_" ) , i ) ,
10731092 chroType , intensType ) ;
10741093
10751094 chromatograms . Add ( chromatogram ) ;
0 commit comments