genoConvert function

Convert 0/1/2 genotypes to 0/1

Convert 0/1/2 genotypes to 0/1

This is a utility function, that convert 0/1/2 genotypes (AA/AB/BB) into 0/1 (either homozygous/heterozygous)

genoConvert(x)

Arguments

  • x: vector of 0/1/2 genotypes

Returns

converted vector of genotypes (0/1)