The process of modifying the genetic material of an organism by adding, deleting, or altering specific genes.