File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,6 +1168,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
11681168 double ? monoisotopicMz = null ;
11691169 double ? ionInjectionTime = null ;
11701170 double ? FAIMSCV = null ;
1171+ bool FAIMSON = false ;
11711172 List < double > SPSMasses = new List < double > ( ) ;
11721173 for ( var i = 0 ; i < trailerData . Length ; i ++ )
11731174 {
@@ -1196,12 +1197,18 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
11961197 FAIMSCV = double . Parse ( trailerData . Values [ i ] , NumberStyles . Any ,
11971198 CultureInfo . CurrentCulture ) ;
11981199 }
1200+
1201+ // Check if the FAIMS voltage is on
1202+ if ( trailerData . Labels [ i ] == "FAIMS Voltage On:" && trailerData . Values [ i ] . Equals ( "Yes" ) )
1203+ {
1204+ FAIMSON = true ;
1205+ }
11991206
12001207 // Tune version < 3 produced trailer entry like "SPS Mass #", one entry per mass
12011208 if ( _spSentry . IsMatch ( trailerData . Labels [ i ] ) )
12021209 {
12031210 var mass = double . Parse ( trailerData . Values [ i ] ) ;
1204- if ( mass > 0 ) SPSMasses . Add ( mass ) ; //zero means mass does not exist
1211+ if ( mass > 0 ) SPSMasses . Add ( mass ) ; // zero means mass does not exist
12051212 }
12061213
12071214 // Tune version == 3 produces trailer entry "SPS Masses", comma separated list of masses
@@ -1314,7 +1321,7 @@ private SpectrumType ConstructMSSpectrum(int scanNumber)
13141321 } ) ;
13151322
13161323 // FAIMS
1317- if ( FAIMSCV != null && Math . Abs ( FAIMSCV . Value ) > 0.001 )
1324+ if ( FAIMSCV != null && FAIMSON )
13181325 {
13191326 spectrumCvParams . Add ( new CVParamType
13201327 {
You can’t perform that action at this time.
0 commit comments