A process by which the genetic material carried by an individual cell is altered by incorporation of exogenous DNA into its genome..