The genetics of complex systems