Modelling single-cell dynamics with trajectories and gene regulatory networks