Calculation

Overview

For an overview of Calculation concepts, please refer to Concepts > Calculation. This document discusses the technical aspects of calculation.

Calculation Flow

In Phaedra, calculation refers to the execution of a protocol on a plate. The protocol must contain at least one feature and the plate must have an active measurement linked to it. When these conditions are satisfied, the Calculation Service can generate a resultset by calculating all the protocol’s features using the measurement’s data as input.

Since a feature may also use another feature’s value as input, features have a sequence which can be configured so that one feature is guaranteed to be calculated before another feature.

Just like data capture scripts, feature formula scripts can be simple or complex, and therefore are executed on dedicated ScriptEngine worker nodes. While data capture scripts are typically written in JavaScript, feature formula scripts are more commonly expressed in R.