Predicting state transitions in the transcriptome and metabolome using a linear dynamical system model