Inferring gene regulatory networks by integrating static and dynamic data