Example 4: Total area of identified compounds

  • Question: Total area of identified compound on what?

    • On the signal

    • On the injection

    • On the sequence

  • Depending on the answer, choose your scope.

  • Type: Double

  • Depending on the answer call the function AllIdentifiedPeaks on CurrentSignal, CurrentInjection or CurrentSequence for the identified peaks filtering.

  • Look in the Common functions > Aggregate node for the Aggregate function syntax.

  • Choose the Sum function.

  • Write your formula (here for the total area by signal).

Formula

Sum("Peak_Area", CurrentSignal.AllIdentifiedPeaks)

Do not forget the quotes around the field name.

Remarks:

  • If you use the same formula but choose the scope Peak or group, the sum of all identified peak areas on the peak signal will be computed for each peak. So all peaks of the same signal will have the same result.

  • If you use the same formula but choose the scope Injection, sample or Sequence, nothing will be computed because an injection, a sample, or a sequence do not have a current signal. They have several signals (see Data Structure).