With all LEDs now measured, run the MATLAB script ‘optoPlate_calibration.m’ and select the saved ‘.csv’ files at the prompt. Note that this script uses the GRAMM toolbox for plotting, which can be found, along with installation instructions, at github.com/piermorel/gramm. The script will automatically identify each LED from the irradiance measurements and calculate calibration values, which are saved as ‘cal_round_1.mat’. It should be noted that this script assumes the wells are measured in a set order in which 1) the microscope rasters through a 96 well plate mounted on its programmable stage from A1-A12 to B12-B1 and so on and 2) the optoPlate is flipped when mounted upside-down on the 96 well plate so that these measurements actually correspond to optoPlate wells A12-A1 to B1-B12 etc. Flashing the optoPlate with CHECKER01.mat sets the checkerboard pattern in which the LEDs of optoPlate well A01 are active, while CHECKER02.mat sets the checkerboard pattern in which the LEDs of optoPlate well A01 are inactive. By default, the calibration script assumes an optoPlate configuration with two LEDs of the same color per well. If this is not the case, set the variable ‘calibrate_LEDs_independently’ to true and the script will treat each set of LEDs (LED01, LED02, etc.) as separate groups of different colored LEDs when calculating calibration values.