You can use Allele.createSnp(char1, char2)