The experimental procedure that begins with a cloned segment of DNA, or a protein sequence, and uses this knowledge to introduce programmed mutations (through directed mutagenesis) back into the genome in order to investigate gene and protein function.