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