New research has linked the genetic makeup of fruit flies with several outside factors, the key one being the environment.