Horizontal Gene Transfer and the Role of Restriction-Modification Systems in Bacterial Population Dynamics