Manipulation of the genetic material of an organism using methods that insert new DNA into or remove heritable material from the genome.