Learning and prediction with dynamical system models of gene regulation