modified Figure2_script to work for lactate and delta