@@ -115,8 +115,8 @@ public List<PROXISpectrum> Retrieve()
115115 // trailer extra data list
116116 var trailerData = rawFile . GetTrailerExtraInformation ( scanNumber ) ;
117117 int charge = 0 ;
118- double ? monoisotopicMz = null ;
119- double ? isolationWidth = null ;
118+ double monoisotopicMz = 0.0 ;
119+ double isolationWidth = 0.0 ;
120120 for ( var i = 0 ; i < trailerData . Length ; i ++ )
121121 {
122122 if ( trailerData . Labels [ i ] == "Ion Injection Time (ms):" )
@@ -148,10 +148,20 @@ public List<PROXISpectrum> Retrieve()
148148
149149 if ( reaction != null )
150150 {
151+ // Store the precursor information
151152 var selectedIonMz =
152153 SpectrumWriter . CalculateSelectedIonMz ( reaction , monoisotopicMz , isolationWidth ) ;
153154 proxiSpectrum . AddAttribute ( accession : "MS:10000744" , name : "selected ion m/z" ,
154155 value : selectedIonMz . ToString ( CultureInfo . InvariantCulture ) ) ;
156+ proxiSpectrum . AddAttribute ( accession : "MS:1000827" , name : "isolation window target m/z" ,
157+ value : selectedIonMz . ToString ( CultureInfo . InvariantCulture ) ) ;
158+
159+ // Store the isolation window information
160+ double isolationHalfWidth = isolationWidth / 2 ;
161+ proxiSpectrum . AddAttribute ( accession : "MS:1000828" , name : "isolation window lower offset" ,
162+ value : isolationHalfWidth . ToString ( CultureInfo . InvariantCulture ) ) ;
163+ proxiSpectrum . AddAttribute ( accession : "MS:1000829" , name : "isolation window upper offset" ,
164+ value : isolationHalfWidth . ToString ( CultureInfo . InvariantCulture ) ) ;
155165 }
156166
157167 // scan polarity
0 commit comments