Example 12: Area ratio between peaks in two signals

  • Scope: Peak or group

  • Type: Double

  • Use a function to find one matching peak on the signal at Peak or group level MatchingPeakOrGroup

    This function makes part of exception. Call it directly, not on CurrentPeakOrGroup.

  • Choose the MatchOption. Since you want a ratio for all peaks, choose MatchOption.ClosestRT or ClosestRTOnSignal. Use the Delta, so that the ratio is not computed with a peak too far away.

Formula

Peak_Area/MatchingPeak(MatchOption.ClosestRT,0.1, CurrentInjection.SignalByName("DAD1A")).Peak_Area

or

Peak_Area/MatchingPeak(MatchOption.ClosestRTOnSignal,0.1, CurrentInjection.AllPeaks).Peak_Area