Figure 3 is comprised of a phylogenetically sorted panel of DFEs.
To recreate this figure, you must:
An example .bash script which performs demographic inference using Dadi for all of the species analyzed in this paper can be found at ../Scripts/fit_demographic_model.bash. Uncomment appropriate lines to do so for core genes and for accessory genes.
An example .bash script which fits the DFE using FitDadi for all of the species analyzed in this paper can be found at ../Scripts/fit_dfe.bash. Uncomment appropriate lines to do so for core genes and for accessory genes.
This .R script generates Figure 3 and saves it to Summary/figure_3_output.svg.