Example 15: Average Area by replicates

  • Question: How can I group peaks in the different replicates?

  • Answer: You can group peaks by compound name or by RT. Use the MatchingOption value to define the scenario.

  • Scope: Peak or group

  • Type: Double

  • Find a function to return a list of matching peaks (AllMatchingPeaksOrGroups)

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

  • Find a function to return the replicates of an injection (Replicates in injection function).

Formula

Average("Peak_Area", AllMatchingPeaksAndGroups(MatchOption.ClosestRT,CurrentInjection.Replicates)) (evaluates all signals)

or

Average("Peak_Area",AllMatchingPeaksAndGroups(MatchOption.ClosestRT,CurrentSignal.MatchingSignalsInReplicates)) (evaluates only the same signal as for the current peak)