getGenotypes function

Get genotypes from file