Bracket error in getGenotype.m