def _check_dna(self, dna):
        """ Check that a DNA string only contains characters in ``GENETIC_MATERIAL_OPTIONS``. """
        valid_chars = set(self.GENETIC_MATERIAL_OPTIONS)
        assert all(char in valid_chars for char in dna)