Network inference from multiple datasets