You are on page 1of 82

Nordic User Meeting 2013

Empower 3 FR2
Advanced Custom Fields
Boolean/Enumerated
and
Inter Sample Calculations
By

Ronald Haas
Service Data Specialist/Certified Trainer
Central Europe
Custom Field (Examples)
 Determination of Theobromine (ThBr) and Caffeine (Caf) In
Tea is used as Custom Field examples

©2010 Waters Corporation | COMPANY CONFIDENTIAL 2


Login:System/Manager

©2010 Waters Corporation | COMPANY CONFIDENTIAL 3


Open Project: CustomFieldsPart_Two and minimize it.
This project we will use for the entire workshop

©2010 Waters Corporation | COMPANY CONFIDENTIAL 4


Explanation Custom Fields flowchart

©2010 Waters Corporation | COMPANY CONFIDENTIAL 5


©2010 Waters Corporation | COMPANY CONFIDENTIAL 6
Boolean Custom Field
A Boolean custom field is where you assign the Bool data type and
use special functions to return True or False.
Boolean Functions
GT( Greater than
GTE( Greater than or equal
LT( Less than
LTE( Less than or equal
EQ( Equal
NEQ( Not equal
EQI ( Equal, case insensitive
NEQI( Not equal, case insensitive
RANGE( Range
ENUM( Enumeration
Boolean Operators
& AND
| OR
, Comma separator
©2010 Waters Corporation | COMPANY CONFIDENTIAL 7
Example 1 Boolean CF
Examples:
GT(Area,20000)
Any Area above 10000 is true
GT(ThBr[Area],20000)
The Area of ThBr above 20000 is true
GT(ThBr[Area],20000)&GT(Caf[Area],400000)
The Area of ThBr above 20000 and the Area of Caf above 400000 is true
GT(ThBr[Area],20000)|GT(Caf[Area],400000)
The Area of ThBr above 20000 or the Area of Caf above 400000 is true
GT(CCompRef1[Area],CConst1)
CCompRef1 and CConst1 are specified in the Processing Method

20000
400000 ©2010 Waters Corporation | COMPANY CONFIDENTIAL 8
GT(CCompRef1[Area],CConst1)

Go To Project
©2010 Waters Corporation | COMPANY CONFIDENTIAL 9
2 1

Always first make the CF active in the project


Then take the Sample Set in Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 10


Process

GT(CCompRef1[Area],CConst1)

Save Processing Method , Close Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 11


Change CF existing to meet criteria: ThBr>20000 and Caf>400000

©2010 Waters Corporation | COMPANY CONFIDENTIAL 12


GT(CCompRef1[Area],CConst1)&GT(CCompRef2[Area],CConst2)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 13


©2010 Waters Corporation | COMPANY CONFIDENTIAL 14
Go To Project
©2010 Waters Corporation | COMPANY CONFIDENTIAL 15
©2010 Waters Corporation | COMPANY CONFIDENTIAL 16
GT(CCompRef1[Area],CConst1)&GT(CCompRef2[Area],CConst2)

Save Processing Method, Close Review


©2010 Waters Corporation | COMPANY CONFIDENTIAL 17
Example 2: Enumeration Custom Field

 Definition :A custom field with Enumeration is a data type


with one ore more Boolean expressions

 A Boolean always has two statements


Fail/Pass
GT(CCompRef1[Area],CConst1)

 A Enumeration has more than two possible answers


Low/Good/High

ENUM(LT(CCompRef1[Area],CConst1),RANGE(CCompRef1[Area],CConst1,CConst2)
,GT(CCompRef1[Area],CConst2))

 The same functions and operators apply as in Boolean

 An Enumerated CF always starts with: Enum

©2010 Waters Corporation | COMPANY CONFIDENTIAL 18


Sometimes a Field is too big and does not fit the window.
When you get an error message:
Copy the Field to Word or Wordpad where it is easier to troubleshoot.

©2010 Waters Corporation | COMPANY CONFIDENTIAL 19


Copy to word

ENUM(LT(CCompRef1[Area],CConst1),RANGE(CCompRef1[Area],CConst1,CConst2),
GT(CCompRef1[Area],CConst2))

Copy this back

©2010 Waters Corporation | COMPANY CONFIDENTIAL 20


ENUM(LT(CCompRef1[Area],CConst1),RANGE(CCompRef1[Area],CConst1,CConst2),
GT(CCompRef1[Area],CConst2))

©2010 Waters Corporation | COMPANY CONFIDENTIAL 21


ENUM(LT(CCompRef1[Area],CConst1),RANGE(CCompRef1[Area],CConst1,CConst2),GT(CCompRef1[Area],CConst2))

Close review ©2010 Waters Corporation | COMPANY CONFIDENTIAL 22


Example 3 Boolean CF Area_Limit/Area_GT05
(Explanation of Use As)
Calculate the % Area above 0.5% of the Main Component Caf.

First Custom Field: Area_Limit=GT(Area,(Caf[Area]*0.005))

Caf

©2010 Waters Corporation | COMPANY CONFIDENTIAL 23


©2010 Waters Corporation | COMPANY CONFIDENTIAL 24
GT(Area,Caf[Area]*0.005)
GT(Area,(Caf[Area]*0.005))
GT(Area,(Caf[Area]*0.005))

Go To Project
©2010 Waters Corporation | COMPANY CONFIDENTIAL 25
Close
Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 26


Example 2 Boolean CF Limit
Change the Caf to CCompRef1!!!!!!!!!! To make it more general

GT(Area,(CCompRef1[Area]*0.005))

©2010 Waters Corporation | COMPANY CONFIDENTIAL 27


©2010 Waters Corporation | COMPANY CONFIDENTIAL 28
GT(Area,CCompRef1[Area]*0.005)

Go To Project
©2010 Waters Corporation | COMPANY CONFIDENTIAL 29
GT(Area,(CCompRef1[Area]*0.005))

Close
Review
©2010 Waters Corporation | COMPANY CONFIDENTIAL 30
CCompRef
•Custom Component Reference, the field in the Components table that identifies one or more
peaks to be referenced when custom results are to be calculated based on the specified peaks.
Use CCompRef1 to CCompRef3 where average ratios and other interpeak calculations are needed
for calculation.
•The field in the Processing Method window that specifies a peak to be used in a custom
calculation formula applied to all components in a result.

CCalRef
•Custom Calculation Reference, the field in the Processing Method window that specifies a
reference peak to be used in a custom calculation that is applied to all components in a result.
CCalRef is used for calculating interpeak custom results for all peaks in the Components table (in
the Processing Method window).

Change CCompRef1 to CCalRef1

©2010 Waters Corporation | COMPANY CONFIDENTIAL 31


©2010 Waters Corporation | COMPANY CONFIDENTIAL 32
GT(Area,CCalRef1[Area]*0.005)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 33


Save and
Close review
©2010 Waters Corporation | COMPANY CONFIDENTIAL 34
Next step is to multiply the Area with Area_Limit.

©2010 Waters Corporation | COMPANY CONFIDENTIAL 35


Area*Area_Limit

©2010 Waters Corporation | COMPANY CONFIDENTIAL 36


Save and
Close Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 37


Boolean CF : Use As

Use as: Position calculates with the value column then


you can enter text in the translation column.
With this CF it not possible to use in further calculations.

©2010 Waters Corporation | COMPANY CONFIDENTIAL 38


GT(Area,CCalRef1[Area]*0.005)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 39


Close
Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 40


Boolean CF : Use As
Use as: Fields combines the entered text with a parameter, here Area.
Only Area in the translation column writes the text “Area” and with (fc) behind it,
Empower writes the Area. But you cannot use it for any further calculation.

Change Position to Field and Translation


to Area (fc)

Go To Project ©2010 Waters Corporation | COMPANY CONFIDENTIAL 41


Close
Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 42


To exclude the Caf Area: change Area_Limit to:
GT(Area,CCalRef1[Area]*0.005)&NEQ(Area,CCalRef1[Area])
and set the Use As back to Position

GT(Area,CCalRef1[Area]*0.005)&NEQ(Area,CCalRef1[Area])

©2010 Waters Corporation | COMPANY CONFIDENTIAL 43


Next create a Custom Field to summarize the Area above 0.5%

SUM(Area_GT_05)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 44


Close
Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 45


And finally: Custom Field Pct_Area_Gt05=Area_GT_05/Sum_Area_Gt05*100

©2010 Waters Corporation | COMPANY CONFIDENTIAL 46


Area_GT_05/Sum_Area_GT05*100
Area_GT_05/Sum_Area_Gt05*100

©2010 Waters Corporation | COMPANY CONFIDENTIAL 47


Close
Review

©2010 Waters Corporation | COMPANY CONFIDENTIAL 48


InterSample Calculations:

 Syntax:
Label.Injection.Channel(Field)
 Example:
—S0101.1.”Acquity TUV ChA”(Area)
—This would take the area of this TUV channel of
the first injection of the sample labeled “S0101”
and plug it into the calculation.
—Comments:
o You can omit parts of the syntax but don’t omit
the periods
• Label.Inj.(Field) = No Channel
• Label..Channel(Field) = No Injection
• Label..(Field) = No Inject or Channel
• .Inj.(Field) = No Label or Channel

©2010 Waters Corporation | COMPANY CONFIDENTIAL 49


Example 4: Blank subtraction
In the Blank we have a peak that interferes with Caffeine. To correct this we
subtract the Blank area from the Standard and Sample areas

We create CF:
Corr_Area=Area-(BL..(Area))

And use this in the Comp. Table as the Y-ax


value

©2010 Waters Corporation | COMPANY CONFIDENTIAL 50


©2010 Waters Corporation | COMPANY CONFIDENTIAL 51
Use Result Set Only to be
sure that the Blank injection
comes from the same Sample
Set.
Must process the
Sample/Result Set Area-BL.1.(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 52


In Review:
First Change the Proc.Mth.
and Alter Sample

Save PM and
close Review
©2010 Waters Corporation | COMPANY CONFIDENTIAL 53
Because of the “Result Set Only” Process the Sset to get a ResSet

©2010 Waters Corporation | COMPANY CONFIDENTIAL 54


©2010 Waters Corporation | COMPANY CONFIDENTIAL 55
Close Review
©2010 Waters Corporation | COMPANY CONFIDENTIAL 56
Example 5:
Average between 2 injections of the same vial

©2010 Waters Corporation | COMPANY CONFIDENTIAL 57


©2010 Waters Corporation | COMPANY CONFIDENTIAL 58
Mean_Area

(.1.(Area)+.2.(Area))/2

©2010 Waters Corporation | COMPANY CONFIDENTIAL 59


©2010 Waters Corporation | COMPANY CONFIDENTIAL 60
Create a Report to view the results or use tab Peaks with a View filter

©2010 Waters Corporation | COMPANY CONFIDENTIAL 61


Summarized Custom Fields

Summary Functions are:

Prod Multiplication
AVE Average
MAX Maximum value
MIN Minimum value
SUM Summation
%RSD Percent Relative Standard Deviation
•Syntax for Custom Field with summarize
function :
Label.Injection.Channel.Function(Field)

First CF: AVE_Area= …AVE(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 62


©2010 Waters Corporation | COMPANY CONFIDENTIAL 63
AVE_Area

...AVE(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 64


On the way back it calculates the summarized custom fields
©2010 Waters Corporation | COMPANY CONFIDENTIAL 65
Summarize Custom Field Incrementally Calculations

Empower calculates according to the brackets

©2010 Waters Corporation | COMPANY CONFIDENTIAL 66


©2010 Waters Corporation | COMPANY CONFIDENTIAL 67
©2010 Waters Corporation | COMPANY CONFIDENTIAL 68
We change this CF to average both injections with %

% is everything (wildcart) like * in windows.


? is one character

©2010 Waters Corporation | COMPANY CONFIDENTIAL 69


.%..AVE(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 70


First CustomFields Update then Result Set Process using Existing Integration and
Quantitate Only adds the new results to the same Result Set.

Calibrate and Quantitate always gives a new Result Set

Go To Peak with View Filter LastResults

©2010 Waters Corporation | COMPANY CONFIDENTIAL 71


First CustomFields Update then Result Set Process using Existing Integration and
Quantitate Only

…AVE(Area) .%..AVE(Area)

Next example is the average of two vials with the same label

% is everything (wildcart) like * in windows.


? is one character
SAME is all with the same label

©2010 Waters Corporation | COMPANY CONFIDENTIAL 72


SAME.%..AVE(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 73


First Update the CustomFields then Result Set Process using Existing Integration and
Quantitate Only Then Go To Peaks using last results.

…AVE(Area) .%..AVE(Area)

SAME.%..(Area)

©2010 Waters Corporation | COMPANY CONFIDENTIAL 74


At last we do want only a value at the second injection with CF .%..AVE(Area),
For this there are:

Used in CF’s like:

EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-60004

Here it says that only when


Injection=2 Empower must do the calculation: .%..AVE(Area)
And
Only when Injection=1 must write NA (Not Applicable) acording to the table

©2010 Waters Corporation | COMPANY CONFIDENTIAL 75


EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-60004

EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-60004

©2010 Waters Corporation | COMPANY CONFIDENTIAL 76


First Update the CustomFields then Result Set Process using Existing Integration and
Quantitate Only Then Go To Peaks using last results.

…AVE(Area) .%..AVE(Area)

SAME.%..(Area) EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-60004

©2010 Waters Corporation | COMPANY CONFIDENTIAL 77


EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-60004

EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*50000

EQ(Injection,2)*.%..AVE(Area)+EQ(Injection,1)*-50000

EQ(Injection,2)*.%..AVE(Area)-EQ(Injection,1)*50000

EQ(Injection,2)*.%..AVE(Area) -EQ(Injection,1)*50000
©2010 Waters Corporation | COMPANY CONFIDENTIAL 78
If you have time
Last example
Goal: From 2 injections from the same vial calculate for one peak

HighestAre a
%difference ( *100 ) 100
LowestArea

GT((.1.(CCompRef1[Area])),(.2.(CCompRef1[Area])))*((.1.((CCompRef1[Area]))/.2.(CCompRef1[Area])*100)-100)+
GT((.2.(CCompRef1[Area])),(.1.(CCompRef1[Area]))) *((.2.((CCompRef1[Area]))/.1.(CCompRef1[Area])*100)-100)

Specify Caf as CCompRef1 in the processing method component table.


When the Area of Caf. from the first injection is larger then the second
Divide the first injection by the second
And (+)
When the Area of Caf from the second injection is larger then the first
Divide the second injection by the first

Use Sample Set: Tea_2_InjProcess with Acq Method Set


Verify in tab Peaks and create View Filter for it

©2010 Waters Corporation | COMPANY CONFIDENTIAL 79


0.5% is the limit of difference.
Create a CF that will mark this
With the result at the Injection 2

©2010 Waters Corporation | COMPANY CONFIDENTIAL 80


The End
Congratulations
©2010 Waters Corporation | COMPANY CONFIDENTIAL 81
Custom Fields overview and View Filter

View filter CF ID Descending lists the CF’s in order of create date

©2010 Waters Corporation | COMPANY CONFIDENTIAL 82

You might also like