They allow scientists to predict how species adapt and how genetic diversity is maintained.