Source code for "Slightly beneficial genes are retained by evolving Horizontal Gene Transfer despite selfish elements".
The R scripts contain the analytical model and the zip-file contains the IBM c code, which was simulated with Cash2.1. For help with the installation, please contact the corresponding author of van Dijk et al. (2020)