An analysis script tells LabKey Server how to calculate the compensation matrix, what gates to apply, statistics to calculate, and graphs to draw.
Create a New Analysis Script
- Begin on the main page of your My Flow Tutorial folder.
- In the Flow Experiment Management panel, click "Create a New Analysis Script".
- Enter the name: "labkey-demo".
- Click Create Analysis Script.

Define a Compensation Calculation
The compensation calculation tells the LabKey Flow engine how to identify the compensation controls in an experiment. It also indicates which gates to apply. A compensation control is identified as having a particular value for a specific keyword.
Click on the link
script main page at the bottom of the page. You can see defining the compensation calculation is now marked as completed.
Flow Scripts Web Part
Click
My Flow Tutorial to return to the main folder page. Scroll down to see the web part that provides easy access to the main script page.