Flips the coding of the alleles.

def flip_coded(self):
        """Flips the coding of the alleles."""
        self.genotypes = 2 - self.genotypes
        self.reference, self.coded = self.coded, self.reference