STAR Protoc. 2023 Nov 18;4(4):102733. doi: 10.1016/j.xpro.2023.102733. Online ahead of print.
Agent-based models are composed of individual agents coded for traits, such as cooperation and cheating, that interact in a virtual world based on defined rules. Here, we describe the use of an agent-based model of homologous recombination in bacteria playing a public goods game. We describe steps for software installation, setting model parameters, running and testing models, and visualization and statistical analysis. This protocol is useful in analyses of horizontal gene transfer, bacterial sociobiology, and game theory. For complete details on the use and execution of this protocol, please refer to Lee et al.1.