gt.format function

Format genotype for BayEnv and BayPass