Code required for analyses described in Chapter 4 of Integrative population and functional genomics of African cattle (PhD thesis).